take a pick as for a null mailer rather than a full blown outbound postfix setup
    # gnu/linux
    cp -pi /etc/aliases /etc/aliases.dist
    vi /etc/aliases
    # netbsd
    cp -i /etc/mail/aliases /etc/mail/aliases.dist
    vi /etc/mail/aliases
    root:           REAL-EMAIL-ADMIN
    newaliases
we prefer s-nail over mailutils and bsd-mailx as it does NOT install exim4 as a dependency on debian systems.
    apt install s-nail
    ln -s s-nail /usr/bin/mail
    ln -s s-nail /usr/bin/mailx
    grep -vE '^#|^$' /etc/s-nail.rc
nmap -25 SMTP-RELAY
    # slackware
slackpkg install s-nail
    tail -F /var/log/secure /var/log/maillog
    # debian
apt install s-nail
ln -s s-nail /bin/mail
    tail -F /var/log/auth.log /var/log/mail.log
    hostname --long | mail -s test root
Just want to send emails from my Ubuntu Server. What simple SMTP server solution to use? [closed] https://superuser.com/questions/92760/just-want-to-send-emails-from-my-ubuntu-server-what-simple-smtp-server-solution
https://wiki.debian.org/nullmailer
https://wiki.archlinux.org/index.php/Nullmailer
Using nullmailer with STARTTLS and SMTP-Auth https://metzlog.srcbox.net/2012/11/nullmailer-with-starttls/
How to enable secure authentication (ssl,tls,starttls) in nullmailer 1.0.5. and upgrade nullmailer to 1.11 https://unix.stackexchange.com/questions/252179/how-to-enable-secure-authentication-ssl-tls-starttls-in-nullmailer-1-0-5-and
Lightweight outgoing SMTP server https://unix.stackexchange.com/questions/1449/lightweight-outgoing-smtp-server
https://packages.qa.debian.org/s/ssmtp.html
https://wiki.archlinux.org/index.php/SSMTP
https://acme.com/software/mini_sendmail/
Minimal-Mailer https://www.heise.de/select/ct/2018/12/1528000378377701
just with nail by itself? https://jpmens.net/2007/05/08/replace-mail-by-nail-heirloom-mailx/ http://heirloom.sourceforge.net/mailx.html