I have the following scenario:
[HTTP Server]: process messages
[SMTP Server]: only send messages
[HTTP Server] === connect to ===>>> [SMTP Server] === sends message ===>>> [world]
Ok, this is going well.
My point is: how to get feedback from [SMTP Server] to know if my message was really sent or not?
Using php-mailer or any language/api (in [HTTP Server]), I only have feedback for connection between servers: "Connection to SMTP server was OK", but this is not a proof that my message was really sent.
I mean, how to get that "status=sent" or "status=bounced" that appears in the /var/log/maillog for each message?
I am really trying this in the last weeks, but no success.
I worked in a way that, when [HTTP Server] connects to [SMTP Server], gets Message-ID from maillog, so later I'll go (SSH from [HTTP Server] to [SMTP Server]) to grep the /var/log/maillog with this Message-ID and gets this "status=sent" or "status=anything".
But I'm pretty sure there's an automated way to do that.
Does anyone know?