Setup AMC to send email
Version 2 (Laurent Lassalle, 09/18/2020 03:38 pm)
| 1 | 2 | Laurent Lassalle | h1. Notice |
|---|---|---|---|
| 2 | 2 | Laurent Lassalle | |
| 3 | 2 | Laurent Lassalle | From version commit:36a9d0f6f29b (2017-10-02), AMC can be configured to send emails with anthenticated SMTP (see _Edit/Preferences/Email_). Try this first. |
| 4 | 2 | Laurent Lassalle | |
| 5 | 1 | h1. Setup AMC to send email |
|
| 6 | 1 | ||
| 7 | 1 | The following steps lists down how to configure AMC to send email. |
|
| 8 | 1 | ||
| 9 | 1 | h3. 1) Install @msmtp@ |
|
| 10 | 1 | ||
| 11 | 1 | <pre> |
|
| 12 | 1 | $ sudo apt-get install msmtp |
|
| 13 | 1 | </pre> |
|
| 14 | 1 | ||
| 15 | 1 | h3. 2) Create @msmtp@ configuration file |
|
| 16 | 1 | ||
| 17 | 1 | Create a @msmtp@ configuration file named _.msmtprc_ in your home directory. |
|
| 18 | 1 | ||
| 19 | 1 | h3. 3) Set permission for _.msmtprc_ file |
|
| 20 | 1 | ||
| 21 | 1 | Set permission for _.msmtprc_ file so that only you can read and write it. |
|
| 22 | 1 | ||
| 23 | 1 | <pre> |
|
| 24 | 1 | $ touch ~/.msmtprc |
|
| 25 | 1 | $ chmod 0600 ~/.msmtprc |
|
| 26 | 1 | </pre> |
|
| 27 | 1 | ||
| 28 | 1 | h3. 4) Edit _.msmtprc_ file |
|
| 29 | 1 | ||
| 30 | 1 | Add the following content to _.msmtprc_ file and save it. |
|
| 31 | 1 | ||
| 32 | 1 | <pre> |
|
| 33 | 1 | defaults |
|
| 34 | 1 | ||
| 35 | 1 | ###################################################################### |
|
| 36 | 1 | # A sample configuration using Gmail |
|
| 37 | 1 | ###################################################################### |
|
| 38 | 1 | ||
| 39 | 1 | # account name is "gmail". |
|
| 40 | 1 | account gmail |
|
| 41 | 1 | host smtp.gmail.com |
|
| 42 | 1 | tls on |
|
| 43 | 1 | tls_certcheck off |
|
| 44 | 1 | port 587 |
|
| 45 | 1 | auth login |
|
| 46 | 1 | from your_user_name@gmail.com |
|
| 47 | 1 | user your_user_name |
|
| 48 | 1 | password your_password |
|
| 49 | 1 | ||
| 50 | 1 | account default: gmail |
|
| 51 | 1 | </pre> |
|
| 52 | 1 | ||
| 53 | 1 | h3. 5) Setup AMC to use @msmtp@ |
|
| 54 | 1 | ||
| 55 | 1 | * Start AMC and open _Edit->Preferences->Email_. |
|
| 56 | 1 | * Select @sendmail@ for _Mail delivery method_ . |
|
| 57 | 1 | * Type @/usr/bin/msmtp@ in _sendmail path_ section. |
|
| 58 | 1 | ||
| 59 | 1 | Now you send emails from AMC. |