我已经设置mail.mydomain.org,但现在又一个虚拟域,我也想要mail.thatdomain.org以及如何?

我使用的是后缀和一个邮件dns mail.mydomain.org

但是现在我正在添加另一个虚拟域名,我也想为它添加邮件DNS,例如mail.mydomain.org 和 mail.newdomain.org 。

我已经为这个新的邮件域添加了mxlogging – 但是我不知道在postfixconfiguration中我将如何改变,因为mail.mydomain.org已经占据了指令中的空间:

这是postconf -n的输出:

alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mydomain = mydomain.org myhostname = mail.mydomain.org myorigin = $myhostname newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_client_restrictions = permit_sasl_authenticated, reject_unauth_destination smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot soft_bounce = no unknown_local_recipient_reject_code = 550 virtual_alias_domains = virtual_alias_maps = hash:/etc/postfix/virtual 

我能为mydomain和myhostname添加多个variables吗?

你可能想看看Postfix的虚拟主机如何 。 您可以使用virtual_alias_domains来设置postfix接受多个域的邮件。