Deluxnetwork
English German French Italian Portuguese Spanish Chinese     
 


  /home
  Deluxnetwork Home
  Exploits Archive
  Linux Home/News
  Contact Form
  Member Forum



  


Penguin

Deluxnetwork Exploit DB:



Postfix & SpamAssassin Installation Guide. (by Xnote Communications)

POSTFIX AND SPAMASSASSIN INSTALL (EASY)

 

Please note: File locations are based on my own install. Yours may be different, and should be checked and appropriate changes made.

1. Install postfix and get it working for your domain. See http://www.postfix.org for details.

2. Install SpamAssassin. The easiest way to do this is with the command "perl -MCPAN -e 'install Mail::SpamAssassin'"  OR you can compile it. 

3. As root, create a file at /usr/local/bin/spamfilter.sh with the following content:
 

#!/bin/bash
/usr/local/bin/spamc | /usr/sbin/sendmail -i "$@"
exit $?

 

4. Run "chmod 755 /usr/local/bin/spamfilter"

5. Create a user called 'spamfilter'. Make it a complete user, with home directory and shell.

6. Run "chown spamfilter /usr/local/bin/spamfilter"

7. In /etc/postfix/master.cf in the "Services" section, alter the 'smtp' line as follows (the " -o con..." SHOULD be on the next line:  NOTE:  there are two lines that have smtp.  Make sure it is the inet line.  Usually the first line.
 

# -----------------------------------------------------------------------------------
smtp inet n - n - - smtpd
  -o content_filter=spamfilter:
# -----------------------------------------------------------------------------------

 

8. In /etc/postfix/master.cf in the "Interfaces to non-Postfix software" section add:
 

# -----------------------------------------------------------------------------------
spamfilter unix - n n - - pipe
  flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender} -- ${recipient}
# -----------------------------------------------------------------------------------

 

9. Restart postfix and make sure you can still get email. Send a fake spam through the system (from an outside address) to verify that spam is marked as spam. For information on configuring SpamAssassin, go to http://www.spamassassin.org.





  Distributions
 arrow  download linux


  Linux/Unix Guides
 arrow  dual booting
 arrow  dialup modems
 arrow  cable modems
 arrow  email guide
 arrow  linux mp3 cd burning
 arrow  compressed files
 arrow  burning cds
 arrow  proftpd server
 arrow  ssh howto
 arrow  ipchains/firewall
 arrow  mysql installation
 arrow  apache installation
 arrow  php installation
 arrow  cron jobs
 arrow  using htaccess
 arrow  bind setup
 arrow  installing fonts
 arrow  chroot/jails
 arrow  mount & format
 arrow  boot loaders
 arrow  mailscanner & spamassassin
 arrow  usb devices
 arrow  wireless
 arrow  postfix & spamassassin


  Programming Guides
 arrow  perl programming
 arrow  php programming
 arrow  learning html