Hi,
I can't match sessions with a tag - it seems tags are ignored
completely.
My scenario is like this:
I have a mailing system comprising of two mail servers. One as mail
exchanger, the other as spam content filter. My intention is to separate
the mail exchanging business from the very dangerous content scanning
(SpamAssassin, ClamAV), to enhance security.
Further, I distinguish between mails coming from the outside (internet),
and from my users sending mail to the outside.
So, spam0, my spam filtering system, listens on various ports to
discriminate mails based on where they enter the system.
This is its smtpd.conf:
--->
table aliases file:/etc/mail/aliases
listen on lo0
listen on egress port 10020 tag SPAM_IN
listen on lo0 port 10022 tag HAM_IN
listen on egress port 10023 tag SPAM_OUT
listen on lo0 port 10025 tag HAM_OUT
accept for local alias <aliases> deliver to mbox
accept tagged SPAM_IN \
for any \
relay via smtp://127.0.0.1:10021
accept tagged HAM_IN \
for any \
relay via smtp://mx0.beispiel.de:10022
accept tagged SPAM_OUT \
for any \
relay via smtp://127.0.0.1:10024
accept tagged HAM_OUT \
for any \
relay via smtp://mx0.beispiel.de:10025
accept from any \
for any \
relay via smtp://127.0.0.1:10021
<---
Simple enough. But sessions are always matched with the last rule. I
know this for sure, as I can see the other server (my mx) connecting on
port 10023 (as it should), but spam0 relays the mail to 10021.
Then, if I comment out the last rule, smtpd on my mx tells me "Invalid
recpient".
Is there an error in my config I don't see, or is it a pontential bug?
Thank you very much!
Best wishes,
Norman
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]