Fedora 27 and Outgoing Email
-
What packages need to be install, and what configuration is needed?
Just want to email out a log file.
-
Doesn't Fedora have built-in mail provider?
-
@dustinb3403 I don't know, that's why I asked
-
There's probably a better way, but you could install Postfix.
-
Works by default. Nothing is needed.
-
I think it has mailx installed by default
-
@eddiejennings said in Fedora 27 and Outgoing Email:
There's probably a better way, but you could install Postfix.
That should be there by default, at least in most cases.
-
@dustinb3403 said in Fedora 27 and Outgoing Email:
I think it has mailx installed by default
mailx is the client, not the mailer. But most people actually want to use this and don't realize it and so don't ask what they mean. So chances are, he wants to use mailx but technically he is set to send emails without it.
-
@aaronstuder said in Fedora 27 and Outgoing Email:
Just want to email out a log file.
From what application?
-
@scottalanmiller bash script, via command line is fine.
-
@aaronstuder said in Fedora 27 and Outgoing Email:
@scottalanmiller bash script, via command line is fine.
If you want to do it from BASH, you need to add a command to send. mailx is the one to use.
dnf install mailx
-
@scottalanmiller said in Fedora 27 and Outgoing Email:
If you want to do it from BASH, you need to add a command to send. mailx is the one to use.
Null message body; hope that's ok
/usr/sbin/sendmail: No such file or directory
"/root/dead.letter" 9/243
. . . message not sent. -
@aaronstuder said in Fedora 27 and Outgoing Email:
@scottalanmiller said in Fedora 27 and Outgoing Email:
If you want to do it from BASH, you need to add a command to send. mailx is the one to use.
Null message body; hope that's ok
/usr/sbin/sendmail: No such file or directory
"/root/dead.letter" 9/243
. . . message not sent.Is there really no MTA by default? Is this one of Jared's minimal installs instead of server? That might do it.
dnf install postfix systemctl start postfix systemctl enable postfix
-
@scottalanmiller postfix installed, running and enabled.
The command just hangs:
mail -s "Test" [email protected]
-
@aaronstuder said in Fedora 27 and Outgoing Email:
@scottalanmiller postfix installed, running and enabled.
The command just hangs:
mail -s "Test" [email protected]
It's not hung, it's waiting for the body of the email. Try this...
mail -s "Test" [email protected] < /etc/passwd
-
@scottalanmiller said in Fedora 27 and Outgoing Email:
mail -s "Test" [email protected] < /etc/passwd
Bingo, Gmail thinks it's spam, but that makes since
-
@scottalanmiller so do I even need postfix?
-
@aaronstuder said in Fedora 27 and Outgoing Email:
@scottalanmiller said in Fedora 27 and Outgoing Email:
mail -s "Test" [email protected] < /etc/passwd
Bingo, Gmail thinks it's spam, but that makes
sincesenseFtfy
-
@aaronstuder said in Fedora 27 and Outgoing Email:
@scottalanmiller so do I even need postfix?
Yes, mailx is only a client, it's telling Postfix to send it. if you wanted to send through Postfix by hand, you could.
-
@scottalanmiller said in Fedora 27 and Outgoing Email:
@aaronstuder said in Fedora 27 and Outgoing Email:
@scottalanmiller so do I even need postfix?
Yes, mailx is only a client, it's telling Postfix to send it. if you wanted to send through Postfix by hand, you could.
Fun = telnet to postfix and send E-mail that way