LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 04:01 AM   #1
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 15.0 64bit
Posts: 190

Rep: Reputation: 23
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 04:06 AM.
 
Old 04-08-2016, 01:49 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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



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 03:12 PM
sendmail - new setup; sends email out, but will not receive incoming email rAllcorn Linux - Server 1 02-07-2016 09:33 PM
receive and parse email in bash (or execute script when message is received) Guyverix Linux - Newbie 2 11-15-2009 07:29 AM
Upon clicking the View New Posts quick link, I receive a Database Error message pwc101 LQ Suggestions & Feedback 2 08-14-2008 08:01 AM
Message Rejected Error via Email carlosinfl Linux - Server 0 11-02-2007 07:54 AM

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

All times are GMT -5. The time now is 02:30 PM.

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
Open Source Consulting | Domain Registration