Hi,
I'm using Apache James version 3 and I need to log all SMTP commands
that used on final delivery and save it into a XML file.
For example:
I sent email from: [email protected] to: [email protected], when
somedomain.com connects on domain.com, I need to save all commands like
this:
2013-01-14 08:51:47 >>> 220 mx.domain.com ESMTP m9si15066614pav.309
2013-01-14 08:51:47 <<< EHLO somedomain.com
2013-01-14 08:51:47 >>> 250-domain.com at your service, [XX.XX.X.XX]
2013-01-14 08:51:47 >>> 250-SIZE 35882577
2013-01-14 08:51:47 >>> 250-8BITMIME
2013-01-14 08:51:47 >>> 250-STARTTLS
2013-01-14 08:51:47 >>> 250-ENHANCEDSTATUSCODES
2013-01-14 08:51:47 >>> 250 PIPELINING
2013-01-14 08:51:47 <<< MAIL FROM:<[email protected]> BODY=7BIT
2013-01-14 08:51:47 <<< RCPT TO:<[email protected]>
2013-01-14 08:51:47 <<< DATA
2013-01-14 08:51:47 >>> 250 2.1.0 OK m9si15066614pav.309
2013-01-14 08:51:47 >>> 250 2.1.5 OK m9si15066614pav.309
2013-01-14 08:51:47 >>> 354 Go ahead m9si15066614pav.309
2013-01-14 08:51:48 <<< .
2013-01-14 08:51:49 >>> 250 2.0.0 OK 1358182309 m9si15066614pav.309
2013-01-14 08:51:49 <<< QUIT
2013-01-14 08:51:49 >>> 221 2.0.0 closing connection m9si15066614pav.309
2013-01-14 08:51:49 closed domain.com-smtp-in.domain.com (XX.XXX.XX.XX)
in=381 out=70785
2013-01-14 08:51:49 done domain.com/mta1
Is there a hook or mailet that do this ?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]