OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Adding custom info to postfix logs

From: Marcos Mendonça (marcosmgmail.com)
Date: Tue Jul 26 2005 - 16:33:49 CDT


I thought about using a differente approach, but since i´m not very
familiar with unix don´t know exactly how to do that.

I´m calling the sendmail command on a script shell that parses the
messages created by the application. Then another script would parse
the mail.log in search for the info i´d like to add to the log.

If i´d take the approach you suggest could i this do this?

Can you give me anymore details on how to execute what you suggest?

Thanks again
Marcos

On 7/26/05, Christian Joergensen <mailrazor.dk> wrote:
> On Tue, 2005-07-26 at 18:21 -0300, Marcos Mendonça wrote:
>
> [...]
>
> > As for the manuel the -L (label) option command line would do the job,
> > but it is ignores by sendmail.
> >
> > Anyother way i could add the info i want to the sendmail log?
>
> What about using another approach and deliver the mail with smtp to
> localhost? Then you will get the queue-id to do your matching in the
> mail.log.
>
> --
> Christian Jørgensen | It's always a long day
> http://www.razor.dk | - 86400 doesn't fit into a short.
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQBC5qtP/iXs+LeLBiwRAo8aAJ42lEpGkj5/mK780B/Mn+Bwew/LPQCdFjkv
> kCosJgVQcJM/NG8O2p9u8ok=
> =3i3Z
> -----END PGP SIGNATURE-----
>
>
>