You don't give any details about the setup but I'll assume you use MercuryS to receive messages. The first thing you can do is to go to Configuration / Mercury SMTP Server / General and make sure that "Accept mail for invalid local addresses" isn't checked. If there is no local user with that name the message will then be refused automatically.
If you want to allow mail for invalid local addresses you can instead go to the Compliance tab and check "Enable transaction-level expression filtering". Edit TRANSFLT.MER and add a line similar to this one for the recipient address you want to reject:
R, "*honeypot@aphrodite.pmail.gen.nz*", RS, "554 Fraudulent RCPT rejected."
You can change the wording of course, and use just R instead of RS if you don't want the sending IP to be short-term blacklisted. Transaction level filtering is an extremely powerful tool, so you may want to have a look at the other examples in TRANSFLT.MER as well.
/Rolf
<p>You don't give any details about the setup but I'll assume you use MercuryS to receive messages. The first thing you can do is to go to Configuration / Mercury SMTP Server / General and make sure that "Accept mail for invalid local addresses" isn't checked. If there is no local user with that name the message will then be refused automatically.</p><p>If you want to allow mail for invalid local addresses you can instead go to the Compliance tab and check "Enable transaction-level expression filtering". Edit TRANSFLT.MER and add a line similar to this one for the recipient address you want to reject:</p><p>R, "*honeypot@aphrodite.pmail.gen.nz*", RS, "554 Fraudulent RCPT rejected."</p><p>You can change the wording of course, and use just R instead of RS if you don't want the sending IP to be short-term blacklisted. Transaction level filtering is an extremely powerful tool, so you may want to have a look at the other examples in&nbsp;TRANSFLT.MER as well.&nbsp;</p><p>/Rolf&nbsp;</p>