Article 5EGNY sendmail works, mail at command line does not !

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
Robertlatest?d=yIl2AUoC8zA latest?i=6PWDBaSH5YI:-FbuTQSoy9s:F7zBnMy latest?i=6PWDBaSH5YI:-FbuTQSoy9s:V_sGLiP latest?d=qj6IDK7rITs latest?i=6PWDBaSH5YI:-FbuTQSoy9s:gIN9vFw6PWDBaSH5YI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments