*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
4 hours 53 min ago
14 hours 20 min ago
15 hours 10 min ago
18 hours 43 min ago
23 hours 7 min ago
23 hours 29 min ago
1 day 1 hour ago
1 day 11 hours ago
1 day 16 hours ago
1 day 18 hours ago