Ask Your Question

Michal Huniewicz's profile - activity

2017-01-06 05:59:50 -0500 received badge  Famous Question (source)
2016-05-30 03:39:45 -0500 received badge  Notable Question (source)
2016-04-14 13:18:43 -0500 received badge  Popular Question (source)
2016-03-31 03:44:16 -0500 received badge  Scholar (source)
2016-03-30 19:33:36 -0500 received badge  Nice Answer (source)
2016-03-30 12:28:49 -0500 received badge  Nice Question (source)
2016-03-30 12:27:37 -0500 received badge  Teacher (source)
2016-03-30 12:27:37 -0500 received badge  Self-Learner (source)
2016-03-30 12:09:53 -0500 answered a question Fedora 23: mail command not working

Okay, seems like Fedora 21 must have had an email server running by default, but Fedora 23 does not.

In my

~/.esmtprc

I had to add

hostname = [SMTP SERVER THAT WORKS]:25
mda "/usr/bin/procmail -d %T"

And that worked. Thanks everyone anyway!

2016-03-30 11:28:12 -0500 commented answer Fedora 23: mail command not working

OK, so I'm getting

Host or domain name not found. Name service error for name=mikes
2016-03-30 11:24:52 -0500 commented answer Fedora 23: mail command not working

I tried that, got Error initializing NSS: Unknown error -8015.

Either way, didn't need to do it with Fedora 21...

2016-03-30 10:58:52 -0500 commented answer Fedora 23: mail command not working

Thing is, it worked with Fedora 21, so my assumption is, this gets lost somewhere within my system...

2016-03-30 10:43:24 -0500 commented answer Fedora 23: mail command not working

Already done that! I've got to stage where there are no errors, and it says

Connected to MTA
From mike@mikes: 250 Ok
To someone@somewhre.com: 250 Ok
Message data: .
Message sent: 250 Ok: queued as 48D4C6018E
Disconnected to MTA

But not email is sent.

2016-03-30 10:32:03 -0500 received badge  Student (source)
2016-03-30 09:55:36 -0500 asked a question Fedora 23: mail command not working

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

mail -a /tmp/attachment.txt -s "..." someone@somewhere.com

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