I want to send emails from my work computers so that I can notify myself when various long-running tasks are completed. As I understand it, the command below looks up bar.com's MX record, makes a connection to the mail server and does SMTP to send the message:
echo “Hello world” | mail -s “Hello world” foo@bar.com
What do I need to know so that I can avoid being flagged/blocked as a spammer?
mail
to be different than sending with anything else? (And what does this have to do with Unix or Linux?) – Mat Jul 28 '13 at 13:45mail
relies on some other software in order to send beyond the box, so don't assume this will work at all until you try it. – goldilocks Jul 28 '13 at 13:56mail
command running on a Linux system, which is on-topic. However, it lacks motivation: why should mail sent withmail
risk being flagged as spam more than mail sent with other programs? – Gilles 'SO- stop being evil' Jul 28 '13 at 23:26