Help with Spamassassin

Discussion in 'HOWTO-Related Questions' started by rodriglm, Aug 15, 2006.

  1. rodriglm

    rodriglm New Member


    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.

    Last edited: Aug 15, 2006
  2. sjau

    sjau Local Meanie Moderator

    Do you use Postfix as mailserver?
  3. rodriglm

    rodriglm New Member

    Yes, postfix is my mailserver with spamassasin and clamav.
  4. sjau

    sjau Local Meanie Moderator

    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         554 Spam not tolerated here     554 Spam not tolerated here
    [email protected]    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
    [email protected]   OK
    example3.tld            REJECT
    and when you have the file the you need to "convert" it do a db --> postmap sender_checks
  5. bschultz

    bschultz Member

    New version of ISPConfig allows for a white and blacklist in the email section of the admin panel.
  6. sjau

    sjau Local Meanie Moderator

    bschultz: thx for pointing this out :) I didn't know it as I don't use ispconfig (yet)
  7. rodriglm

    rodriglm New Member

    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.
  8. falko

    falko Super Moderator ISPConfig Developer

    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.

Share This Page