| 1 |
SMTP server setup |
| 2 |
================= |
| 3 |
|
| 4 |
Go in ``General Parameters`` > ``Advanced Parameters`` > ``SMTP``: |
| 5 |
|
| 6 |
|
| 7 |
* **Session key containing mail address**: choose which session field contains |
| 8 |
mail address |
| 9 |
* **SMTP Server**: IP or hostname of the SMTP server |
| 10 |
* **SMTP Port**: Port of the SMTP server |
| 11 |
* **SMTP User**: SMTP user if authentication is required |
| 12 |
* **SMTP Password**: SMTP password if authentication is required |
| 13 |
* **SSL/TLS protocol** and **SSL/TLS options**: Here you can enable SMTPS or |
| 14 |
startTLS. A list of possible options can be found in the `IO::Socket::SSL |
| 15 |
documentation <https://metacpan.org/pod/IO::Socket::SSL>`__. |
| 16 |
|
| 17 |
|
| 18 |
.. tip:: |
| 19 |
|
| 20 |
- If no SMTP server is configured, the mail will be sent via the local |
| 21 |
sendmail program. Else, Net::SMTP module is required to use the SMTP |
| 22 |
server |
| 23 |
- The SMTP server value can hold the port, for example: |
| 24 |
``mail.example.com:25`` |
| 25 |
|
| 26 |
.. warning:: |
| 27 |
|
| 28 |
- Older versions of the Email::Sender library have limitations when it comes |
| 29 |
to SMTPS or STARTTLS support. Versions lower than 1.300027 will not be |
| 30 |
able to check the remote server certificate or use custom IO::Socket::SSL |
| 31 |
options. |
| 32 |
|
| 33 |
- **Mail headers**: |
| 34 |
|
| 35 |
- **Mail sender**: address seen in the "From" field (default: |
| 36 |
noreply@[DOMAIN]) |
| 37 |
- **Reply address**: address seen in the "Reply-To" field |
| 38 |
- **charset**: Charset used for the body of the mail (default: |
| 39 |
utf-8) |
| 40 |
|
| 41 |
Testing your email setup |
| 42 |
------------------------ |
| 43 |
|
| 44 |
.. versionadded:: 2.0.10 |
| 45 |
|
| 46 |
You can test your email setup in the ``General Parameters`` > ``Advanced |
| 47 |
Parameters`` > ``SMTP`` page by using the ``Send test email`` button in the |
| 48 |
manager. |
| 49 |
|
| 50 |
.. tip:: |
| 51 |
|
| 52 |
You need to save your SMTP configuration before you can test it |
| 53 |
|
| 54 |
.. versionadded:: 2.0.10 |
| 55 |
|
| 56 |
You can also test your email setup using the ``test-email`` command in the CLI :: |
| 57 |
|
| 58 |
lemonldap-ng-cli test-email [email protected] |