This is a discussion on Re: One postfix - two logs? within the mailing.postfix.users forums, part of the Mail Servers and Related category; Fredrik Eriksson wrote: > I use postfix together with Trend Micros produkt IMSS. The problem is > that the configuration ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Fredrik Eriksson wrote:
> I use postfix together with Trend Micros produkt IMSS. The problem is > that the configuration makes IMSS 'hook' into postfix by setting up > postfix to listen to two ports. So now my config looks something like > this : > > Email -> postfix port 25 -> IMSS port 10027 -> postfix port 10025 -> > Exchange > > So when an email first arrives it is logged, when it is sent on to IMSS > it is logged, when it arrives to postfix again it is logged and when > postfix finally delivers it internally it is logged again. > > Is there any easy way two separate the log files or do I have to start > two postfix processes to get a single log message per > received/delivered? Let me repeat myself... # ln -s smtp smtpfil # ln -s smtpd smtpdfil # ln -s cleanup pre-cleanup #cat $path/master.cf .... smtpfil unix - - n - 2 smtpfil .... this way you get logs of the form ".... postfix/smtpfil[123]: ..." when a message is passed to the content filter. similarly, you can use: smtp inet n - n - - smtpd -o content_filter=smtpfil:[amavis.localhost]:10024 ... so that you get relay=amavis.localhost[127.0.0.1] in the logs, instead of 127.0.0.1[127.0.0.1] (which is too ambiguous and is helpless in case of problems). Of course, this requires adding amavis.localhost to dns... |