Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
| docs:guide-user:services:email:smtp.client [2024/12/14 22:55] – formatting stokito | docs:guide-user:services:email:smtp.client [2024/12/14 23:05] – move old clients to bottom stokito | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| " | " | ||
| - | |||
| - | ===== Using mailsend ===== | ||
| - | |||
| - | ==== Description ==== | ||
| - | |||
| - | Mailsend is a simple command line program to send mail via SMTP protocol. | ||
| - | |||
| - | Being quite lightweight and not requiring any configuration, | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | ==== Installation ==== | ||
| - | |||
| - | Depending on whether you want SSL support or not (actually, the size of libopenssl will probably be the decisive factor), install one of the two versions: | ||
| - | |||
| - | < | ||
| - | opkg install mailsend | ||
| - | opkg install mailsend-nossl | ||
| - | </ | ||
| - | |||
| - | ==== Usage ==== | ||
| - | |||
| - | Simple usage: | ||
| - | |||
| - | <code bash> | ||
| - | mailsend -f root@openwrt -t foo@example.com -smtp smtp.example.com -sub "My subject" | ||
| - | </ | ||
| - | |||
| - | For advanced usage (MIME attachments, | ||
| - | |||
| - | < | ||
| - | mailsend -h | ||
| - | mailsend -example | ||
| - | </ | ||
| - | |||
| ===== Using msmtp ===== | ===== Using msmtp ===== | ||
| Line 130: | Line 95: | ||
| Mon Oct 14 23:35:55 2024 mail.info msmtp: host=smtp.gmail.com tls=on auth=on user=******@gmail.com from=******@gmail.com recipients=admin@example.com mailsize=181 smtpstatus=250 smtpmsg=' | Mon Oct 14 23:35:55 2024 mail.info msmtp: host=smtp.gmail.com tls=on auth=on user=******@gmail.com from=******@gmail.com recipients=admin@example.com mailsize=181 smtpstatus=250 smtpmsg=' | ||
| </ | </ | ||
| - | |||
| - | |||
| - | ===== Using mini-sendmail ===== | ||
| - | |||
| - | ==== Description ==== | ||
| - | |||
| - | mini_sendmail reads its standard input up to an end-of-file and sends a copy of the message found there to all of the addresses listed. | ||
| - | The message is sent by connecting to a local SMTP server. This means '' | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | ==== Installation and Configuration ==== | ||
| - | |||
| - | < | ||
| - | opkg install mini-sendmail | ||
| - | </ | ||
| - | |||
| - | On Chaos Calmer, the package is no longer available, but the version from Barrier Breaker still works (AA & BB versions as installed below work in AA): | ||
| - | |||
| - | < | ||
| - | opkg install http:// | ||
| - | </ | ||
| - | |||
| - | ==== Example ==== | ||
| - | |||
| - | <code bash> | ||
| - | mini_sendmail -ssmtp.mail.yahoo.com -p465 -t foo@example.com < input_file | ||
| - | |||
| - | usage: mini_sendmail [-f< | ||
| - | </ | ||
| - | |||
| - | Note that there must not be a space between the option and the value; e.g. "-p 465" is incorrect. | ||
| - | |||
| - | Several sample configurations found on the internet failed, but as of 160413, this worked | ||
| - | <code bash> | ||
| - | echo -e 'From: valid@email.com\r\nSubject: | ||
| - | </ | ||
| - | smtp.gmail.com failed; omitting -f failed; omitting "From: " resulted in transmission, | ||
| - | |||
| - | This is a very small package if you can find an smtp server which works and you can configure the command so that the server accepts it. | ||
| Line 233: | Line 158: | ||
| You may also need '' | You may also need '' | ||
| + | |||
| + | |||
| + | ===== Using mailsend ===== | ||
| + | |||
| + | ==== Description ==== | ||
| + | |||
| + | Mailsend is a simple command line program to send mail via SMTP protocol. | ||
| + | |||
| + | Being quite lightweight and not requiring any configuration, | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ==== Installation ==== | ||
| + | |||
| + | Depending on whether you want SSL support or not (actually, the size of libopenssl will probably be the decisive factor), install one of the two versions: | ||
| + | |||
| + | < | ||
| + | opkg install mailsend | ||
| + | opkg install mailsend-nossl | ||
| + | </ | ||
| + | |||
| + | ==== Usage ==== | ||
| + | |||
| + | Simple usage: | ||
| + | |||
| + | <code bash> | ||
| + | mailsend -f root@openwrt -t foo@example.com -smtp smtp.example.com -sub "My subject" | ||
| + | </ | ||
| + | |||
| + | For advanced usage (MIME attachments, | ||
| + | |||
| + | < | ||
| + | mailsend -h | ||
| + | mailsend -example | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== Using mini-sendmail ===== | ||
| + | |||
| + | ==== Description ==== | ||
| + | |||
| + | mini_sendmail reads its standard input up to an end-of-file and sends a copy of the message found there to all of the addresses listed. | ||
| + | The message is sent by connecting to a local SMTP server. This means '' | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ==== Installation and Configuration ==== | ||
| + | |||
| + | < | ||
| + | opkg install mini-sendmail | ||
| + | </ | ||
| + | |||
| + | On Chaos Calmer, the package is no longer available, but the version from Barrier Breaker still works (AA & BB versions as installed below work in AA): | ||
| + | |||
| + | < | ||
| + | opkg install http:// | ||
| + | </ | ||
| + | |||
| + | ==== Example ==== | ||
| + | |||
| + | <code bash> | ||
| + | mini_sendmail -ssmtp.mail.yahoo.com -p465 -t foo@example.com < input_file | ||
| + | |||
| + | usage: mini_sendmail [-f< | ||
| + | </ | ||
| + | |||
| + | Note that there must not be a space between the option and the value; e.g. "-p 465" is incorrect. | ||
| + | |||
| + | Several sample configurations found on the internet failed, but as of 160413, this worked | ||
| + | <code bash> | ||
| + | echo -e 'From: valid@email.com\r\nSubject: | ||
| + | </ | ||
| + | smtp.gmail.com failed; omitting -f failed; omitting "From: " resulted in transmission, | ||
| + | |||
| + | This is a very small package if you can find an smtp server which works and you can configure the command so that the server accepts it. | ||
| + | |||