James Garrison
2004-09-14 17:55:29 UTC
I'm trying to set up something in Postfix that's trivial in sendmail,
but having difficulty. A typical aliases setup in sendmail causes
mail to various system login IDs (such as bin, daemon, named, www,
abuse, postmaster, etc.) to be forwarded to the appropriate
recipients, which can be local or remote addresses. Typically most of
these are aliased to "root", and root is aliased to the real admin's
address, which is probably not local.
Having read the documentation, I understand that the aliases database
is used ONLY by the local(8) delivery agent, while virtual_alias_maps
is used during cleanup(8), so virtual aliasing happens much earlier in
the process.
This seems to imply that sendmail's alias function is actually more
closely mirrored by Postfix's virtual aliasing, and I should move all
the traditional sendmail alias mappings to virtual_alias_maps in order
to achieve similar functionality.
One thing that definitely doesn't work is to leave the sendmail
aliases where they are and use a virtual alias root->realAdmin. Mail
originally addressed to root gets forwarded correctly (due to virtual
aliasing), but mail originally to one of the system IDs and aliased to
root in /etc/postfix/aliases.db just gets delivered locally because
virtual aliasing happens before local aliasing. .
Is there any reason I shouldn't implement the traditional sendmail
aliases db in virtual_alias_maps in Postfix?
but having difficulty. A typical aliases setup in sendmail causes
mail to various system login IDs (such as bin, daemon, named, www,
abuse, postmaster, etc.) to be forwarded to the appropriate
recipients, which can be local or remote addresses. Typically most of
these are aliased to "root", and root is aliased to the real admin's
address, which is probably not local.
Having read the documentation, I understand that the aliases database
is used ONLY by the local(8) delivery agent, while virtual_alias_maps
is used during cleanup(8), so virtual aliasing happens much earlier in
the process.
This seems to imply that sendmail's alias function is actually more
closely mirrored by Postfix's virtual aliasing, and I should move all
the traditional sendmail alias mappings to virtual_alias_maps in order
to achieve similar functionality.
One thing that definitely doesn't work is to leave the sendmail
aliases where they are and use a virtual alias root->realAdmin. Mail
originally addressed to root gets forwarded correctly (due to virtual
aliasing), but mail originally to one of the system IDs and aliased to
root in /etc/postfix/aliases.db just gets delivered locally because
virtual aliasing happens before local aliasing. .
Is there any reason I shouldn't implement the traditional sendmail
aliases db in virtual_alias_maps in Postfix?
--
James Garrison Athens Group, Inc.
mailto:***@athensgroup.com 5608 Parkcrest Dr
http://www.athensgroup.com Austin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C (512) 345-0600 x150
James Garrison Athens Group, Inc.
mailto:***@athensgroup.com 5608 Parkcrest Dr
http://www.athensgroup.com Austin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C (512) 345-0600 x150