Hi guys,

One of our customers noticed a strange behavior: he has an alias "lowem" and another alias "lowem-yahoo3" and when somebody sends an e-mail to "lowem-yahoo2" for example the mail is delivered to the valias_line of "lowem". I found that when vdelivermail can't find alias with this name it starts looking for some kind of wildcard (I'm still trying to find out what exactly it does) and it seems that for some reason "lowem-yahoo*" is matching "lowem" (??). Can someone tell me if this piece of code is really useful?
    /* check for wildcard if there's no match */
    if(tmpstr == NULL) {
        for(i=strlen(TheUser);i >= 0 && j != 1;--i) {
            if(TheUser[i-1]=='-') {
                tmpuser[0] = '\0';
                strcat(tmpuser, "default");
                tmpstr = valias_select( tmpuser, TheDomain );
                if(tmpstr != NULL) {
                    sprintf(def, "DEFAULT=%s", &TheUser[i]);
                    j = 1;


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to