将所有传入的邮件传送到命令(exim4)

如何设置Exim将所有传入的邮件传送到命令(PHP)? 永远不会拒绝电子邮件?

我正在使用Debain挤压和Exim4

得到它使用这个configuration工作:

primary_hostname = mywebsite.com domainlist local_domains = localhost:mywebsite.com domainlist relay_to_domains = hostlist relay_from_hosts = 127.0.0.1 received_header_text = Received: by $primary_hostname id $message_exim_id acl_smtp_rcpt = acl_check_rcpt never_users = root host_lookup = * begin acl acl_check_rcpt: accept domains = mywebsite.com accept authenticated = * begin routers receive_router: debug_print = "R: receive_router for $local_part@$domain" driver = accept domains = mywebsite.com transport = php_receive no_more send_router: debug_print = "R: send_router for $local_part@$domain" unseen = true driver = accept transport = php_send dnslookup: debug_print = "R: dnslookup for $local_part@$domain" driver = dnslookup domains = ! +local_domains transport = remote_smtp ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 no_more begin transports remote_smtp: driver = smtp return_path = [email protected] php_receive: driver = pipe command = /var/mailer/receive >> /var/mailer/receive_output.log group = mail php_send: driver = pipe command = /var/mailer/send >> /var/mailer/send_output.log group = mail begin rewrite [email protected] [email protected] Ffrsbc 

使用宽松的ACL和pipe道传输你真的是指所有传入的邮件?

如果你只想自己写一个该死的configuration文件而不是对付Debian的Exim方式,把它命名为/etc/exim4/exim4.conf – 它将覆盖Debian特定的子目录分散configuration。