Home > centOS, Fedora 12, Unix/Linux > CentOS – postfix postfixadmin dovecot anti spam

CentOS – postfix postfixadmin dovecot anti spam

* https://shamuntoha.wordpress.com/2010/01/04/centos-postfix-postfixadmin-advanced/
* According to this setup we can extend, the spam threat

1. By default we have working example for internetwork, but we need to receive public emails (google, yahoo, and cutomers domain) How?


vi /etc/postfix/main.cf

inet_interfaces = all #instead of localhost

2. Because its now on public, we need spam guard, how?


# we allow ourself
permit_mynetwork= $mynetworks
# incoming email/smtp need hello hand shake
smtpd_helo_required = yes

# without this we wouldn't made it so far, with spammers
smtpd_recipient_restrictions =
permit_mynetworks,
reject_unauth_destination,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client pbl.spamhaus.org

# unix another style, linux hash to use file.db, we compile it using "postmap filename" then it becomes filename.db
# /etc/postfix/clients:
# iamspammer.com    REJECT
# iamgoodsite.com      OK
#
smtpd_sender_restrictions = check_client_access hash:/etc/postfix/clients

3.  Still we are not 100%, but yet done

Important notes:
http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt
http://www.sdsc.edu/~jeff/spam/cbc.html

Advertisements
Categories: centOS, Fedora 12, Unix/Linux
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: