carconni a écrit :
> 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 

by default

relay_domains=$mydestination

so any *.$mydomain is a relay domain.

if you don't want this, set
relay_domains =



> 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/
> 

this message was logged by something called "lmtpunix". this is not postfix.


> 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.  

There is no such thing as "catchall" in postfix. so please please
explain what you mean and how you implemented it.

> The 502 uid in the postconf output is the local
> admin account uid. 

since you changed virtual_transport, virtual_(uid|gid)_maps are useless.

> Can someone tell me where I'm going wrong?  
> 

you configure things for "virtual", yet you use another delivery agent.

> [snip]
> 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
> 

the right hand side (mailbox path) is useless since you override
virtual_transport.

use virtual_alias_maps instead.

> no mention of mynewvirtual.domain is made in virtual_alis_maps or
> virtual_alias_domains.
> 
> Thank you again
> 
> 

Reply via email to