This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| docs:guide-user:services:email:smtp.client [2024/10/14 17:48] – [Configuration] bartprokop | docs:guide-user:services:email:smtp.client [2024/10/14 22:52] – typo fix bartprokop |
|---|
| <code>opkg install msmtp-mta</code> | <code>opkg install msmtp-mta</code> |
| Installing ''%%msmtp-mta%%'' package will also create necessary ''%%sendmail%%'' symlink. If you do not need ''%%sendmail%%'' command (unlikely) then install only ''%%msmtp%%'' package. | Installing ''%%msmtp-mta%%'' package will also create necessary ''%%sendmail%%'' symlink. If you do not need ''%%sendmail%%'' command (unlikely) then install only ''%%msmtp%%'' package. |
| | |
| ==== Configuration ==== | ==== Configuration ==== |
| | For router configuration, you very likely do not want to receive emails to local mailboxes. Define aliases file ''%%/etc/aliases.msmtp%%'' to send all local mails to your admin email: |
| | |
| | <code> |
| | default: admin@example.com |
| | </code> |
| | |
| Place your configuration in ''%%/etc/msmtprc%%''. There is an existing ''%%default%%''-block in the included config file so if you want to call ''%%msmtp%%'' without specifying an account, then you need to rename the existing ''%%default%%''-block to something else. | Place your configuration in ''%%/etc/msmtprc%%''. There is an existing ''%%default%%''-block in the included config file so if you want to call ''%%msmtp%%'' without specifying an account, then you need to rename the existing ''%%default%%''-block to something else. |
| |
| |
| defaults | defaults |
| | aliases /etc/aliases.msmtp |
| | |
| account default | account default |
| |