carconni wrote: > Hi, > > I'm having a problem with virtual mailboxes. I need to create a > catchall mailbox. One of my engineers wants to run a script on the > mailbox so I really don't want to create an alias to a mailbox in the > /var/spool/imap/user directory. My engineer needs access to this > mailbox, but aside from the local admin account, he only has an ldap > account. (For this initial setup, I used the local account) > > I tried to set up this mail box as described > here: http://www.postfix.org/VIRTUAL_README.html, but the mailbox > isn't working and I'm getting some strange errors. For starters, I > don't have a relay_domain map (file) or any reference to it in my > main.cf file and yet I'm getting this error in my system.log: > > /Feb 2 21:52:15 mailserver postfix/trivial-rewrite[28824]: warning: > do not list domain mynewvirtual.domain.com in BOTH > virtual_mailbox_domains and relay_domains/ > /Feb 2 21:52:15 mailserver lmtpunix[28950]: warning: unable to post > message for user: any...@mynewvirtual.domain.com > <mailto:any...@mynewvirtual.domain.com>, mail is not enabled for this > user/ >
Note, when obfuscating domains, please use example.(com|net|org). Is there any relay_domains or mydestination settings that include this new domain? relay_domains defaults to $mydestination > In addition, Im getting a warning message that mail is not enabled for > this user but it's a catchall account, there shouldn't be any users, > so I'm somewhat confused. The 502 uid in the postconf output is the > local admin account uid. Can someone tell me where I'm going wrong? > > I appreciate any help I can get. In addition to the postconf -n, I > also included the referring files. > > mailserver:/etc/postfix root# postconf -n > alias_maps = > hash:/etc/postfix/lmail/myco.aliases,hash:/var/mailman/data/aliases > mydestination = > $myhostname,localhost.$mydomain,localhost,mail.myco.com,corp.myco.com,mail.corp.myco.com > mydomain = myco.com > mydomain_fallback = localhost > myhostname = mail.myco.com > mynetworks = > 127.0.0.1/32,172.16.0.0/16,172.18.0.0/16,172.20.0.0/16,208.137.15.43,27.36.24.228,10.1.0.0/16,208.44.136.0/22,55.81.44.0/23 > virtual_alias_domains = /etc/postfix/virtual_domains What is in here? I hope you do not repeat "mynewvirtual.domain.com" > virtual_alias_maps = > hash:/etc/postfix/virtual_alias,hash:/etc/postfix/vmail/alerts,hash:/etc/postfix/vmail/pager.aliases > virtual_gid_maps = static:502 > virtual_mailbox_base = /var/vmail > virtual_mailbox_domains = mynewvirtual.domain.com > virtual_mailbox_maps = hash:/etc/postfix/vmailbox > virtual_transport = lmtp:unix:/var/imap/socket/lmtp > virtual_mailbox_base = /var/vmail: > When virtual_transport does not equal virtual(8) delivery agent, the result of virtual_mailbox_maps and virtual_mailbox_base are ignored. Any other transport must know what to do with what is given as virtual_mailbox_maps exists as verification only. > > mailserver:/etc/postfix root# ls /var/vmail/ > blogs.myco.com mynewvirtual.domain.com media.myco.com customer1.com > > virtual_mailbox_maps = hash:/etc/postfix/vmailbox: > > mailserver:/etc/postfix root# vi vmailbox > @mynewvirtual.domain.com mynewvirtual.domain.com/catchall result not used by Postfix > > no mention of mynewvirtual.domain is made in virtual_alis_maps or > virtual_alias_domains. Brian