Receive error message when outgoing email cannot be sent
I noticed a name resolution error by reading my outgoing mails log file. I had sent a message from Mutt MUA setted with my GMail account, but It didn't appear by checking GMail webmail interface.
On my local system outgoing mail is setted as follows: - Mutt to compose mail - it recalls procmail with a specific procmailout.rc config file - in which after adding some stuff to my messages, procmail recalls "sendmail" command - that is a symlink to "esmtp" which uses gmail smtp serve as relay - I setted a procmail logfile and a esmtp logfile, so I can read what it happened. - All seemed to work as expected for a long... In procmail logfile I can read following error code related to my missed message: Code:
SMTP server problem Temporary failure in name resolution I did a little more accurate checking in the same logfile and I found some other errors, fortunately very few, there is also a couple of old lines that report: Code:
SMTP server problem Network is unreachable Now, what I want is to be advised when an outgoing message doesn't reach gmail smtp. If you send a message from GMail or any other mail service, when your outgoing message can't be sent, usually the server sends back a mail message, a delivery error... I'd like to configure a local simple system to receive an email message if somthing goes wrong and my outgoing mail cannot be sent to GMail server, especially due to network or DNS resolution problems. Error mail message should be easly visible on Mutt list, so that I can imediately notice something goes wrong. Which way should I choose? Any suggest will be greatly appreciated! Thanks in advance |
It depends on the remove server... Some of them have moved off of port 25. Trying to send to one that is using something else won't work.
Normally, when a connection fails root will get a failure message. If you find a ton of failed messages in the root mail, I would suggest adding an alias so that roots mail gets forwarded to you at a local account. |
All times are GMT -5. The time now is 10:23 PM. |