heirloom project mailx
Allows you to send SMTP emails without having a full blown email server such as exim, postfix or sendmail installed
download
$ wget http://prdownloads.sourceforge.net/heirloom/mailx-12.3.tar.bz2?download
make
install
or
# make UCBINSTALL=/usr/bin/install install
and
$ ln -s /usr/local/bin/mailx /usr/bin/sendmail
OR
$ ln -s /usr/local/bin/mailx /usr/sbin/sendmail
OR
$ ln -s /usr/local/bin/mailx /usr/lib/sendmail
test
$ smtp=upstream mailx name@mydomain.com
initialisation configuration file
if you prefer you can add SMTP to your mailx initialisation configuration file
# tail /etc/nail.rc
set autocollapse
# Hide some header fields which are uninteresting for most human readers.
ignore received in-reply-to message-id references
ignore mime-version content-transfer-encoding
# Only include selected header fields when forwarding messages.
fwdretain subject date from to
set smtp=upstream
this should prevent CPU going to 100% if you forget to specify a valid SMTP server
REFERRERS
SystemServices
There are no comments on this page. [Add comment]