On 18.01.21 12:45, Daniel Caillibaud wrote:
After switching to rspamd (was amavis+spamassassin), virtual_alias_maps seems 
to be ignored
(mail to aliases address are bounced with "user unknown"), and I don't find why…

you turned on:
receive_override_options = no_address_mappings

and while amavisd worked as post-queue filter, thus received mail and sent
back through port 10024 where virtual aliases were xpanded, rspamd workd as 
milter,
thus does not send back to postfix.

1) Before (all is fine with virtual_alias_maps)

content_filter=amavis:[127.0.0.1]:10024
milter_protocol = 3
smtpd_milters = 
unix:run/opendkim/opendkim.sock,unix:run/opendmarc/opendmarc.sock
non_smtpd_milters = $smtpd_milters
milter_connect_macros = j


2) after (virtual_alias_maps ignored)
# content_filter=amavis:[127.0.0.1]:10024
milter_protocol = 6
milter_default_action = tempfail
smtpd_milters = inet:localhost:11332
non_smtpd_milters = $smtpd_milters
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}


Here is a log of a mail ok with 1)

postfix/pickup[25504]: 18D8F222ED4: uid=0 from=<root>
postfix/cleanup[27187]: 18D8F222ED4: 
message-id=<20210118105545.18d8f222...@mail.sesamath.net>
opendkim[5572]: 18D8F222ED4: DKIM-Signature field added (s=mail, d=sesamath.net)
postfix/qmgr[25505]: 18D8F222ED4: from=<r...@sesamath.net>, size=654, nrcpt=1 
(queue active)
postfix/smtpd[27196]: 4822622194E: client=localhost[127.0.0.1]
postfix/cleanup[27187]: 4822622194E: 
message-id=<20210118105545.18d8f222...@mail.sesamath.net>
postfix/qmgr[25505]: 4822622194E: from=<root-m...@sesamath.net>, size=1483, 
nrcpt=1 (queue active)
amavis[20707]: (20707-14) Passed CLEAN {RelayedInbound}, [127.0.0.1] <root-m...@sesamath.net> 
-> <root-m...@sesamath.net>, Message-ID: 
<20210118105545.18d8f222...@mail.sesamath.net>, mail_id: kvP9WKxhumWJ, Hits: -1.791, size: 
988, queued_as: 4822622194E, 211 ms
postfix/smtp[27192]: 18D8F222ED4: to=<r...@sesamath.net>, orig_to=<root>, 
relay=127.0.0.1[127.0.0.1]:10024, delay=0.28, delays=0.07/0/0/0.21, dsn=2.0.0, status=sent 
(250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 4822622194E)
postfix/qmgr[25505]: 18D8F222ED4: removed
postfix/pipe[27197]: 4822622194E: to=<t...@sesamath.net>, 
orig_to=<root-m...@sesamath.net>, relay=dovecot, delay=0.15, delays=0.03/0/0/0.12, 
dsn=2.0.0, status=sent (delivered via dovecot service)
postfix/qmgr[25505]: 4822622194E: removed


and the same test ko with 2)

postfix/pickup[24882]: 6DD04222ED4: uid=0 from=<root>
postfix/cleanup[24914]: 6DD04222ED4: 
message-id=<20210118103925.6dd04222...@mail.sesamath.net>
postfix/qmgr[24883]: 6DD04222ED4: from=<r...@sesamath.net>, size=383, nrcpt=1 
(queue active)
postfix/pipe[24920]: 6DD04222ED4: to=<r...@sesamath.net>, orig_to=<root>, 
relay=dovecot, delay=0.14, delays=0.09/0.01/0/0.05, dsn=5.1.1, status=bounced (user unknown)
postfix/bounce[24922]: 6DD04222ED4: sender non-delivery notification: 
87950222EDA
postfix/qmgr[24883]: 6DD04222ED4: removed
        

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I intend to live forever - so far so good.

Reply via email to