On Mon, Dec 21, 2009 at 11:48:55AM +0300, Vladimir Vassiliev wrote:

> 
> I discovered next issue with postfix.
> Suppose there is alias:
> alias:                user1, user2
> 
> If delivery to user1 was successful and to user2 was not (and it was
> tempfail or soft_bounce=yes), then next time postfix will deliver to
> user1 also.

Correct.

> Is there any workarounds?

Whenever possible, for mapping an inpu address to a set of users, use
virtual aliases instead.

    virtual(5):
        # Drop the LHS domain, if it is $myorigin or in $mydestination, AND
        # you want the alias to work all local domains. Do not drop the RHS
        # domains.
        #
        al...@example.com       us...@example.com, us...@example.com

    main.cf:
        # If you have CDB support, use it!
        # default_database_type = cdb
        #
        indexed = ${default_database_type}:${config_directory}/
        virtual_alias_maps = ${indexed}virtual

and drop the alias from the local aliases(5) file. Use aliases(5) sparingly,
for running commands, and supporting list managers via ":include:".

There are work-arounds with local aliases(5), but they are less elegant.

-- 
        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:majord...@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.

Reply via email to