virtual_transport = cyrus drops @domain.tld

Michael Hieb michael.hieb at celoso.net
Tue Jul 27 12:06:37 EDT 2004


Apologies if this has been posted separately, but I scanned the archives
and found passing mention of the problem but not the answer.

I run Postfix 2.0.19 and cyrus imap 2.2.3 on a Suse 9.1 distribution
using kernel 2.6.5-7.95. I have set up virtual domains in both postfix
and cyrus, but I find mail passed from postfix to cyrus is rejected by
cyrus as it misses the domain of the user. 		

fuego:~ # Jul 27 11:58:21 fuego postfix/smtpd[13041]: connect from
web61309.mail.yahoo.com[216.155.196.152]
Jul 27 11:58:21 fuego postfix/smtpd[13041]: D867717784:
client=web61309.mail.yahoo.com[216.155.196.152]
Jul 27 11:58:21 fuego postfix/cleanup[13043]: D867717784:
message-id=<20040727155821.85999.qmail at web61309.mail.yahoo.com>
Jul 27 11:58:21 fuego postfix/qmgr[12696]: D867717784:
from=<michael_hieb at yahoo.com>, size=744, nrcpt=1 (queue active)
Jul 27 11:58:21 fuego postfix/smtpd[13041]: disconnect from
web61309.mail.yahoo.com[216.155.196.152]
Jul 27 11:58:21 fuego postfix/pipe[13044]: D867717784:
to=<albert.moris at p-energygroup.com>,
orig_to=<alberto.moris at p-energygroup.com>, relay=cyrus, delay=0,
status=bounced (data format error. Command output: albert.moris: Mailbox
does not exist )
Jul 27 11:58:21 fuego postfix/cleanup[13043]: F0E67178DD:
message-id=<20040727155821.F0E67178DD at fuego.celoso.net>
Jul 27 11:58:21 fuego postfix/qmgr[12696]: F0E67178DD: from=<>,
size=2560, nrcpt=1 (queue active)
Jul 27 11:58:21 fuego postfix/qmgr[12696]: D867717784: removed
Jul 27 11:58:21 fuego master[13052]: about to exec
/usr/lib/cyrus/bin/lmtpd
Jul 27 11:58:21 fuego lmtpunix[13052]: executed
Jul 27 11:58:21 fuego lmtpunix[13052]: accepted connection
Jul 27 11:58:21 fuego lmtpunix[13052]: lmtp connection preauth'd as
postman
Jul 27 11:58:21 fuego lmtpunix[13052]: append_check() of
'user.albert^moris' failed (Mailbox does not exist)
Jul 27 11:58:23 fuego postfix/smtp[13048]: F0E67178DD:
to=<michael_hieb at yahoo.com>,
relay=smtp-server.nyc.rr.com[24.29.102.150], delay=2, status=sent (250
2.0.0 i6RFwM6l028821 Message accepted for delivery)
Jul 27 11:58:23 fuego postfix/qmgr[12696]: F0E67178DD: removed
Jul 27 11:58:24 fuego imap[11368]: open: user michael^hieb opened INBOX

And here we see the mailbox is set up under the virtual domain.

fuego.celoso.net> lm *@p-energygroup.com
user/alberto.moris at p-energygroup.com (\HasNoChildren)  
user/michael.hieb at p-energygroup.com (\HasNoChildren)   
fuego.celoso.net> 

If I send e-mail to a user in the virtual domain which also exists in
the local domain, then cyrus delivers the e-mail to the user in the
local domain.

Lastly here are the requisite snippets of configuration files.

/etc/imapd.conf
fuego:~ # cat /etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus
allowanonymouslogin: no
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
#sasl_pwcheck_method: saslauthd
sasl_pwcheck_method: auxprop
lmtp_overquota_perm_failure: no
#
# if you want TLS, you have to generate certificates and keys
#
#tls_cert_file: /usr/ssl/certs/cert.pem
#tls_key_file: /usr/ssl/certs/skey.pem
#tls_ca_file: /usr/ssl/CA/CAcert.pem
#tls_ca_path: /usr/ssl/CA

# I want . in my user names
unixhierarchysep: 1

#set up virtual domains
virtdomains: userid
defaultdomain: celoso.net

/etc/postfix/main.cf
fuego:~ # grep virtual /etc/postfix/main.cf
#myhostname = virtual.domain.tld
# Do not specify the names of virtual domains - those domains are
# specified elsewhere (see sample-virtual.cf).
#   /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
#   the $virtual_mailbox_maps files.
# - destinations that match $virtual_alias_domains,
# - destinations that match $virtual_mailbox_domains.
# Insert text from sample-virtual.cf if you need virtual domain support.
virtual_transport = cyrus
virtual_mailbox_domains = velvet-ewe.com, p-energygroup.com
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_alias_maps = hash:/etc/postfix/virtual
# local(8), relocated(5) and virtual(5) for the effects this has on
# aliases, canonical, virtual, relocated and .forward file lookups.
# virtual_maps = hash:/etc/postfix/virtual
fuego:~ # 

Any help greatly appreciated...

Michael

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list