PDA

View Full Version : Help with Spamassassin


rodriglm
15th August 2006, 22:00
Hi,

I am using ISPConfig as my email server and ftp in production right now. Using version 2.1.2. Thinking on upgrading to 2.3.1 but later on. What i would like to know is how to block certain domains using spamassassin. I followed the setup for the perfect fedora core 4 with ISPConfig. I would appreciate help in how to do this, thanks.


Luis

sjau
15th August 2006, 22:04
Do you use Postfix as mailserver?

rodriglm
15th August 2006, 22:10
Yes, postfix is my mailserver with spamassasin and clamav.

sjau
15th August 2006, 22:18
you could change the recipient restrictions in the postfix config to and add this:


check_sender_access hash:/etc/postfix/sender_checks,

The sender_checks file could look like this:

# This file must be "compiled" with "postmap"

# Using a domain name
example.tld 554 Spam not tolerated here
discardmail.com 554 Spam not tolerated here
izmail.serveftp.net 554 Spam not tolerated here
mailings@gmx-gmbh.de REJECT

# Maybe example2.tld is on a DNSbl, but we want to let their
# email in anyway.
example2.tld OK

# We get lots of spam from example3.tld, but we have somebody
# there from which we do want to hear
someuser@example3.tld OK
example3.tld REJECT


and when you have the file the you need to "convert" it do a db --> postmap sender_checks

bschultz
16th August 2006, 08:15
New version of ISPConfig allows for a white and blacklist in the email section of the admin panel.

sjau
16th August 2006, 08:21
bschultz: thx for pointing this out :) I didn't know it as I don't use ispconfig (yet)

rodriglm
16th August 2006, 17:05
you could change the recipient restrictions in the postfix config to and add this:


check_sender_access hash:/etc/postfix/sender_checks,

The sender_checks file could look like this:

# This file must be "compiled" with "postmap"

# Using a domain name
example.tld 554 Spam not tolerated here
discardmail.com 554 Spam not tolerated here
izmail.serveftp.net 554 Spam not tolerated here
mailings@gmx-gmbh.de REJECT

# Maybe example2.tld is on a DNSbl, but we want to let their
# email in anyway.
example2.tld OK

# We get lots of spam from example3.tld, but we have somebody
# there from which we do want to hear
someuser@example3.tld OK
example3.tld REJECT


and when you have the file the you need to "convert" it do a db --> postmap sender_checks


But will this still work with this version of ISPConfig or do i see myself upgrading? Is there another way that it needs to be done in ISPConfig?? Thx.

falko
16th August 2006, 17:54
As bschultz said, the new ISPConfig version allows you to do it through the web interface. So upgrade to 2.2.6, and don't change anything on the command line.