On 6/19/2013 6:11 AM, Craig R. Skinner wrote:
> 
> I'm setting up Postfix for a domain that hosts Dovecot IMAP mail dirs
> for real Unix accounts. Postfix needs to accept mail for users' public
> aliases, but not their Unix login, and reject mail for daemon accounts.
> e.g:
> 
> 
> [email protected]                --> jb4356
> [email protected]      --> jb8921
> [email protected]                --> postmaster
> [email protected]             --> postmaster
> [email protected]                --> hostmaster
> 
> 
> The above are in /etc/passwd:
> [email protected]        --> postmaster
> [email protected]        --> hostmaster
> [email protected]    --> reject as unknown
> [email protected]    --> reject as unknown
> [email protected]      --> reject as unknown
> [email protected]     --> reject as unknown
> [email protected]   --> reject as unknown
> [email protected]     --> reject as unknown
> [email protected]   --> reject as unknown
> 
> [email protected] --> reject as unknown
> [email protected] --> reject as unknown
> ...
> ...
> 
> 
> main.cf [part]:
> mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
> myorigin = $mydomain
> mail_spool_directory = /var/mail/
> mailbox_transport = lmtp:unix:private/dovecot-lmtp
> local_recipient_maps = proxy:unix:passwd.byname $alias_maps
> alias_maps = btree:$config_directory/aliases
> alias_database = btree:$config_directory/aliases
> local_transport = local:$myhostname
> canonical_maps = btree:$config_directory/canonical.map
> virtual_alias_domains =
> btree:$config_directory/virtual_alias_domains.map
> virtual_alias_maps = btree:$config_directory/virtual_alias_maps.map
> 
> 
> $ cat virtual_alias_domains.map
> example.com           virtual
> 
> 
> $ head virtual_alias_maps.map
> postmaster                    postmaster
> abuse                         postmaster
> hostmaster                    hostmaster
> [email protected]                jb4356
> [email protected]      jb8921
> 
> 
> $ head canonical.map
> hostmaster    [email protected]
> postmaster    [email protected]
> jb4356                [email protected]
> jb8921                [email protected]
> 
> 
> I've experimented with various settings and found that it works if I
> list the valid public address mappings as virtual aliases, but Postfix
> complains with:
> postfix/trivial-rewrite[3585]: warning: do not list domain example.com in 
> BOTH mydestination and virtual_alias_domains.

What happens when you try

mydestination =

> I've thumbed through 'The Book of Postfix' & the packaged HTML *READMEs.
> The examples appear to be for either fully virtual accounts, or Unix
> accounts where joe@ has a Unix account of 'joe'.
> 
> There's probably something simple I'm not understanding here.

Has happened to me on more than one occasion. ;)

-- 
Stan


Reply via email to