We relay email for our customers. They had some accounts Phished. I
wanted to hold email from those users so I could see the spam that was
going out and requeue the valid email.
In main.cf I have:
smtpd_sender_restrictions =
check_sender_access hash:$config_directory/sender_domains,
reject
sender_domains has:
[email protected] HOLD
domain.tld OK
What [email protected] sends email I get:
Dec 6 16:14:26 mailserver postfix/smtpd[47661]: NOQUEUE: hold: RCPT
from clientserv[12.34.56.78]: <[email protected]>: Sender address
triggers HOLD action; from=<[email protected]> to=<[email protected]>
proto=ESMTP helo=<clientserv>
Dec 6 16:14:26 mailserver postfix/smtpd[47661]: NOQUEUE: reject: RCPT
from clientserv[12.34.56.78]: 554 5.7.1 <[email protected]>: Sender
address rejected: Access denied; from=<[email protected]>
to=<[email protected]> proto=ESMTP helo=<clientserv>
What am I doing wrong?
Thanks,
Dan