在阿里云上部署 Postfix
Postfix 可以很方便的在一台机器上部署 smtp 服务,在 centos 上来说的话可以使用: sudo yum install postfix sudo systemctl enable postfix sudo systemctl start postfix 可以通过访问 cd /etc/postfix/ 查看配置下面有些什么东西: [root@iZ2ze9mbirr18cl7fb5ewtZ postfix]# ls access canonical generic header_checks main.cf master.cf relocated transport virtual 主要需要去配置一下 main.cf 我们需要关注: # The myhostname parameter specifies the internet hostname of this # mail system. The default is to use the fully-qualified domain name # from gethostname(). $myhostname is used as a default value for many # other configuration parameters. # myhostname = mail.hundun.cn