1) 安装postfixd 及配置,发邮件
[root@servera ~]# yum install -y postfix
[root@servera ~]# vim /etc/postfix/main.cf
添加或修改配置
135 mydomain = example.com
136 myhostname = mail.example.com
137 myorigin = $mydomain
138 mydestination = $myhostname, $mydomain
139 inet_interfaces = 127.0.0.1 192.168.121.103
140 mynetworks = all
141 # Enable IPv4, and IPv6 if supported
142 inet_protocols = all
143
144 home_mailbox = Maildir/
189 #mydestination = $myhostname, localhost.$mydomain, localhost
[root@servera ~]# vim /etc/hosts
#192.168.121.102 localhost
192.168.121.103 mail.example.com smtp.example.com pop3.example.com
master
[root@servera ~]# systemctl restart postfix
2) 安装配置dovecot,收邮件
[root@servera ~]# yum install -y dovecot
[root@servera ~]# vim /etc/dovecot/dovecot.conf
24 protocols = imap pop3 lmtp
30 listen = *, :::q
48 login_trusted_networks = 192.168.121.0/24
[root@servera ~]# vim /etc/dovecot/conf.d/10-ssl.conf
8 ssl = no
[root@servera ~]# vim /etc/dovecot/conf.d/10-auth.conf
10 disable_plaintext_auth = no
[root@servera ~]# vim /etc/dovecot/conf.d/10-mail.conf
24 mail_location = maildir:~/Maildir
[root@servera ~]# systemctl restart dovecot
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
评论0
最新资源