0
1
I'm currently trying to send mails via bash script on Linux. I searched the internet and found this code:
echo "This is my body" | mail -s"this is my header" thisis@my.mail
I don't get any response either in the bash script nor when I type it directly in the command line. I waited for at least 3 hours now and still got no mail.
I just found that the log says stat=Deferred: Connection timed out with backup-mx.mcs.de.
when sending to my Mail address but also has some entries with to<www-data@server.de>
and stat=Sent
You need to configure mail on your machine before you can expect it to work. Particularly, you'll need to configure your machine to forward Internet mail to your ISP's mail server. – David Schwartz – 2013-10-24T15:56:01.393
Ohh, ok, I didn't know that most internet sources say it works out of the box – Fanvaron – 2013-10-24T15:57:37.797
How would it know where to send the mail? There's no "mail server discovery" protocol. – David Schwartz – 2013-10-24T16:00:22.077