mywiki:experience:emailsmtp
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mywiki:experience:emailsmtp [2015/04/14 09:12] – external edit 127.0.0.1 | mywiki:experience:emailsmtp [2019/09/15 18:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| Port: 465 | Port: 465 | ||
| Security: SSL | Security: SSL | ||
| + | | ||
| + | | ||
| + | ====== Test SMTP ====== | ||
| + | ===== Test SMTP With telnet ===== | ||
| + | < | ||
| + | # telnet localhost smtp | ||
| + | |||
| + | Trying 127.0.0.1... | ||
| + | Connected to localhost.localdomain (127.0.0.1). | ||
| + | Escape character is ' | ||
| + | 220 fbreveal.com ESMTP Sendmail 8.13.8/ | ||
| + | HELO yahoo.com | ||
| + | 250 tecadmin.net Hello tecadmin.net [127.0.0.1], | ||
| + | mail from: sender@tecadmin.net | ||
| + | 250 2.1.0 sender@tecadmin.net... Sender ok | ||
| + | rcpt to: myemail@ymail.com | ||
| + | 250 2.1.5 myemail@ymail.com... Recipient ok | ||
| + | data | ||
| + | 354 Enter mail, end with " | ||
| + | Hey | ||
| + | This is test email only | ||
| + | |||
| + | Thanks | ||
| + | . | ||
| + | 250 2.0.0 r9M95xgc014513 Message accepted for delivery | ||
| + | quit | ||
| + | 221 2.0.0 fbreveal.com closing connection | ||
| + | Connection closed by foreign host. | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Test SMTP With sendmail ===== | ||
| + | |||
| + | < | ||
| + | cat / | ||
| + | |||
| + | Subject: Terminal Email Send | ||
| + | |||
| + | Email Content line 1 | ||
| + | Email Content line 2 | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | sendmail user@example.com | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== Test SMTP With Mail ===== | ||
| + | Without attachment: mail -s "Test Subject" | ||
| + | |||
| + | With attachment: mail -a / | ||
| + | |||
| + | ===== Test SMTP With Mutty ===== | ||
| + | Without attachment: | ||
| + | |||
| + | With attachment: # mutt -s "Test Email" -a / | ||
| + | |||
| + | ===== Test SMTP With ssmtp ===== | ||
| + | # ssmtp admin@example.com | ||
| + | Subject: Test SSMTP Email | ||
| + | Email send test using SSMTP | ||
| + | via SMTP server. | ||
| + | ^d | ||
| + | |||
| + | |||
| + | |||
mywiki/experience/emailsmtp.1428973967.txt.gz · Last modified: (external edit)
