sendmail works, mail at command line does not !
by rherzog from LinuxQuestions.org on (#5EGNY)
Hi,
I require a working postfix on my Ubuntu 18.04 virtual machine. I installed packages postfix and mailutils.
Command
echo "test email soir 4" | sendmail robert@monserveur.be
works flawlessly, indicating that postfix and ufw are prperly configured. Message reaches addressee within seconds.
But command
mail robert@monserveur.be
... and giving title and content, and ending with CTRL-D does not work.
What can go wrong ?
In fact, I need this postif installation to give PHP script access to sending mail.
Thanks for any clue
Robert


I require a working postfix on my Ubuntu 18.04 virtual machine. I installed packages postfix and mailutils.
Command
echo "test email soir 4" | sendmail robert@monserveur.be
works flawlessly, indicating that postfix and ufw are prperly configured. Message reaches addressee within seconds.
But command
mail robert@monserveur.be
... and giving title and content, and ending with CTRL-D does not work.
What can go wrong ?
In fact, I need this postif installation to give PHP script access to sending mail.
Thanks for any clue
Robert