sendmail tings

Send mail via sendmail

vi /tmp/email.txt


Subject: Terminal Email Send
Email Content line 1
Email Content line 2


sendmail < /tmp/email.txt

Quick and dirty, with subject only:

mail -s "Test Subject" < /dev/null

Faking Mails with cutomized sender:

mail -s "Everything possible" < /dev/null

*Will be delivered into spamfolder or not delivered cause SPF checks that mailsender is not authorized sender of the maildomain –> only if accurate spamsolution/SPF is implemented on recipient side

Install/Config sendmail
for just relay edit /etc/mail/ and add:

"Smart" relay host (may be null)

or if ip based:

"Smart" relay host (may be null)

of course relay host must permit this.


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.