Blacklisted mails don't get rejected

Discussion in 'Installation/Configuration' started by ripit, Sep 20, 2007.

  1. ripit

    ripit New Member

    I've set up amavis-new with per user spam and blacklist configuration and the spam works but blacklist doesn't. When I blacklist a emailadress it get tagged in the header with BLACKLISTED but it still gets delivered.

    Please help me.
  2. falko

    falko Super Moderator ISPConfig Developer

    Any errors in you mail log?
  3. ripit

    ripit New Member

    No errors in the log. Just the normal stuff.

    Sep 21 23:27:45 365724 amavis[6744]: (06744-02) Passed, <[email protected]> -> <[email protected]>, quarantine HXkhj1Y72dBN, Message-ID: <[email protected]>, Hits: -
    Sep 21 23:27:45 365724 postfix/smtp[6858]: B8F7F28001: to=<[email protected]>, relay=[], delay=1, status=sent (250 2.6.0 Ok, id=06744-02, from MTA([]:10025): 250 Ok: queued as 13F3D28002)
    Sep 21 23:27:45 365724 postfix/qmgr[32534]: B8F7F28001: removed
    Sep 21 23:27:45 365724 postfix/virtual[6872]: 13F3D28002: to=<[email protected]>, relay=virtual, delay=0, status=sent (delivered to maildir)
    Sep 21 23:27:45 365724 postfix/qmgr[32534]: 13F3D28002: removed

    Here is a part of my mail log. The part in blue is different from my test server were everything works fine. Were it says "Ok" in this in the other is says "Ok, discarded, sender blacklisted" and after that it get thrown away.

    Is it some setting in postfix or where do I set it. Because amavis tags it with blacklisted.
  4. falko

    falko Super Moderator ISPConfig Developer

    Did you compare your Postfix and amavisd configuration on both servers?
  5. ripit

    ripit New Member

    Hi again,
    I found the problem late last night. When I looked at amavis log file I found that it did two checks for "spamlover" and found one so it just passed the mail forward.
    It was an entry in the users and policys table. I had one entry for "" that was a spamlover that owerrided my entry. If I test another mail it works fine. That setting was suppose to be default setting for the whole domain and the overridden by each user.

    Thats a little strange because my priority was 9 and the other was set to 7 so you would think that it shouldn't check the one with lower priority. Do you know anything about this?

    And thanks for some great tutorials and all help you give.

Share This Page