Nested rulesets or Multiple ruleset conditions
Mark Carbonaro
mark.carbonaro at IT.ALSTOM.COM.AU
Sun Dec 14 21:28:55 GMT 2003
I have a need to use a nested ruleset within MS. Is this possible? I am
unable to find anything in the documentation about this.
To help understand my reason here is my scenario...
One division of my company needs to relay (almost) all email off a third
party (they provide virus scanning services, its political & not something I
can change). We have a central SMTP server that runs Postfix & MS and I am
able to send route all email successfully by having 2 outbound Postfix
queues (and 2 instances of outbound postfix), the first queue delivers
directly while the second sends all email to the relay (for scanning etc).
I did this by using a ruleset on the outbound queue config line (works
great), all email from that server (192.168.0.29) is put in the second queue
and off she goes. The problem is that there is one mailbox on that server
that should not be sent via the second queue (I can't go into details why,
it just can't :-), that server is running MSExchange 5.5 so my email routing
options are very limited.
My way of thinking is to implement a nested ruleset that looks like this...
ruleset1.rules
From: 192.168.0.29
/opt/MailScanner/etc/rules/ruleset2.rules
FromorTo: default /var/spool/postfix/incoming
ruleset2.rules
From: *@mycompany.com /var/spool/postfix.thirdparty/incoming
FromOrTo: default /var/spool/postfix/incoming
To avoid mail routing loops (if that's possible) I don't want to just have
one ruleset with *@mycompany.com as some of our monitoring equipment uses an
@mycompany.com email address and they are sent to @mycompany.com addresses.
Or is it possible to have multiple conditions in the ruleset, e.g. From:
192.168.0.29 AND *@mycompany.com?
I hope that all makes sense, maybe I'm just looking at this the wrong way,
please feel free to provide suggestions on how I might do this better.
Thank you for your time.
Cheers,
Mark
_____________________________________________________________________
CONFIDENTIALITY: This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient,please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.
More information about the MailScanner
mailing list