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 (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.