How to easily send e-mails via mailx - Printable Version +- Hackonology Forums (https://hackonology.com/forum) +-- Forum: Technology & Configuration (https://hackonology.com/forum/forumdisplay.php?fid=3) +--- Forum: System Configuration (https://hackonology.com/forum/forumdisplay.php?fid=4) +--- Thread: How to easily send e-mails via mailx (/showthread.php?tid=597) |
How to easily send e-mails via mailx - SysAdmin - 07-22-2021 So far I’ve been pretty fine with having postfix to relay my emails from command line, but today I’ve learned that the tool I use for sending emails from cron (mailx) can be easily configured to relay the mail directly. It’s super easy: Code: $ cat ~/.mailrc That’s all. To test the delivery use -v option: Code: echo "How you doin?" | mail -v -s Test xxx@redhat.com |