Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Fedora 23: mail command not working

On Fedora 21, I had a simple script for sending emails

mail -a /tmp/attachment.txt -s "..."

On Fedora 23, this no longer works.

No configuration file found at /home/mike/.esmtprc or /etc/esmtprc

I created the file and assigned correct permissions to it.

hostname = localhost:25

(That's what Fedora 21 would send emails from: mike@localhost.localdomain.)

Well, now I'm getting

SMTP server problem Connection refused

Question: how do I get the mail command to work on Fedora 23?

I've also tried installing postfix, but to no avail:

SMTP server problem SMTP server dropped connection