dit document beschrijft de installatie en werking van nullmailer, een email relay server op Debian.
tcp/465 doorlaten op netwerk waarop nullmailer actief is. apt install nullmailer/etc/nullmailer:smtp.gmail.com smtp --port=465 --auth-login --user=XXX@gmail.com --pass=<App Passwoord> --ssl
gmail.com/etc/mailname: naam mailserver (standaard wordt FQDN van server genomen)echo "Hello from my Linux box" | /usr/sbin/sendmail bestemmeling@mail.com
systemctl start|stop|status nullmailerJun 29 22:00:52 checkmk nullmailer-send[1008553]: Delivery complete, 0 message(s) remain. Jun 29 22:03:19 checkmk nullmailer-send[1008553]: Trigger pulled. Jun 29 22:03:19 checkmk nullmailer-send[1008553]: Rescanning queue. Jun 29 22:03:19 checkmk nullmailer-send[1008553]: Starting delivery, 1 message(s) in queue. Jun 29 22:03:19 checkmk nullmailer-send[1008553]: Starting delivery: host: smtp.gmail.com protocol: smtp file: 1688068999.1853278 Jun 29 22:03:19 checkmk nullmailer-send[1008553]: From: <legoland@checkmk.legoland.net> to: <koen.veys@protonmail.com> Jun 29 22:03:19 checkmk nullmailer-send[1008553]: Message-Id: <1688068999.263672.1853277.nullmailer@boerke> Jun 29 22:03:20 checkmk nullmailer-send[1853279]: smtp: Succeeded: 250 2.0.0 OK 1688069000 d1-20020aa7d5c1000000b0051d9ee1c9d3sm896789eds.84 - gsmtp Jun 29 22:03:20 checkmk nullmailer-send[1008553]: Sent file. Jun 29 22:03:20 checkmk nullmailer-send[1008553]: Delivery complete, 0 message(s) remain.
Message-Id: unieke ID van de mail (willekeurige tekenreeks en naam mailserver)From: gebruiker die mail verstuurde (zoals gekend in /etc/passwd)
Note: Deze info zal je ook terugvinden in de mail headers van het gestuurde bericht