Postfix,为托pipe网站设置SMTP

我有一个VPS托pipe不同的域,我试图设置SMTP与后缀,所以用户可以通过SMTP地址发送电子邮件,如:

[email protected] [email protected] [email protected] 

我设法configurationtsl,sasl等,但我找不到如何configurationsmtp帐户…我可以find所有的指南使用UNIX用户login,这不是我正在寻找…

要接收邮件,我正在使用virtual_alias_maps将传入的邮件转发到相应的所有者邮箱。

你必须使用虚拟邮箱。 这通常使用数据库来完成。 在数据库中存储的虚拟帐户与电子邮件应存储在指定的目录。 然后,IMAP / POP3服务器(Dovecot)可以访问存储在服务器上的电子邮件。

欲了解更多信息,请尝试search:“dovecot postfix虚拟邮箱”例如阅读此: https : //www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot- MySQL的-和-的SpamAssassin

使用canonical来重写发件人地址,例如:

  1. /etc/postfix/main.cf

     canonical_maps = hash:/etc/postfix/canonical 
  2. /etc/postfix/canonical

     user1 [email protected] user2 [email protected] 
  3. 然后运行:

     postmap canonical postfix check postfix reload