> On 8 Apr 2022, at 12:50 am, Matus UHLAR - fantomas <uh...@fantomas.sk> wrote: > > On 07.04.22 09:16, Horst Simon wrote: >> I used to have working correctly postfix + amavisd-new + dovecot working >> correctly with re-writing the sender address when forwarding email to my ISP >> using sender_canonical, I am using postfix 3.7.0. >> After changing from amavisd-new to rspamd it will not rewrite the sender >> address and forwarding to my ISP fails. > > did amavis change the sender when used as milter? > i'm not sure milter supports changing sender…
Haven't used milter for amavisd-new only content_filter in main.cf and following in master.cf amavis unix - - - - 2 lmtp -o max_use=20 -o lmtp_send_xforward_command=yes -o disable_dns_lookups=yes -o lmtp_data_done_timeout=1200 >> In the main.cf I removed >> content_filter = amavis:[127.0.0.1]:10024 > > this is not milter interface... > >> and added >> smtpd_milters = unix:/opt/local/var/run/rspamd/milter.sock >> non_smtpd_milters = $smtpd_milters >> milter_protocol = 6 >> milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen} >> milter_rcpt_macros = i {rcpt_addr} >> milter_default_action = accept >> >> Everything is working with rspamd except for the sender rewrite. Is there >> anything else I need to change in the postfix configuration to get this >> working again? > > > -- > 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. > "Two words: Windows survives." - Craig Mundie, Microsoft senior strategist > "So does syphillis. Good thing we have penicillin." - Matthew Alton