‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, December 31, 2018 9:44 PM, <[email protected]> wrote:

> be forwarned I haven't used amavis in a few years.

No problem you got it right anyway, amavis listens on port 10024 and sends it 
back to OpenSMTPD on 10025 ;)

I wasn't aware about the mailaddr table but that does exactly the trick, 
brilliant! So now my complete working match rules look like this:

match for local action "local"
match tag AMAVIS for domain <domains> action "lmtp_dovecot"
match tag AMAVIS for any action "relay"
match from any for domain <domains> rcpt-to <recipients> action "relay_amavis"
match for any action "relay"

Note that you have spotted the duplicate lookup by using "domain <domains>" in 
the second match rule but the problem is that if I remove this "domain 
<domains>" lookup then I get into an routing loop (500 5.4.6 Routing loop 
detected: Loop detected) where Amavis sends back to OpenSMTPD which sends back 
to Amavis and so on...

So as far as I understand this "domain <domains>" lookup allows me to avoid 
this routing loop.



--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to