[Fwd: Re: [dspam-users] Modification to dspam source for lowercase username with plussed addressing....]

From: Benjamin Donnachie (no email)
Date: Sat Apr 08 2006 - 05:24:39 EDT

  • Next message: Ciprian Vizitiu: "RE: Virtual domains and and"

    My dspam patch below should be useful for sites running cyrus-imap with
    plussed addressing.

    Take care,

    Ben

    -------- Original Message --------
    > I think that should be "PlussedUserLowercase", and it might be too
    > specific to use "plus" as the detail separator (qmail uses "-" by
    > default, but from memory that's adjustable).

    The option is intended to complement "EnabledPlusedDetail" - if that's
    enabled, then the option PlusedUserLowercase forces the username section
    to lowercase internally.

    It was much easier to implement than I thought!

    --- dspam.c 2006-04-07 20:07:23.322488264 +0100
    +++ dspam.c 2006-04-07 22:50:45.443339392 +0100
    @@ -1571,6 +1571,8 @@
         if (_ds_match_attribute(agent_config, "EnablePlusedDetail", "on")) {
           strlcpy(mailbox, username, sizeof(mailbox));
           ATX->recipient = mailbox;
    + if (_ds_match_attribute(agent_config, "PlusedUserLowercase", "on"))
    + lc (username, username);
           plus = index(username, '+');
           if (plus) {
             atsign = index(plus, '@');

    I added the following to dspam.conf:

    #
    # When using plused addressing, forces dspam to internally use lowercase
    # usernames. Thus preserving case of the plused address.
    #
    PlusedUserLowercase on

    I've also got the following in imap.conf so that cyrus-imap also forces
    the username section to lowercase, but leaves the case of the folder
    (plused detail) alone:

    lmtp_downcase_rcpt: 1

    Ben

    ----
    Cyrus Home Page: http://asg.web.cmu.edu/cyrus
    Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
    List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
    

  • Next message: Ciprian Vizitiu: "RE: Virtual domains and and"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD