差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
it:server:mail [2022-08-15 13:39] goldentianyait:server:mail [2022-08-20 17:56] (当前版本) – [PostfixAdmin] goldentianya
行 26: 行 26:
   * /etc/hosts => 127.0.0.1 mail.simpinvest.gq pi   * /etc/hosts => 127.0.0.1 mail.simpinvest.gq pi
  
 +修改 <wrap hi>/etc/postfix/main.cf</wrap> 文件
 postconf -e 'xxx' 修改设置。关键的几个设置为: postconf -e 'xxx' 修改设置。关键的几个设置为:
  
行 80: 行 81:
 }) })
 </code> </code>
 +
 +===== 接收空用户邮件 =====
 +编辑 /etc/postfix/main.cf 文件,添加两行代码。所有寄给不存在用户的邮件都由tech代收。
 +<code>
 +// luser_relay = tech$mydomain 干脆直接转到外网
 +luser_relay = [email protected] // 表示全部从pi转过来的
 +local_recipient_maps =
 +</code>
 +(然后再转发给谷歌邮箱就好了 "<color #7092be>@simpinvest.gq [email protected]</color>"。实验不work,只有明确给tech用户的会转发,其余只是由tech来接收)
 +
 +
 +===== 转发邮件 =====
 +
 +配置文件(/etc/postfix/main.cf)并添加下面的配置。更改simpinvest.gq和example.net域名为您的域名 (([[https://blog.csdn.net/Real_Myth/article/details/54667857|在Postfix中设置邮件转发]]))
 +<code>
 +virtual_alias_domains = simpinvest.gq example.net
 +virtual_alias_maps = hash:/etc/postfix/virtual
 +</code>
 +
 +编辑 /etc/postfix/virtual 文件,添加转发规则
 +<code>
 +[email protected] [email protected] // 转发到
 +[email protected] [email protected]
 +@simpinvest.gq [email protected]
 +</code>
 +
 +<WRAP center round tip 60%>
 +  * 接收任何用户的信,并自动转发到Gmail进行管理
 +  * 可以匿名以任何用户的名字发信
 +</WRAP>
 +
 +
 +===== 邮件认证 =====
 +
 +  * [[http://www.daliycode.com/info-3-201.html|ubuntu搭建postfix smtp邮箱服务为站点发送邮件]]  
 +  * [[https://damiansheldon.github.io/blog/how-to-set-up-a-postfix-e-mail-server-with-dovecot.html|如何搭建一个带 Dovecot 的 Postfix 邮件服务器]]
 +
 +
 +====== PostfixAdmin ======
 +  * [[https://www.myfreax.com/set-up-an-email-server-with-postfixadmin/|使用PostfixAdmin设置邮件服务器]]  
 +  * [[https://postfixadmin.sourceforge.io/|postfixadmin]]
 +  * [[https://www.linuxbabe.com/mail-server/host-multiple-mail-domains-in-postfixadmin|How to Host Multiple Mail Domains in PostfixAdmin on Ubuntu]]
it/server/mail.1660570777.txt.gz · 最后更改: 2022-08-15 13:39 由 goldentianya
回到顶部
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0