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 : ([EMAIL PROTECTED] ->
[EMAIL PROTECTED] , [EMAIL PROTECTED] -> [EMAIL PROTECTED] , ... ) for
this we use a foreach that iterates the recipeints array
We use sendmail to send the mail , 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 :

        
        1 - sendmail , to send the mail
        2 - sendmail reports to syslog 
        3 - syslog inserts records in mysql database

In the table that holds the logs it is impossible to know what logs belong
to waht sendmail command 
I was hopping the following beahviour for postfix 

        1 - the script executes sendmail
        2 - sendmail returns back a unique code for that mail 
        3 - sendmail and the other programs report to syslog status of that
mail always prependend with that code
        4 - we go to the database and select all line logs belonging to th
individual sendmail command executed by referencing the unique code
 
I dont seem to find this behaviour if is not implemented we are willing to
hack the source but only in last resort 

Once again sorry my english 
Regards : Pedro Rocha , PT
        
        

-----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Em nome de Ralf Hildebrandt
Enviada: quinta-feira, 7 de Agosto de 2008 16:30
Para: postfix-users@postfix.org
Assunto: Re: Track logs

* [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

No space before a "," ...
And use a "." sometimes.

> Hi there Im having sort of a problem down here, i use php and foreach 
> cycle to send mail with postfix, i tweaked the php scripts to get some 
> output with sendmail program but if i understood weell by the time i 
> get response fom sendmail (one sendmail execution by foreach iteration 
> ), in verbose mode -vv i can only record queue_id but By grepping the 
> logs queue_id that i can relate to the foreach iteration etc etc,

What for?

> returns few info regarding the aummount os logs generated per mail,

aummount os logs?

> i know that postfix uses various programs to handle all the process 
> but how to realate this log line is form this mail the next line too 
> isnt there a unique identifier per mail as i would grep by some sort 
> of code a see the logs respecting to that particular sendmail 
> execution,

The queueid is unique.

> i know also ... This isnt so linear as mails could stay in queu and 
> when i go consulting the logs all info would not be avaible, but in 
> case of email succed 14 lines of logs per mail are generated but how 
> to relate them how to relate an id by the time of calling sendmail and 
> having it when grepping log to indivdualize status per mail,

What do you want to relate?

What do you want to do?

-- 
Ralf Hildebrandt ([EMAIL PROTECTED])          [EMAIL PROTECTED]
Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
A mathematician is an engine for converting coffee into theorems.

Reply via email to