OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
RE: Access to mails information

From: Sheldon T. Hall (pftandem.artell.net)
Date: Mon Feb 13 2006 - 09:51:34 CST


David Araujo says ...

> i'm thinking using postfix but i dont know if it's possible to access
> the mail data that comes via smtp. I want to have a backoffce
> that shows
> the information of the mails that comes in. This backoffice must show
> information like:
> - sender
> - recipient
> - message size

All the above is in the logs, and the loga are easy to parse.

> - subject

You can have Postfix put this in the logs, too. Use header_checks and an
expression like ...

        /^Subject:/ WARN

> - send date

The best you can do here is the date and time it was received at your
mailserver. The "send date" should be in the headers of the message, put
there by the sender's system, but, since you don't have control over its
accuracy, it's not dependable. The date and time received is in the logs.

> - receive date (via POP3)

Postfix doesn't do POP3, so you need to examine your POP3 server for ways to
do this.

-Shel