Skip to content

Testing PostFix From the Commandline

kurtcoke edited this page May 15, 2015 · 1 revision

If you are debugging your mailserver configuration it is handy to try and send email from the commandline, try this:

$ echo "body of your email" | mail -s "This is a Subject" -a "From: you@example.com" recipient@elsewhere.com

See this link for more:

*[https://www.linode.com/docs/email/postfix/postfix-smtp-debian7 Postfix SMTP Debian 7 Linode Library]

Clone this wiki locally