SMTP connectivity issue in Zenoss (“Connection unexpectedly closed”)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I am using Zenoss for monitoring purpose. I have been using its mail service for a long time. Suddenly my mail service in zenoss stopped and started showing <class 'smtplib.SMTPServerDisconnected'> - Connection unexpectedly closed and no mails are outgoing. When I ran the mail command via CLI, the mail goes to the email address. While executing the zenoss script for mailer won't work and throws out the error as shown above.



My server is RHEL 5.3 x86_64, with Zenoss 4.2 & sendmail email server.



Sendmail logs & Zenoss email conf



Apr 11 07:14:30 XXXhostnameXX sendmail[13582]: r3BBDgia013582: lost input channel from localhost.localdomain [127.0.0.1] to MTA after mail
Apr 11 07:14:30 XXXhostnameXX sendmail[13582]: r3BBDgia013582: from=<fromaddress@emaildomain.com>, size=146972, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]


Zenoss is following basic smtp connection as emailing is done by local sendmail server (localhost) in port 25. No specific configuration is used.










share|improve this question























  • 1) Could you post the relevant sendmail log entries? 2) Could you post details of your Zenoss email configuration? [It may help "non Zenoss" experts]
    – AnFi
    Apr 11 '13 at 11:16










  • @Andrzej A. Filip :Updated with logs.
    – Kratos
    Apr 11 '13 at 11:28














up vote
2
down vote

favorite












I am using Zenoss for monitoring purpose. I have been using its mail service for a long time. Suddenly my mail service in zenoss stopped and started showing <class 'smtplib.SMTPServerDisconnected'> - Connection unexpectedly closed and no mails are outgoing. When I ran the mail command via CLI, the mail goes to the email address. While executing the zenoss script for mailer won't work and throws out the error as shown above.



My server is RHEL 5.3 x86_64, with Zenoss 4.2 & sendmail email server.



Sendmail logs & Zenoss email conf



Apr 11 07:14:30 XXXhostnameXX sendmail[13582]: r3BBDgia013582: lost input channel from localhost.localdomain [127.0.0.1] to MTA after mail
Apr 11 07:14:30 XXXhostnameXX sendmail[13582]: r3BBDgia013582: from=<fromaddress@emaildomain.com>, size=146972, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]


Zenoss is following basic smtp connection as emailing is done by local sendmail server (localhost) in port 25. No specific configuration is used.










share|improve this question























  • 1) Could you post the relevant sendmail log entries? 2) Could you post details of your Zenoss email configuration? [It may help "non Zenoss" experts]
    – AnFi
    Apr 11 '13 at 11:16










  • @Andrzej A. Filip :Updated with logs.
    – Kratos
    Apr 11 '13 at 11:28












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I am using Zenoss for monitoring purpose. I have been using its mail service for a long time. Suddenly my mail service in zenoss stopped and started showing <class 'smtplib.SMTPServerDisconnected'> - Connection unexpectedly closed and no mails are outgoing. When I ran the mail command via CLI, the mail goes to the email address. While executing the zenoss script for mailer won't work and throws out the error as shown above.



My server is RHEL 5.3 x86_64, with Zenoss 4.2 & sendmail email server.



Sendmail logs & Zenoss email conf



Apr 11 07:14:30 XXXhostnameXX sendmail[13582]: r3BBDgia013582: lost input channel from localhost.localdomain [127.0.0.1] to MTA after mail
Apr 11 07:14:30 XXXhostnameXX sendmail[13582]: r3BBDgia013582: from=<fromaddress@emaildomain.com>, size=146972, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]


Zenoss is following basic smtp connection as emailing is done by local sendmail server (localhost) in port 25. No specific configuration is used.










share|improve this question















I am using Zenoss for monitoring purpose. I have been using its mail service for a long time. Suddenly my mail service in zenoss stopped and started showing <class 'smtplib.SMTPServerDisconnected'> - Connection unexpectedly closed and no mails are outgoing. When I ran the mail command via CLI, the mail goes to the email address. While executing the zenoss script for mailer won't work and throws out the error as shown above.



My server is RHEL 5.3 x86_64, with Zenoss 4.2 & sendmail email server.



Sendmail logs & Zenoss email conf



Apr 11 07:14:30 XXXhostnameXX sendmail[13582]: r3BBDgia013582: lost input channel from localhost.localdomain [127.0.0.1] to MTA after mail
Apr 11 07:14:30 XXXhostnameXX sendmail[13582]: r3BBDgia013582: from=<fromaddress@emaildomain.com>, size=146972, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]


Zenoss is following basic smtp connection as emailing is done by local sendmail server (localhost) in port 25. No specific configuration is used.







linux monitoring sendmail smtp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 17 '14 at 8:13









Risto Salminen

1,64711021




1,64711021










asked Apr 11 '13 at 10:55









Kratos

1561211




1561211











  • 1) Could you post the relevant sendmail log entries? 2) Could you post details of your Zenoss email configuration? [It may help "non Zenoss" experts]
    – AnFi
    Apr 11 '13 at 11:16










  • @Andrzej A. Filip :Updated with logs.
    – Kratos
    Apr 11 '13 at 11:28
















  • 1) Could you post the relevant sendmail log entries? 2) Could you post details of your Zenoss email configuration? [It may help "non Zenoss" experts]
    – AnFi
    Apr 11 '13 at 11:16










  • @Andrzej A. Filip :Updated with logs.
    – Kratos
    Apr 11 '13 at 11:28















1) Could you post the relevant sendmail log entries? 2) Could you post details of your Zenoss email configuration? [It may help "non Zenoss" experts]
– AnFi
Apr 11 '13 at 11:16




1) Could you post the relevant sendmail log entries? 2) Could you post details of your Zenoss email configuration? [It may help "non Zenoss" experts]
– AnFi
Apr 11 '13 at 11:16












@Andrzej A. Filip :Updated with logs.
– Kratos
Apr 11 '13 at 11:28




@Andrzej A. Filip :Updated with logs.
– Kratos
Apr 11 '13 at 11:28










1 Answer
1






active

oldest

votes

















up vote
0
down vote













It may be is a client side timeout after issuing "MAIL FROM:".

Knowing exact value of reply delay should provide a valuable hint.



Could you send a test message in verbose mode?
[It should provide SMTP session transcript]



#!/bin/sh
# -v - be verbose (provide SMTP transcript)
# -i - 'single dot' line is NOT end of email
# -t - get recipients list from email headers
# -f - set envelope sender email address (for "MAIL FROM:" in SMTP session)
/usr/sbin/sendmail -v -i -t -ffromaddress@emaildomain.com <<END
Subject: test
From: fromaddress@emaildomain.com
to: xxx@example.net

test
END





share|improve this answer






















  • Thank you .This script was really helpful in testing my sendmail .In its output , otherfew address unresolvable for @emaildomain.com , test email successfully reached xxx@example.net.Do you know a way to extend the time out in email Server side ?
    – Kratos
    Apr 12 '13 at 6:21






  • 1




    1) Add -8.20 sendmail command line option to trace DNS lookups. Fixing DNS entries or used email addresses may fix your problem. 2) I know sendmail, I do not know Zenoss.
    – AnFi
    Apr 12 '13 at 17:22










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f72068%2fsmtp-connectivity-issue-in-zenoss-connection-unexpectedly-closed%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













It may be is a client side timeout after issuing "MAIL FROM:".

Knowing exact value of reply delay should provide a valuable hint.



Could you send a test message in verbose mode?
[It should provide SMTP session transcript]



#!/bin/sh
# -v - be verbose (provide SMTP transcript)
# -i - 'single dot' line is NOT end of email
# -t - get recipients list from email headers
# -f - set envelope sender email address (for "MAIL FROM:" in SMTP session)
/usr/sbin/sendmail -v -i -t -ffromaddress@emaildomain.com <<END
Subject: test
From: fromaddress@emaildomain.com
to: xxx@example.net

test
END





share|improve this answer






















  • Thank you .This script was really helpful in testing my sendmail .In its output , otherfew address unresolvable for @emaildomain.com , test email successfully reached xxx@example.net.Do you know a way to extend the time out in email Server side ?
    – Kratos
    Apr 12 '13 at 6:21






  • 1




    1) Add -8.20 sendmail command line option to trace DNS lookups. Fixing DNS entries or used email addresses may fix your problem. 2) I know sendmail, I do not know Zenoss.
    – AnFi
    Apr 12 '13 at 17:22














up vote
0
down vote













It may be is a client side timeout after issuing "MAIL FROM:".

Knowing exact value of reply delay should provide a valuable hint.



Could you send a test message in verbose mode?
[It should provide SMTP session transcript]



#!/bin/sh
# -v - be verbose (provide SMTP transcript)
# -i - 'single dot' line is NOT end of email
# -t - get recipients list from email headers
# -f - set envelope sender email address (for "MAIL FROM:" in SMTP session)
/usr/sbin/sendmail -v -i -t -ffromaddress@emaildomain.com <<END
Subject: test
From: fromaddress@emaildomain.com
to: xxx@example.net

test
END





share|improve this answer






















  • Thank you .This script was really helpful in testing my sendmail .In its output , otherfew address unresolvable for @emaildomain.com , test email successfully reached xxx@example.net.Do you know a way to extend the time out in email Server side ?
    – Kratos
    Apr 12 '13 at 6:21






  • 1




    1) Add -8.20 sendmail command line option to trace DNS lookups. Fixing DNS entries or used email addresses may fix your problem. 2) I know sendmail, I do not know Zenoss.
    – AnFi
    Apr 12 '13 at 17:22












up vote
0
down vote










up vote
0
down vote









It may be is a client side timeout after issuing "MAIL FROM:".

Knowing exact value of reply delay should provide a valuable hint.



Could you send a test message in verbose mode?
[It should provide SMTP session transcript]



#!/bin/sh
# -v - be verbose (provide SMTP transcript)
# -i - 'single dot' line is NOT end of email
# -t - get recipients list from email headers
# -f - set envelope sender email address (for "MAIL FROM:" in SMTP session)
/usr/sbin/sendmail -v -i -t -ffromaddress@emaildomain.com <<END
Subject: test
From: fromaddress@emaildomain.com
to: xxx@example.net

test
END





share|improve this answer














It may be is a client side timeout after issuing "MAIL FROM:".

Knowing exact value of reply delay should provide a valuable hint.



Could you send a test message in verbose mode?
[It should provide SMTP session transcript]



#!/bin/sh
# -v - be verbose (provide SMTP transcript)
# -i - 'single dot' line is NOT end of email
# -t - get recipients list from email headers
# -f - set envelope sender email address (for "MAIL FROM:" in SMTP session)
/usr/sbin/sendmail -v -i -t -ffromaddress@emaildomain.com <<END
Subject: test
From: fromaddress@emaildomain.com
to: xxx@example.net

test
END






share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 12 '13 at 17:18

























answered Apr 11 '13 at 12:19









AnFi

1,04559




1,04559











  • Thank you .This script was really helpful in testing my sendmail .In its output , otherfew address unresolvable for @emaildomain.com , test email successfully reached xxx@example.net.Do you know a way to extend the time out in email Server side ?
    – Kratos
    Apr 12 '13 at 6:21






  • 1




    1) Add -8.20 sendmail command line option to trace DNS lookups. Fixing DNS entries or used email addresses may fix your problem. 2) I know sendmail, I do not know Zenoss.
    – AnFi
    Apr 12 '13 at 17:22
















  • Thank you .This script was really helpful in testing my sendmail .In its output , otherfew address unresolvable for @emaildomain.com , test email successfully reached xxx@example.net.Do you know a way to extend the time out in email Server side ?
    – Kratos
    Apr 12 '13 at 6:21






  • 1




    1) Add -8.20 sendmail command line option to trace DNS lookups. Fixing DNS entries or used email addresses may fix your problem. 2) I know sendmail, I do not know Zenoss.
    – AnFi
    Apr 12 '13 at 17:22















Thank you .This script was really helpful in testing my sendmail .In its output , otherfew address unresolvable for @emaildomain.com , test email successfully reached xxx@example.net.Do you know a way to extend the time out in email Server side ?
– Kratos
Apr 12 '13 at 6:21




Thank you .This script was really helpful in testing my sendmail .In its output , otherfew address unresolvable for @emaildomain.com , test email successfully reached xxx@example.net.Do you know a way to extend the time out in email Server side ?
– Kratos
Apr 12 '13 at 6:21




1




1




1) Add -8.20 sendmail command line option to trace DNS lookups. Fixing DNS entries or used email addresses may fix your problem. 2) I know sendmail, I do not know Zenoss.
– AnFi
Apr 12 '13 at 17:22




1) Add -8.20 sendmail command line option to trace DNS lookups. Fixing DNS entries or used email addresses may fix your problem. 2) I know sendmail, I do not know Zenoss.
– AnFi
Apr 12 '13 at 17:22

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f72068%2fsmtp-connectivity-issue-in-zenoss-connection-unexpectedly-closed%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay