Log headers of rejected mail, how to do?

Is there a way to log headers of rejected mail ???

I ask this because out spam filter is outsourced but we still get random generated emails (like abcde@domain) to our domain, which are of course rejected. But I would like to prevent SMTP connections to been setup for this kind of spamming. However I need to know more about the messages and therefore need the headers.

Thanks,

Matthijs

Subject: Log headers of rejected mail, how to do ???

One way could be to set the notes.ini SMTPDebug=2 (set config SMTPDebug=2 in the console) and capture the protocol data from the log?

Hans

Subject: RE: Log headers of rejected mail, how to do ???

Well, it’s not really all the info I need. I really need the haeder:

14/05/2007 11:48:04.83 [12E4:0016-103C] SMTP CIServ Listen> Connection Accepted on Port 25

for Session 2C55000E

14/05/2007 11:48:04 SMTP Server [12E4:0013-10FC] State change from Greeting to Greeting

14/05/2007 11:48:04 SMTP Server [12E4:0013-10FC] Processing in Greeting state

14/05/2007 11:48:04 SMTP Server [12E4:0013-10FC] State change from Greeting to Connected

14/05/2007 11:48:04 SMTP Server: mta-cap-lb01.nl.easynet.net (194.165.92.8) connected

14/05/2007 11:48:05 SMTP Server [12E4:0013-0EF0] Processing in Connected state

14/05/2007 11:48:05 SMTP Server [12E4:0013-0EF0] EHLO command received

14/05/2007 11:48:05 SMTP Server [12E4:0013-0EF0] Processing in Connected state

14/05/2007 11:48:05 SMTP Server [12E4:0013-0EF0] MAIL command received

14/05/2007 11:48:05 SMTP Server [12E4:0013-0EF0] Processing in Connected state

14/05/2007 11:48:05 SMTP Server [12E4:0013-0EF0] RCPT command received

14/05/2007 11:48:05 SMTP Server [12E4:0013-0EF0] Processing in Connected state

14/05/2007 11:48:05 SMTP Server [12E4:0013-0EF0] DATA command received

14/05/2007 11:48:05 SMTP Server [12E4:0013-10FC] Processing in Connected state

14/05/2007 11:48:05 SMTP Server [12E4:0013-10FC] DATA command (cont.)

14/05/2007 11:48:05 SMTP Server: Message 0035D751 (MessageID: <200705140947.l4E9ltlQ0819

32@mta-cap-1.nl.easynet.net>) received

14/05/2007 11:48:06 SMTP Server [12E4:0013-0EF0] Processing in Connected state

14/05/2007 11:48:06 SMTP Server [12E4:0013-0EF0] QUIT command received

14/05/2007 11:48:06 SMTP Server [12E4:0013-0EF0] State change from Connected to Terminal

14/05/2007 11:48:06 SMTP Server: mta-cap-lb01.nl.easynet.net (194.165.92.8) disconnected

. 1 message[s] received

Subject: RE: Log headers of rejected mail, how to do ???

You might want to try SMTPDebug=3 and perhaps you need SMTPDebugIO also - have a look here:http://www-1.ibm.com/support/docview.wss?rs=463&uid=swg27003007

Hans