On 6/12/19 11:52 AM, Rafael Azevedo wrote: > Its not the same result between the final client and the server. > > Its the communication between the servers. > > [client] >>> [server] >>> [final destination's server] > > So this is the part they want me to store: > > [server] > EHLO > MAIL FROM > RCPT TO > DATA > RESULT (ACCEPTED OR > REJECTED) [final destination's server] > > They need to have the confirmation of the acceptance of the message by > the final destination's provider.
As has been suggested before, this is a perfect application for TCPDUMP with appropriate parameters on your edge server, and a script to interpret the data. What you are looking for is source or destination (your server), port (25/TCP), snaplen of 256, -A to capture the text in a packet. A Perl or Python script can parse the data to get what you want.