*snip*
Hmm no it doesn't work for Bcc fields - I'll have to look into another method.
In case anyone wants to try this for blocking emails to a specific address in To: or Cc: fields:
*/snip*
I tried sending a bcc email to myself and received it so I assumed it didn't work. However I haven't had any spam mail since so this must be working with BCC fields too!
1) Add a line to your main.cf
Code:
header_checks = regexp:/etc/postfix/header_checks
2) Create a new file, /etc/postfix/header_checks
Code:
/addresstoblock@yourdomain\.com/ DISCARD
3) Restart postfix
Code:
/etc/init.d/postfix restart
This will silently accept the email but not deliver it - if you wish you can use REJECT instead of DISCARD and it will send an undelivered message back to the sender.
Cheers
Luke
Recent comments
19 hours 25 min ago
22 hours 21 min ago
23 hours 34 min ago
1 day 58 min ago
1 day 2 hours ago
1 day 4 hours ago
1 day 5 hours ago
1 day 21 hours ago
1 day 22 hours ago
2 days 1 hour ago