SMTP connectivity issue in Zenoss (“Connection unexpectedly closed”)
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.
linux monitoring sendmail smtp
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
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.
linux monitoring sendmail smtp
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
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
add a comment |
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.
linux monitoring sendmail smtp
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
linux monitoring sendmail smtp
edited Jan 17 '14 at 8:13
Risto Salminen
1,65511021
1,65511021
asked Apr 11 '13 at 10:55
Kratos
1561211
1561211
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
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
add a comment |
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
add a comment |
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
Thank you .This script was really helpful in testing my sendmail .In its output , otherfewaddress 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
add a comment |
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: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Required, but never shown
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
Thank you .This script was really helpful in testing my sendmail .In its output , otherfewaddress 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
add a comment |
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
Thank you .This script was really helpful in testing my sendmail .In its output , otherfewaddress 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
add a comment |
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
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
edited Apr 12 '13 at 17:18
answered Apr 11 '13 at 12:19
AnFi
1,09259
1,09259
Thank you .This script was really helpful in testing my sendmail .In its output , otherfewaddress 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
add a comment |
Thank you .This script was really helpful in testing my sendmail .In its output , otherfewaddress 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
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
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