I am trying to send mail with the following command:
echo "Hello" | mail -s "Hello" firstname.lastname@example.org
and than checking the exit status as: echo $?
which outputs 0
Of course myaddr and mydomain was replaced with the original ones.
But I do not receive email.
I restarted the postfix service as:
service postfix restart
and it restarted successfully.
I found the error below in
May 13 05:36:13 vagrant-centos64 postfix/error: 4F82F62D2B: to=, relay=none, delay=21422, delays=21422/0.13/0/0, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dena-travel.com type=MX: Host not found, try again)