Author: H.Nienhuys (6 Apr 14 4:57am)
Update: I solved it. The Postfix configuration was:
myhostname = example.com
mydomain = example.com
mydestination = $myhostname, localhost.$mydomain, localhost
The honeypot domain was "honeypot.example.com" with MX "trap.projecthoneypot.net" as defined in the DNS configuration. By default, Postfix assumes that mail destinations as mathed by $mydestination can be relayed. I hadn't realized that the $myhostname parameter would be interpreted as a domain wildcard match.So, Postfix would happily relay mail for "someone@honeypot.example.com" via the "trap.projecthoneypot.net" server. If I change $myhostname to mail.example.com, Postfix will no longer relay the honeypot mail, but unfortunately also not accept mail for legitimate_user@example.com.
Solution: add a configuration line to the Postfix configuration file:
relay_domains =
(Instead of the implicit default "relay_domains = $mydestination")
Post Edited (6 Apr 14 6:15am)
|