Laurent Frigault:
[ Charset ISO-8859-15 converted... ]
> Hi,
> 
> I have an issue with owner_request_special . It rewrites correctly the
> local part of the sender address BUT, it replaces the right part of the
> sender address with myorigin (or myhostname) instead of keeping it.
> 
> My config :
> OS: FreeBSD 11.1-RELEASE-p4
> postfix: postfix-3.2.3,1 (from freebsd package)
> 
> mail# diff main.cf.sample main.cf
> 95a96
> > myhostname = mail.agneau.org
> 102a104
> > mydomain = agneau.org
> 118a121
> > myorigin = mail.agneau.org
> 134a138
> > inet_interfaces = 127.0.1.5
> 182a187
> > mydestination = mail.agneau.org, listes2.agneau.org, listes3.agneau.org
> 311a317
> > relay_domains = agneau.org bergerie.agneau.org
> 403a410
> > alias_maps = hash:$config_directory/aliases
> 412a420
> > alias_database = hash:$config_directory/aliases
> 
> My debug aliases in $config_directory/aliases :
> 
> owner-debuglolo:      l...@agneau.org
> owner-debuglolo-outgoing:     owner-debugl...@listes2.agneau.org
> debuglolo-outgoing:   :include:/usr/local/etc/postfix/lists/debuglolo
> 
> mail# cat lists/debuglolo
> lfriga...@agneau.org
> 
> 
> test command to reproduce the problem:
> 
> printf 'From: Laurent Frigault <lfriga...@agneau.org>\nTo: 
> debugl...@listes2.agneau.org\nSubject: test\n\ntest\n' |sendmail -oi -oee 
> -fowner-debugl...@listes2.agneau.org debuglolo-outgo...@listes2.agneau.org
> 
> The enveloppe sender owner-debugl...@listes2.agneau.org if rewritten to
> owner-debuglolo-outgo...@mail.agneau.org instead of 
> owner-debuglolo-outgo...@listes2.agneau.org

If sending to debuglolo-outgoing, Postfix will replace the sender with
one of the following:

1) owner-debugl...@listes2.agneau.org (expand_owner_alias = yes) 

2) owner-debuglolo-outgoing (expand_owner_alias = no) which then
becomes owner-debuglolo-outgoing@$myorigin.

You appear to have configured Postfix to do 2).

        Wietse

Reply via email to