Re: Rejecting emails based on domain blacklist

2013-11-26 Thread Wietse Venema
Mark Goodge: Thanks. I'll have a play with that later. Another option is to blacklist a spammer's DNS server with check_client_ns_access or check_sender_ns_access. Wietse

Rejecting emails based on domain blacklist

2013-11-25 Thread Mark Goodge
What would be the simplest method in Postfix of implementing an equivalent to the exim ACL mentioned in this blog post: http://blog.hinterlands.org/2013/10/unwanted-email-from-communicado-ltd/ That is, what's the simplest way of rejecting email from a list of domains contained within a simple

Re: Rejecting emails based on domain blacklist

2013-11-25 Thread Wietse Venema
Mark Goodge: That is, what's the simplest way of rejecting email from a list of domains contained within a simple text file that can be updated regularly without needing to restart Postfix. What do you mean with regularly? Postfix SMTP daemons check if a hash: or btree: file has changed

Re: Rejecting emails based on domain blacklist

2013-11-25 Thread Wietse Venema
Wietse Venema: Mark Goodge: That is, what's the simplest way of rejecting email from a list of domains contained within a simple text file that can be updated regularly without needing to restart Postfix. What do you mean with regularly? Postfix SMTP daemons check if a hash: or

Re: Rejecting emails based on domain blacklist

2013-11-25 Thread Mark Goodge
On 25/11/2013 13:51, Wietse Venema wrote: No need to restart Postfix. Use an indexed file and let smtpd(8) auto-detect that the file has changed. Run this from cron: #!/bin/sh # Configure smtpd(8) to query $TYPE:real-file TYPE=cdb # or hash or lmdb SUFF=cdb # or db or

Re: Rejecting emails based on domain blacklist

2013-11-25 Thread Jeffrey 'jf' Lim
On Mon, Nov 25, 2013 at 9:51 PM, Wietse Venema wie...@porcupine.org wrote: Mark Goodge: What would be the simplest method in Postfix of implementing an equivalent to the exim ACL mentioned in this blog post: http://blog.hinterlands.org/2013/10/unwanted-email-from-communicado-ltd/

Re: Rejecting emails based on domain blacklist

2013-11-25 Thread Wietse Venema
Dang. I forgot to append a dummy column to the textfile. Corrected version is below. Also added a note that mv newdatabse realdatabase is not needed with cdb and lmdb. Wietse Mark Goodge: What would be the simplest method in Postfix of implementing an equivalent to the exim ACL