服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

Postfix只有多个实例默认工作

让我解释我在做什么,以及我想从这个后缀多个实例中获得什么 我有例如邮件服务器的“example1.com”和“mail.example1.com”的域,并具有适当的DNS MXlogging,一切都很好,现在我有另一个域“example2.com”和“mail.example2.com”对于邮件服务器,每次我从服务器发送邮件到客户端的SPAM文件夹和smtp.mailfrom显示“mail.example1.com”IP:1.1.1.1(例如)在结束时,我发现了较新的域网站邮寄黑名单数据库,所以我search了一个解决scheme,但最终看来,我必须通过创build额外的postfix实例来完成这个和完全隔离使用2 myhostname。 我通过这个命令创build了另一个名为“postfix-secondary”的实例: postmulti -e init 然后通过这个命令创build它: postmulti -I postfix-secondary -e create 之后,疯狂的运行通过这个: postmulti -i postfix-secondary -p start 现在的问题是,电子邮件仍然被迫通过“mail.example1.com”,即使禁用默认的邮件服务器,我看到它保持收集在默认队列 我将会列出configuration(example1.com)/etc/postfix/main.cf: smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination check_sender_access hash:/etc/postfix/mail_blacklist myhostname = mail.example1.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = mail.example1.com, example1.com, localhost.example1.com, […]