On Fri, Jun 26, 2009 at 12:52:33PM -0700, Hirayama, Pat wrote:
> Hello,
>
> I've recently converted from sendmail, and postfix seems to be having problem
> with a recursive alias we use.
>
> So, in our aliases file, we have an address like this:
>
> allstaff: user1, user2, user3 ... user79, user80, allstaff80
> allstaff80: user81, user82, ... user159, user160, allstaff160
> allstaff160: user160, user161, ... user219, user220, allstaff220
> ...
Because Postfix does not modify the queue file during local alias
expansion, this is a poor way to represent the alias with Postfix.
Instead:
/etc/aliases:
owner-allstaff: [email protected]
allstaff: :include:/etc/postfix/allstaff
/etc/postfix/allstaff:
[email protected]
[email protected]
... flat list of all the users ...
If at all possible ensure that the none of the addresses in the
"allstaff" file are "local", rather it is better if they are
all in a virtual alias domain, which rewrites them to local
addresses. You could even resort to:
virtual_alias_domains = valias.example.com
virtual_alias_maps = ... pcre:/etc/postfix/virtual.pcre
virtual.pcre:
/(.*)@valias\.example\.com$/ [email protected]
and list:
/etc/postfix/allstaff:
[email protected]
[email protected]
... flat list of all the users ...
anything to suppress parallel recursive alias expansion in Postfix.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[email protected]?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.