Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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/ 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 (Acolyte) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1183884]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2018-07-21 10:10 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (446 votes). Check out past polls.