Hi, > > I still don't understand the link between postfix and amavis. > > Amavis is an SMTP server to which you can route mail for filtering. > That routing can happen via a content_filter (required in a single > instance configuration) or just making amavis the destination for all > mail in a multi-instance configuration. > > Unfiltered Mail ---> Amavis SMTP ---> Filtered Mail > 1-inst smtpd A content_filter smtpd B > 2-inst Postfix A ditto or transport Postfix B
Okay, I've made some progress, but I'm still not understanding in practical terms how to link postfix to amavisd. It works with "content_filter = smtp-amavis:[127.0.0.1]:10024" but I'd like to try and do it with transport maps, as we've discussed. Despite the following, mail is just completely bypassed and delivered directly to the final destination outlined in /etc/postfix-117/transport. The multi-instance readme indicates mydestination should be unset, but that results in a mail loop for mail being reinjected, I believe. I believe there's something (perhaps fundamental) I'm missing that I need help to understand. /etc/postfix-117/main.cf mydestination = $myhostname, localhost.$mydomain, localhost myhostname = xavier.mycompany.com alias_maps = alias_database = local_recipient_maps = local_transport = error:5.1.1 Mailbox unavailable default_transport = smtp-amavis:[127.0.0.1]:10024 relay_transport = $default_transport virtual_transport = $default_transport transport_maps = ${indexed}transport relay_domains = domain1.org, domain2.org /etc/postfix-117/master.cf smtp-amavis unix - - n - - smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes 127.0.0.1:10025 inet n - n - 16 smtpd -o content_filter= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_data_restrictions=reject_unauth_pipelining -o smtpd_end_of_data_restrictions= -o smtpd_restriction_classes= -o mynetworks=127.0.0.0/8,209.216.99.0/24 -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks -o local_header_rewrite_clients= /etc/postfix-117/transport domain1.org smtp:68.195.199.42 domain2.org smtp:68.195.199.42 Nov 10 14:32:44 xavier postfix-117/qmgr[1067650]: 2E78E200BD76D: from=<mysqlstud...@gmail.com>, size=2612, nrcpt=1 (queue active) Nov 10 14:32:44 xavier postfix-117/smtpd[1067653]: disconnect from mail-pg1-f169.google.com[209.85.215.169] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7 Nov 10 14:32:44 xavier postfix-117/smtp[1067662]: 2E78E200BD76D: to=<a...@domain1.org>, relay=68.195.199.42[68.195.199.42]:2 5, delay=1.2, delays=0.51/0.01/0.48/0.15, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as D452A80A9FC6)