我想configuration在外部开发和舞台环境的Postfix只保存Papercut和海王星的电子邮件?
实际发送的电子邮件不是只发送,而是只保存,这样才能检查它们作为质量保证工作的一部分,这一点非常重要。
使用正则expression式映射来重写所有收件人。 只要您的电子邮件通过SMTP提交,这就足够了。
在main.cf中
virtual_alias_maps = regexp:/etc/postfix/recipients
在/ etc / postfix / recipients中
\#[email protected] is a mailbox where QA will receive email /.+/ [email protected]
为什么设置一个完全成熟的邮件服务器,你可以使用python来做到这一点。
python -m smtpd -n -c DebuggingServer localhost:25 | tee emails.log