> Is there a way of getting SqWebMail to just use the user's full name > and not the rest of the GECOS field? Also, can you set the domain > (I'd have thought it would use /etc/mailname or something...) or even > set the "from" address per-user?
seems like the only way to do it is to either: use a mysql/ldap/userdb auth system, OR hack the webmail (i did) here's a patch vs 0.37.3 that adds 2 features: one, it checks for a file "customfrom" in the user's maildir so you can specify the from address (very useful if you implement virtual domains using the sendmail style with aliases) the second strips the remainder of the gecos, on netcom our GECOS are like this: firstname lastname (client code) that patch is against the file auth.c in the webmail directory *** /root/courier-0.37.3/webmail/auth.c Fri Dec 7 07:57:24 2001 --- auth.c Sat Mar 2 12:15:50 2002 *************** *** 375,383 **** --- 374,399 ---- int l; const char *p; char *q; + FILE *f; + char cadd[512]; static char *hdrbuf=0; + // if exist, load customfrom to replace the default address + sprintf(cadd, "/home/%s/Maildir/customfrom", getenv("AUTHADDR")); + if ((f=fopen(cadd, "r")) != 0) + { + free(address); + fgets(cadd, 512, f); + address= malloc(strlen(cadd)+2); + strcpy(address, cadd); + } + // strip the client code (netcom's specific) + for (p=fullname; *p; ++p) + { + if (*p == '(') *p='\0'; + } + if (!fullname || !*fullname) return (address); /* That was easy */ *************** *** 405,410 **** --- 421,427 ---- *q++='"'; *q++=' '; *q++='<'; + for (p=address; *p; p++) { if (*p == '"' || *p == '\\' || *p == '(' || *p == ')' || _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users