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: [email protected] > owner-debuglolo-outgoing: [email protected] > debuglolo-outgoing: :include:/usr/local/etc/postfix/lists/debuglolo > > mail# cat lists/debuglolo > [email protected] > > > test command to reproduce the problem: > > printf 'From: Laurent Frigault <[email protected]>\nTo: > [email protected]\nSubject: test\n\ntest\n' |sendmail -oi -oee > [email protected] [email protected] > > The enveloppe sender [email protected] if rewritten to > [email protected] instead of > [email protected]
If sending to debuglolo-outgoing, Postfix will replace the sender with one of the following: 1) [email protected] (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
