Re: One postfix - two logs?

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 ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-25-2005
mouss
 
Posts: n/a
Default Re: One postfix - two logs?

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...






Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0