Michael Grimm via Postfix-users: > [FreeBSD 14-STABLE, postfix 3.8.4, dovecot 2.3.21, rspamd 3.7.5] > > Hi > > Sometimes outgoing mail is deferred due to "reputational issues" > at the receiving side. These "reputational issues" mostly concerned > my IP6 addresses, thus I removed IP6 mailing completely. But now, > I do want to give it a try, again.
If it's just Google related, then you can try this to avoid their IPv6 addresses. /etc/postfix/main.cf: smtp_dns_reply_filter = pcre:/etc/postfix/smtp_dns_reply_filter /etc/postfix/smtp_dns_reply_filter: # /domain ttl IN AAAA address/ action, all case-insensitive. # Note: the domain name ends in ".". /^\S+\.google.com\.\s+\S+\s+\S+\s+AAAA\s+/ IGNORE That's what I have been using for the past 10 years. > In the past, whenever a mail has been deferred, I manually modified > inet_protocols to the protocol *not* involved, restarted postfix > and ran 'postqueue -f'. After having the "reputational issue" > solved, I returned to inet_protocols=all. > > Question: Is there a better way to achieve this (automatically) > what I call "fallback to another protocol if receiver provides > both"? Perhaps you can use smtp_delivery_status_filter to turn rputation related 5XX (reject) replies into into 4XX (defer) replies. /etc/postfix/main.cf: smtp_delivery_status_filter = pcre:/etc/postfix/smtp_dsn_filter /etc/postfix/smtp_dsn_filter: /^5(\.\d+\.\d+ .+ blah reputation blah .+)/ 4$1 With that, Postfix will try other IP addresses. Postfix has a "rule based language" for receiving mail, but there is no such thing for outbound deliveries. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org