LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-13-2013, 05:02 PM   #1
nitin_ucer
LQ Newbie
 
Registered: Aug 2007
Posts: 14

Rep: Reputation: 0
msmtp client giving error : network read error: the operation timed out


Hi ,

I am using msmtp client and getting below error in msmtp logs while sending email :

errormsg='network read error: the operation timed out' exitcode=EX_IOERR

I get this failure when authentication is enabled . When authentication is
not enabled , I do not get this error and emails are sent successfully
which tells me that there is no network problem.

Any clue would be appreciated.

Below is the config file I am using in case of failure :


account default
timeout 20
host 10.99.193.72
port 25
logfile /tmp/msmtp.log
domain [10.182.65.228]
auto_from off
from ashut-42MFMW1@...
tls_cert_file /etc/certs/host.crt
tls_key_file cv/private/host.key
tls_starttls on
tls_force_sslv3 off
tls_certcheck off
tls on
auth login
user "ashut@..."
password "ashu_123"





thanks
ashu
 
Old 05-13-2013, 07:11 PM   #2
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You should verify that the following (well, at least the port number) are correct for authenticated connections:
Code:
host 10.99.193.72
port 25
Typically SMTP servers that listen on port 25 do not employ user authentication. For example, Google uses port 465 (SSL) or 587 (TLS).

Take a look at this page to get a better idea. These port settings may or may not apply to your current locale.
 
Old 05-13-2013, 07:22 PM   #3
nitin_ucer
LQ Newbie
 
Registered: Aug 2007
Posts: 14

Original Poster
Rep: Reputation: 0
This SMTP server is running in our lab and it listens on 25.
 
Old 05-15-2013, 01:52 PM   #4
nitin_ucer
LQ Newbie
 
Registered: Aug 2007
Posts: 14

Original Poster
Rep: Reputation: 0
I am able to collect msmtp debug logs and I am seeing that it is sitting at :

"reading recipients from the command line and the mail"



Any idea why is it is hung there ?
 
  


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
mount -cifs giving read only error kiwidesign Linux - Newbie 10 06-16-2021 05:53 PM
Got fatal error during xfer (inet connect: Connection timed out): Backuppc ERROR sanjay87 Linux - Server 0 05-15-2012 01:38 AM
FATAL ERROR: Network error: Connection timed out nagendrar Linux - Newbie 0 07-22-2009 02:17 AM
Jboss error message, operation timed out sanw2k Linux - Networking 1 06-09-2003 07:52 AM
Type Read: Operation Not Permitted Error Snabber Linux - Newbie 5 06-05-2003 09:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:22 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
Open Source Consulting | Domain Registration