Re: Why does smtp ignore trivial-rewrite's next hop, replacing it with main.cf's relayhost or DNS-MX-resolution?

2022-07-08 Thread Viktor Dukhovni
On Fri, Jul 08, 2022 at 09:08:28PM +0200, Postfix-jtroendle wrote: > submission/inet/rewrite_service_name = submission-rewrite Your mistake is believing that the trivial rewrite service setting in smtpd(8) can determine message routing. This is not the case. This only determines the address cla

Re: Why does smtp ignore trivial-rewrite's next hop, replacing it with main.cf's relayhost or DNS-MX-resolution?

2022-07-08 Thread Postfix-jtroendle
Goedenavond Wietse, your help is very much appreciated :) Am 08.07.2022 um 17:04 schrieb Wietse Venema: When will the queue manager ignore the nexthop from trivial-rewrite? The queue manager will override that nexthop when a destination is specified with REDIRECT or FILTER. Maybe I set up acci

Re: Why does smtp ignore trivial-rewrite's next hop, replacing it with main.cf's relayhost or DNS-MX-resolution?

2022-07-08 Thread Wietse Venema
The Postfix SMTP client is not as smart as you appear to believe. It receives the nexthop from the queue manager. - If the nexthop from the queue manager is an [ipaddress] then the SMTP client uses that address. - If the nexthop from the queue manager is a domain name, then the SMTP client us

Re: Prevent local mail from going via spamassassin milter

2022-07-08 Thread Linkcheck
Many thanks for all the replies. Appreciated! > make sure to configure your milter to ignore connections from 127.0.0.0/8 This was the reply that did it. It spurred me to investigate the /etc/default/spamass-milter config, wherein I had... OPTIONS="-u spamass-milter -- -d 127.0.0.1" On looki

Why does smtp ignore trivial-rewrite's next hop, replacing it with main.cf's relayhost or DNS-MX-resolution?

2022-07-08 Thread Postfix-jtroendle
Hello all, I try to understand Postfix's relaying behaviour but I'm struggling with the last guy in the chain called smtp. It simply ignores the decision of his very smart precursor, named trivial-rewrite. Inspecting the log, trivial-rewrite uses transport_maps and sender_dependent_relayhost