Rules with IP addresses

Caza Henha cazahenha at hotmail.com
Mon Sep 1 18:26:43 IST 2008


Hi Jules,
 
Thanks for the answer, I presumed that would be the case, but I was thinking that as our postfix configuration has transport maps it does actually know before sending the mail to our application server what the destination IP address is. Does this mean then that something like the following would be necessary:
 
To:   support at example.com  store   //Ticketing server
To:   issues at example.com    store   //Ticketing server
....
To:   application1 at example.com  delete //App Server 1
To:   application2 at example.com  store  //App Server 2
...
To:   user at example.com      delete //Exchange server
To:   user at example.com      delete //Exchange server
.....
FromOrTo: default               deliver //Public Mail server
 
Bearing in mind that there are 1000s of different email address permutations going to the app servers (writing a script to create the rules is easy) would there be any performance problems with Mailscanner reading these files? Also when using an IP address in the "From" could you direct me to information from the question below:
 
> > Consequently I have noticed a number of examples have IP addresses in > > the From section of the rules and I was just wondering where this IP > > address was coming from and what it can actually be as I cannot seem > > to find any documentation on it. For example is this IP address (or > > the RegEx of one) the connecting smtp server (or any smtp server that > > the mail has passed through), client address, MX address of the > > sending domain etc or any combination of all the previous?
 
Regards,
 
Caza
> Date: Mon, 1 Sep 2008 12:22:45 +0100> From: MailScanner at ecs.soton.ac.uk> To: mailscanner at lists.mailscanner.info> Subject: Re: Rules with IP addresses> > > > Caza Henha wrote:> >> > Hi,> > > > I have recently installed Mailscanner with Postfix and MailWatch and > > it seems over the last week the system is running great, however I am > > now getting requests to tweak the default rules that I have from > > various users in different departments. I have been trying to delve > > into the knitty gritty of the rules and understand the principles and > > they do not seem very complicated and when looking at some examples on > > the Wiki things shouldn't be to difficult.> > > > Consequently I have noticed a number of examples have IP addresses in > > the From section of the rules and I was just wondering where this IP > > address was coming from and what it can actually be as I cannot seem > > to find any documentation on it. For example is this IP address (or > > the RegEx of one) the connecting smtp server (or any smtp server that > > the mail has passed through), client address, MX address of the > > sending domain etc or any combination of all the previous?> It is the IP address of the machine that was the client end of the SMTP > connection to the server. So in the case of a customer-facing SMTP > server, it will be the customer's client IP address. In the case of an > MX it would be the IP address of the SMTP server talking to you.> > > > Also can this be used in a "To" configuration,> No. Due to the way mail delivery works, you don't know the IP address of > the destination until you have already started sending the message. > Can't be done.> > Jules> > -- > Julian Field MEng CITP CEng> www.MailScanner.info> Buy the MailScanner book at www.MailScanner.info/store> > Need help customising MailScanner?> Contact me!> Need help fixing or optimising your systems?> Contact me!> Need help getting you started solving new requirements from your boss?> Contact me!> > PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654> > > -- > This message has been scanned for viruses and> dangerous content by MailScanner, and is> believed to be clean.> > -- > MailScanner mailing list> mailscanner at lists.mailscanner.info> http://lists.mailscanner.info/mailman/listinfo/mailscanner> > Before posting, read http://wiki.mailscanner.info/posting> > Support MailScanner development - buy the book off the website! 
_________________________________________________________________
Get all your favourite content with the slick new MSN Toolbar - FREE
http://clk.atdmt.com/UKM/go/111354027/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20080901/6932180c/attachment.html


More information about the MailScanner mailing list