Sendmail: Difference between revisions
Jump to navigation
Jump to search
| Line 29: | Line 29: | ||
* [https://stackoverflow.com/questions/2429511/ Why Python script start with <code>#!/usr/bin/env python</code>?] | * [https://stackoverflow.com/questions/2429511/ Why Python script start with <code>#!/usr/bin/env python</code>?] | ||
* [https://www.ibm.com/support/pages/configuring-sendmail-use-username-and-password-authentication Configuring SendMail to use username and password] | * [https://www.ibm.com/support/pages/configuring-sendmail-use-username-and-password-authentication Configuring SendMail to use username and password] | ||
* [https://access.redhat.com/solutions/60803 Configure sendmail for relaying mail over port 587] | * [https://access.redhat.com/solutions/60803 Configure sendmail for relaying mail over port <code>587</code>] | ||
* [https://stackoverflow.com/questions/34294251/ Capture debug output from Python <code>smtplib</code>] | * [https://stackoverflow.com/questions/34294251/ Capture debug output from Python <code>smtplib</code>] | ||
* [https://access.redhat.com/solutions/6876 Setup and test SMTP AUTH within Sendmail] | * [https://access.redhat.com/solutions/6876 Setup and test SMTP AUTH within Sendmail] | ||
Revision as of 04:24, 31 July 2021
cat << EOF | sendmail -t
Sender: no-reply@chorke.org
From: Sender <from@chorke.org>
Reply-To: Sender <from@chorke.org>
To: To <to@chorke.org>
CC: Cc <cc@chorke.org>
Disposition-Notification-To: to@chorke.org
Subject: Generic Subject
Generic Body
EOF
Knowledge
/usr/sbin/sendmail -t < filename.eml /usr/sbin/sendmail -v -t < filename.eml /usr/sbin/sendmail -Am -v -t < filename.eml
env command is to launch interpreters 1. Python 3.9: #!/usr/bin/env python3.9 2. Python 2.6: #!/usr/bin/env python2.6 3. Python : #!/usr/bin/env python 4. Perl : #!/usr/bin/env perl