/etc/postfix/main.cf 配置文件
设置主机名,如果有DNS解析,这里可以不用设置。
75 #myhostname = host.domain.tld
76 #myhostname = virtual.domain.tld
98 #myorigin = $myhostname
99 #myorigin = $mydomain
发送邮件的时候,可以伪装主机名和域名
113 #inet_interfaces = all
114 #inet_interfaces = $myhostname
115 #inet_interfaces = $myhostname, localhost
116 inet_interfaces = localhost
端口监听什么主机
164 mydestination = $myhostname, localhost.$mydomain, localhost
165 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
166 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
指定接受发送给某主机的邮件
264 #mynetworks = 168.100.189.0/28, 127.0.0.0/8
265 #mynetworks = $config_directory/mynetworks
266 #mynetworks = hash:/etc/postfix/network_table
给来自哪些网段的主机中继
313 #relayhost = $mydomain
314 #relayhost = [gateway.my.domain]
315 #relayhost = [mailserver.isp.tld]
316 #relayhost = uucphost
317 #relayhost = [an.ip.add.ress]
邮件转发给谁