Setup AMC to send email

Version 1 (Laurent Lassalle, 09/18/2020 03:38 pm)

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