AFP548 Changing the world one server at a time.

Spam Assassin

Home › Forums › OS X Server and Client Discussion › Mail › Spam Assassin

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #355433
    murlyn
    Participant

    For some reason Spam Assassin is only checking one of my domain names.. is there a configuration option somewhere that will have it check ALL mail going through the system?

    Thanks!

    Rick

    #355435
    murlyn
    Participant

    Is there anybody that knows Exim out there? I have my configure file and
    due to the lack of knowledge Im having a hard time configuring it 🙂 It
    works as it stands right now, except it does not route all mail through spam
    assassin, only certain ones.. and so far I havent found a pattern yet. I
    have a mysql database that exim grabs user data from also..

    I wouldn’t mind sending my configure file to someone that knows what they
    are doing, but I’d rather not send it to the entire list.. most of you don’t
    care to see it! 🙂

    Cheers!

    Rick

    #355437
    murlyn
    Participant
    dnslookup:
      driver = dnslookup
      domains = ! +local_domains
      transport = remote_smtp
      ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
      no_more
    
    # Spam Assassin
    spamcheck_router:
      no_verify
      check_local_user
      # When to scan a message :
      #  -  it isn't already flagged as spam
      #  -  it isn't already scanned
      condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}}$
      driver = accept
      transport = spamcheck
    
    mysql_sys_aliases:
      driver = redirect
      allow_fail
      allow_defer
      data = ${lookup mysql {SELECT dest FROM aliases \
                WHERE email='${local_part}' AND type="system"}}
    
    mysql_aliases:
      driver = redirect
      allow_fail
      allow_defer
      data = ${lookup mysql {SELECT dest FROM aliases \
                WHERE email='${local_part}@${domain}' AND type="site"}}
      
    mysql_user:
      driver = accept
      condition = ${if eq{} {${lookup mysql {SELECT home FROM passwd \
                    WHERE id='${local_part}@${domain}'}}} {no}{yes}}
      retry_use_local_part
      transport=mysql_delivery
      
    mysql_default_aliases:
      driver = redirect
      allow_fail
      allow_defer
      data = ${lookup mysql {SELECT dest FROM aliases \
                WHERE email='*@${domain}' AND \
                type="site"}}
    
    
    begin transports
    
    # Spam Assassin
    spamcheck:
      driver = pipe
      command = /usr/exim/bin/exim -oMr spam-scanned -bS
      use_bsmtp = true
      transport_filter = /usr/bin/spamc
      home_directory = "/tmp"
      # must use a privileged user to set $received_protocol on the way back in!
      user = exim  
      group = exim
      log_output = true
      return_fail_output = true
      return_path_add = false
      message_prefix =
      message_suffix =
    
    remote_smtp:    
      driver = smtp
    
    mysql_delivery:
      driver = appendfile
      maildir_format   
      directory = \
         /var/mail/${lookup mysql{SELECT maildir \
         FROM passwd WHERE id='${local_part}@${domain}'}}
      delivery_date_add
      #envelope_to_add = true
      #return_path_add = true
      maildir_tag = ,S=$message_size
      quota = \
            "${lookup mysql{SELECT quota FROM passwd WHERE \
            user = '$local_part' AND domain = '$domain'}{${value}M}}"
      quota_is_inclusive = false
      quota_size_regex = S=(\d+):
      quota_warn_threshold = 75%
      quota_warn_message = "\
                    To: $local_part@$domain\n\
                      Subject: Mailbox quota warning\n\n\
                      This message was automatically generated by the mail delivery software.$
                      You are now using over 75% of your allocated mail storage quota.\n\n\
                      If your mailbox fills completely, further incoming messages will be aut$
                      returned to their senders.\n\n\
                      Please take note of this and remove unwanted mail from your mailbox.\n"
      user = 1100
      group = 1100
    #355439
    murlyn
    Participant

    Ok from the look of it.. my system aliases, root, webmaster all get scanned by SA, plus my aliases.. all the ones that go to one domain.. while all the other domains on the system are not being scanned.. Ill do some more testing and see if I can come up with anything else.

    Thanks!

    #355499
    murlyn
    Participant

    So does anybody have any ideas on this one? The spam is getting bad with some of the accounts and this not scanning certain emails is getting old.. real quick! Thanks!

    Rick

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.