-
Notifications
You must be signed in to change notification settings - Fork 0
/
SMTP settings for FreePBX
66 lines (42 loc) · 1.68 KB
/
SMTP settings for FreePBX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
External SMTP settings for FreePBX:
-------------------------------------------------------------------------
nano /etc/postfix/sasl_passwd
[mail.your-server.de]:587 [email protected]:your-smtp-password
chmod 400 /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd
chown postfix /etc/postfix/sasl_passwd
-------------------------------------------------------------------------
nano /etc/postfix/main.cf
Add these lines at the end of file
relayhost = [mail.your-server.de]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtp_generic_maps = hash:/etc/postfix/generic
------------------------------------------------------------------------
nano /etc/postfix/generic
Add these lines at the end of file and edit accordingly
root [email protected]
root@localhost [email protected]
root@freepbx [email protected]
asterisk [email protected]
asterisk@localhost [email protected]
asterisk@freepbx [email protected]
vm@asterisk [email protected]
asterisk@ [email protected]
@freepbx.localdomain @eassist.gr
------------------------------------------------------------------------
postmap /etc/postfix/generic
restart postfix
systemctl reload postfix
test mail with
[root@freepbx ~]# sudo -u asterisk mail -s TestEmail [email protected]
if you recieve mail, you are done.
GUi CONFIGURATION:
Admin > System admin > Notification Settings:
Settings > Voicemail admin > settings > email settings