Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

HOW-TO: using spamc/spamd

Discussion in 'General Discussion' started by kerosin, Sep 18, 2002.

  1. kerosin

    kerosin Well-Known Member

    Joined:
    Aug 27, 2002
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    156
    If is somebody interested in use of pair spamc/spamd (part of SpamAssassin installation) so your user settings are taken from Mysql table and users are able to adjust them(and per-user whitelist records) through module in Horde/IMP framework (demo http://nantucketkiteboarding.com/webmail L:demo P:demo). Make these changes in /etc/exim.conf

    change:

    local_delivery:
    driver = appendfile
    file = &${extract{5}{:}{${lookup{$local_part}lsearch{/etc/passwd}{$value}}}}/mail/inbox&
    delivery_date_add
    envelope_to_add
    return_path_add
    user = $local_part
    group = mail
    mode = 0660

    local_sa_delivery:
    driver = pipe
    environment = &MAIL=${extract{5}{:}{${lookup{$local_part}lsearch{/etc/passwd}{$value}}}}/mail/inbox&
    delivery_date_add
    envelope_to_add
    return_path_add
    user = $local_part
    group = mail
    command = &/usr/bin/spamassassin-cpanel -w $sender_address&

    to:

    local_delivery:
    driver = appendfile
    file = &${extract{5}{:}{${lookup{$local_part}lsearch{/etc/passwd}{$value}}}}/mail/inbox&
    delivery_date_add
    envelope_to_add
    return_path_add
    user = $local_part
    group = mail
    mode = 0660

    local_sa_delivery:
    driver = appendfile
    file = &${extract{5}{:}{${lookup{$local_part}lsearch{/etc/passwd}{$value}}}}/mail/inbox&
    delivery_date_add
    envelope_to_add
    return_path_add
    user = $local_part
    group = mail
    transport_filter = /usr/bin/spamc
    mode = 0660


    and this change:

    virtual_sa_userdelivery:
    driver = pipe
    environment = &MAIL=${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$val
    ue}}}}/mail/${domain}/${local_part}/inbox&
    delivery_date_add
    envelope_to_add
    return_path_add
    user = &${lookup{$domain}lsearch* {/etc/userdomains}{$value}}&
    group = mail
    command = &/usr/bin/spamassassin-cpanel -w $sender_address&

    virtual_userdelivery:
    driver = appendfile
    file = &${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$value}}}}/mail/
    ${domain}/${local_part}/inbox&
    quota = &${if exists{${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$va
    lue}}}}/etc/${domain}/quota} {${lookup{$local_part}lsearch*{${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomai
    ns}{$value}}}lsearch{/etc/passwd}{$value}}}}/etc/${domain}/quota}{$value}}} {}}&
    delivery_date_add
    envelope_to_add
    return_path_add
    user = &${lookup{$domain}lsearch* {/etc/userdomains}{$value}}&
    group = mail
    mode = 0660


    to :


    virtual_sa_userdelivery:
    driver = appendfile
    file = &${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$value}}}}/mail/
    ${domain}/${local_part}/inbox&
    quota = &${if exists{${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$va
    lue}}}}/etc/${domain}/quota} {${lookup{$local_part}lsearch*{${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomai
    ns}{$value}}}lsearch{/etc/passwd}{$value}}}}/etc/${domain}/quota}{$value}}} {}}&
    delivery_date_add
    envelope_to_add
    return_path_add
    user = &${lookup{$domain}lsearch* {/etc/userdomains}{$value}}&
    transport_filter = &/usr/bin/spamc -u ${local_part}@${domain}&
    group = mail
    mode = 0660

    virtual_userdelivery:
    driver = appendfile
    file = &${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$value}}}}/mail/
    ${domain}/${local_part}/inbox&
    quota = &${if exists{${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$va
    lue}}}}/etc/${domain}/quota} {${lookup{$local_part}lsearch*{${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomai
    ns}{$value}}}lsearch{/etc/passwd}{$value}}}}/etc/${domain}/quota}{$value}}} {}}&
    delivery_date_add
    envelope_to_add
    return_path_add
    user = &${lookup{$domain}lsearch* {/etc/userdomains}{$value}}&
    group = mail
    mode = 0660


    ----end



    And I also invite you to see how new Horde/IMP framework (including SAM-modul for setting of Spamassassin parameters and per-user whitelists) look on CPanel machine. You have to see it and feel it ;). See all setting - like automatic expanding addresses in To: field from your addressbook, for exapmle:

    http://nantucketkiteboarding.com/webmail

    Login: demo
    pass: demo

    email: demo@nantucketmail.com
     
  2. nsolent

    nsolent Registered

    Joined:
    Sep 5, 2002
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    yummm

    I must say.. i do like what I see.

    Now, here's what I haven't seen yet, but would like to:
    1) Turn off subject ***SPAM*** tagging.
    2) Drop the suspected spam into a seperate 'spam' folder.
    3) Add a new column to be displayed in the 'spam' folder that shows the X-Spam-Level tag in the email header.

    Why? Instant identification of spamlevel... for instance, user sees three spam stars (***) in the spam-level column, they might check it out.. just to be sure... but if it's eight-star spam they wouldn't even need to be concerned.

    I've attempted to write an outlook macro to do that, but no success. If there was a webmail package on cpanel that did that, I'd throw away outlook. Spam is so time consuming; spamassassin really helps out, but you can't alway trust anything automated. We all check our spam to see what didn't get through; this would just make that 95% easier & faster.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice