LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2016, 05:01 AM   #1
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 14.2 64bit
Posts: 149

Rep: Reputation: 21
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
Ok, it's a issue of my network, I'm using a mobile hspa connection that sometimes returns timeout errors.
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

Last edited by joenew; 04-04-2016 at 05:06 AM.
 
Old 04-08-2016, 02:49 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,844

Rep: Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I am having trouble getting my new Zorin 9 os to read dvd movies. 'Unable to mount files' is the error message I receive. deekwa Linux - Newbie 5 04-06-2016 04:12 PM
sendmail - new setup; sends email out, but will not receive incoming email rAllcorn Linux - Server 1 02-07-2016 10:33 PM
receive and parse email in bash (or execute script when message is received) Guyverix Linux - Newbie 2 11-15-2009 08:29 AM
Upon clicking the View New Posts quick link, I receive a Database Error message pwc101 LQ Suggestions & Feedback 2 08-14-2008 09:01 AM
Message Rejected Error via Email carlosinfl Linux - Server 0 11-02-2007 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration