|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Hirayama, Pat (phirayam
fhcrc.org)
Date: Fri Jun 26 2009 - 18:25:37 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
So, the problem is with the recursion, and in fact, if it were just an alias with 3000+ addresses in a flat file, that will be handled without difficulty?
-p
-----Original Message-----
From: Victor Duchovni [mailto:Victor.Duchovni
morganstanley.com]
Sent: Fri 6/26/2009 2:41 PM
To: Hirayama, Pat
Cc: postfix-users
postfix.org
Subject: Re: Alias Expansion Problem
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: sysadmin
example.com
allstaff: :include:/etc/postfix/allstaff
/etc/postfix/allstaff:
user1
example.com
user2
example.com
... 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$/ ${1}
example.com
and list:
/etc/postfix/allstaff:
user1
valias.example.com
user2
valias.example.com
... 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:majordomo
postfix.org?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.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]