Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Something
Wednesday, October 31st, 2007 at 4:37:11am UTC 

  1. Step 2: Configure Postfix to use a content filter
  2.  
  3.   The next step is to configure Postfix to use DSPAM as a content filter.
  4.   This is relatively simple and requires only a minor change to your
  5.   master.cf file:
  6.  
  7.   Change:
  8.  
  9. smtp      inet  n       -       n       -       -        smtpd
  10.  
  11.   To:
  12.  
  13. smtp      inet  n       -       n       -       -        smtpd
  14.             -o content_filter=lmtp:unix:/tmp/dspam.sock
  15.  
  16.   This tells Postfix to send all mail to DSPAM for content filtering.
  17.  
  18. Step 3: Configure a Reinjection Port
  19.  
  20.   You'll also need to configure Postfix to listen on a local port for
  21.   reinjection. This is where DSPAM sends back the "good" mail (or alternatively,
  22.   tagged mail also). Add this to your master.cf:
  23.  
  24. localhost:10026 inet  n -       n       -       -        smtpd
  25.   -o content_filter=
  26.   -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  27.   -o smtpd_helo_restrictions=
  28.   -o smtpd_client_restrictions=
  29.   -o smtpd_sender_restrictions=
  30.   -o smtpd_recipient_restrictions=permit_mynetworks,reject
  31.   -o mynetworks=127.0.0.0/8
  32.   -o smtpd_authorized_xforward_hosts=127.0.0.0/8
  33.  
  34.   Any mail sent to localhost:10026 will be delivered in whatever way you
  35.   have configured Postfix, without being passed through DSPAM again. This is
  36.   also where DSPAM will deliver false positives to when they are retrained by
  37.   the user.

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right