The client mailer mail / mailx with Postfix by default will contact the MTA directly from a MX record lookup. If you are behind a firewall or otherwise cannot contact external servers and require the user of an ISP of company-provided relay the following syntax can be used:

cat email_body | mail -s "subject" -S -r [email protected] [email protected]


Category:Linux Category:Postfix