dev服务器上的电子邮件configuration:目前我有postfixconfiguration为路由发送到自己的所有电子邮件。 因此,如果您尝试发送电子邮件至[email protected],则系统将不会发送该地址,而是通过[email protected]在本地查看电子邮件地址。
这是预期的行为,因为我们不会意外地向我们的开发服务器上的数以千计的用户发送电子邮件。
我们希望使用git post-receive-email来通知testing人员已经部署了一个新的提交并准备好进行testing。 我已经设置了这个部分,但显然是由postfix重新路由,如上所述。
如何创build不符合上述规则的白名单电子邮件。 说如果地址是[email protected],那么它被发送到[email protected],但是如果要寻址的电子邮件是别的,那么它被路由到[email protected]
我唯一特别的configuration是/etc/posfix/main.cnf,它包含
command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix myhostname = hostname.com mydomain = hostname.com myorigin = $mydomain mydestination = localhost, localhost.localdomain, $myhostname, localhost.$mydomain, $mydomain unknown_local_recipient_reject_code = 550 mynetworks_style = host mynetworks = 127.0.0.0/28, 10.92.40.39/24 relay_domains = $mydestination relayhost = 127.0.0.1 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases debug_peer_level = 2 debug_peer_list = 127.0.0.1, localhost debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.3.3/samples readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES mailbox_size_limit = 0 always_bcc = archive@localhost
可能的解决scheme可能是sender_dependent_default_transport_maps或sender_dependent_relayhost_maps 。 随着更多关于你的configuration信息,你可能会得到更详细的帮助。