OSEC

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

pedroglups.pt
Date: Thu Aug 07 2008 - 11:54:23 CDT


Hi thanks again , yes now I understand the injection but i cannot relay on
php scripts to do the talk postfix sendmail seems more robust to handle that
, well anyway while searching for direct injection via smtp i found the
awnser to my problem and since i asked here ill post the response too for
prosperity , ehehe , the answer is message-id it seems message-id can be set
and queu-id too before delevering to postfix so when grepping the logs if
message-id is set correctly and unique for each mail i can now determine
what line log corresponds to what mail thank you very much i would not
accomplisehd this without the help from you guys , regards and happy
postfixing ;)

-----Mensagem original-----
De: owner-postfix-userspostfix.org [mailto:owner-postfix-userspostfix.org]
Em nome de Ralf Hildebrandt
Enviada: quinta-feira, 7 de Agosto de 2008 17:56
Para: postfix-userspostfix.org
Assunto: Re: Track logs

* pedroglups.pt <pedroglups.pt>:
> Hi could you explain "direct smtp injection",

telnet host 25
speak smtp

> I m reading now about VERP but anyway i found the information in logs
> very usefull with the downgrade that i cannot atm do the relation i
> was expecting
>
> -----Mensagem original-----
> De: owner-postfix-userspostfix.org
> [mailto:owner-postfix-userspostfix.org]
> Em nome de Ralf Hildebrandt
> Enviada: quinta-feira, 7 de Agosto de 2008 16:54
> Para: postfix-userspostfix.org
> Assunto: Re: Track logs
>
> * pedroglups.pt <pedroglups.pt>:
> > Hi thanks for your quick reply we are building a web system that
> > permits the sending of mail to a user defined mailling list for each
> > of the contacts on the mailling list we send one mail ex :
> > (sourcedomain.com -> target_1domain.com , sourcedomain.com ->
> > target_2domain.com , ... ) for this we use a foreach that iterates
> > the recipeints array
>
> OK. It's called "mailing list"
>
> > We use sendmail to send the mail ,
>
> That's very slow. Direct injection via SMTP is faster.
>
> > I was hopping it was possible to have a relation between each mail
> > we send and the log generated for that mail to get reports back to
> > the webapp that could confirm for example virus found , email
> > sucessfull , email rejected etc etc , but when i go to the logs e
> > cannot associate de log line with the sendmail command that
> > generated that log , i dont know if im explain myself well but :
>
> Use VERP and examine the bounces (if any).
>
> --
> Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
snickebocharite.de
> Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450
570-155
> http://www.arschkrebs.de
> "I've not lost my mind. It's backed up on tape somewhere." - Unknown
>

--
Ralf Hildebrandt (Ralf.Hildebrandtcharite.de) snickebocharite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
Trying to outsmart a compiler defeats much of the purpose of using one. --
Kernighan & Plauger, The Elements of Programming Style.