Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Net::SMTP - Connection to local MTA refused

by kschwab (Priest)
on Mar 07, 2017 at 20:56 UTC ( #1183884=note: print w/replies, xml ) Need Help??


in reply to Re^2: Net::SMTP - Connection to local MTA refused
in thread Net::SMTP - Connection to local MTA refused

It appears the MTA is closing the connection right after you send the "MAIL FROM:" string.
Net::SMTP=GLOB(0x20461c8)>>> MAIL FROM:<sender address shown here>
Net::SMTP: Net::Cmd::getline(): unexpected EOF on command channel:  at
+ /srv/www1-ssl/cgi-lib/sendmail.pm line 76.

So, it's either the MTA itself, or some external thing like AppArmor (enabled by default in the OpenSuse version you mention).

I would look at the logs for whatever your MTA is (exim maybe?) as well as AppArmor, SELinux, or whatever other external security stuff you may have running.

Maybe also try "service boot.apparmor stop", and see if turning off AppArmor makes a difference. Not the right solution, but quick to try.

  • Comment on Re^3: Net::SMTP - Connection to local MTA refused

Replies are listed 'Best First'.
Re^4: Net::SMTP - Connection to local MTA refused
by Robidu (Novice) on Mar 16, 2017 at 08:50 UTC

    My MTA is Postfix, and AppArmor is disabled (I'm currently running SELinux in Permissive mode so that doesn't interfere at the moment).

    Unfortunately the logs haven't turned up anything that could be of help so I'm at a loss here.

      Turn on verbose logging in Postfix, or try some of the other things on this page.

      Your logs show pretty clearly that it's postfix closing the connection (assuming apparmor and similar aren't doing it), so this should unearth something

        The issue had arisen, because I'm using a self-signed cert for Postfix, but that had been rejected. Making the fingerprint of said cert known to IO::Socket::SSL (and subsequently Net::SSLeay) made it accept the cert without complaint, and now the TLS runs smoothly. Thanks for your effort.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1183884]
help
Chatterbox?
erix wouldn't mind a nice old windmill to live in... Mueller/Miller/ Molenaar
LanX likes Swedish clogs

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-12-15 16:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (439 votes). Check out past polls.

    Notices?