Bluehost.com Web Hosting $6.95

Re: Can I set up Whitelists W/Blacklists???

This is a discussion on Re: Can I set up Whitelists W/Blacklists??? within the mailing.postfix.users forums, part of the Mail Servers and Related category; At 07:20 PM 1/26/04, willief wrote: >Hi, > >We do spam filtering with access, header_checks, ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-27-2004
Noel Jones
 
Posts: n/a
Default Re: Can I set up Whitelists W/Blacklists???

At 07:20 PM 1/26/04, willief wrote:


>Hi,
>
>We do spam filtering with access, header_checks, body_checks. Works fine
>except body_checks matches strings in binary attachments from trusted
>senders. I want a whitelist implementation that will not filter the emails
>coming from those listed in the whitelist, and just send them through
>without scanning.
>
>
>A test /etc/postfix/whitelist entry is:
>
>wallymcdoogle@yahoo.com OK
>
>
>
>
>My line in main.cf is:
>
>
>smtpd_recipient_restrictions = check_recipient hash:/etc/postfix/whitelist
>
>
>But when I reload, it gives the following errors and kills postfix
>from sending anything.
>
>
>Jan 26 13:56:10 sally postfix/smtpd[23355]: fatal: parameter
>"smtpd_recipient_restrictions": specify at least one working instance of:
>check_relay_domains, reject_unauth_destination, reject, defer or
>defer_if_permit


Two problems here.
The first is a perception problem. Header and body checks are applied to
all email. There is no whitelist method.
If you must receive mail from these trusted clients, set up a separate
postfix with no header/body checks on a different IP or port, and have them
submit mail there.

The other problem is syntax errors. First, there is no restriction named
"check_recipient" as you have posted above, and, as the error message
indicates, smtpd_recipient_restrictions must contain one of the "reject"
restrictions so you are not an open relay. The default is:
smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination

If you want to add something else, you must explicitly list these and then
add your own restrictions after, as in:
smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
check_recipient_access hash:/etc/postfix/whitelist

Postfix comes with a lot of documentation, you really have to read it. at
least try.


--
Noel Jones

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0