postfix email status

Blake Barnett shadoi at nanovoid.com
Tue May 9 19:36:11 MDT 2006


I haven't tried it but there's a script included with Postfix that  
will convert your logs to the common log format, then you can use  
something like AWstats to parse it and make pretty reports, etc.

-Blake

On May 9, 2006, at 4:48 PM, kirk wrote:

> I'd like to be able to check on the status of a message that I have  
> sent
> from my localhost using postfix as the local MTA.
>
> I would like to save it against a user_id in a database table such as
> user_id    email_id    status
> 1          1           sent
> 1          2           deffered
>
> The first solution that comes to mind when I looked at this problem is
> to parse the mailog file for success or failure of a
> particular send but this may end up becoming slow.
>
> Alternatively I thought that I could pipe the file into a network  
> stream
> and listen for new information going into the log
> on a tcp stream.
> Which would mean I now only see the new information and
> I can parse it just as I would have parsed
> an entry in the maillog file itself.
>
> I'd like to know if anyone has any ideas on the tracking of email
> delivery status specifically using postfix as the MTA.
> Also with the two ideas I have put forward in the above paragraph, is
> the network stream a viable idea ? and how
> would I go about pipeing the file into a network stream so that it
> produces the behaviour I described above ?
>
> - Kirk
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */



More information about the PLUG mailing list