Curious problem I have run into with Courier (full package install on a 
ydl2.1 machine).

Its fairly basic and simple, and pretty much handled by other email 
servers, so I am sure I just overlooking something.

For virtual users, I store them in a mysql db that is linked to courier's 
authdaemond process. That works fine. Mail coming in to a user of 
"[EMAIL PROTECTED]" gets filed into the proper Maildir. The mysql entry for 
login id IS "[EMAIL PROTECTED]" in full. This is so there can be a 
"[EMAIL PROTECTED]" and a "[EMAIL PROTECTED]" etc. Since domain.com and 
domain2.com are listed in the 'hosteddomains' file and NOT in the 
'locals' file.

Ok, so my problem is this: remotely getting mail from the box.

I have one hack workaround... but its a hack, and I can't believe this is 
how you would do this... BUT, email clients to connect to the server to 
get mail, pass the form of "[EMAIL PROTECTED]". For some reason Courier is 
not matching that in FULL (like it does with incoming mail to deliver) to 
give access to the user. It instead just says AUTH -Fail (couldnt find 
the user/pass combo that matched, and yes I have double checked my user 
and pass heh). So, there is an alternative setup in email clients to 
store the login information as "[EMAIL PROTECTED]". 
This then passes "user%virtualdomain.com" as the login id to courier. 
However since in the mysql its only stored as "[EMAIL PROTECTED]", 
it doesnt match.

My hack work around, is DUPLICATING the user entry in the mysql db, one 
being "user@virtdomain" and the other being "user%virtdomain"... both 
with the exact same crypt, home, guid.

Its a hack, but it then works, as incoming mail matches the proper one, 
and remote getting of mail matches the proper user.

Is this the only way?

A question I am begging to ask is, is there any way to tell courier to 
CHANGE the % to an @ to look up the user when its a remote connection? Or 
vice versa, tell courier to change an @ to a % to lookup against the db 
for mail delivery... either one will work, so long as I dont have to 
store TWO DB ENTRIES for every stinken user in the system ;-)

Any help would be helpful... and sorry for the length of this, I just 
wanted to be concise to help with possible answers/ideas.

As a side note: everything else works... aliases, forwarding, 
alias@virtdomain, virtual domains, virtual users etc etc. (well, all 
except webmail, that thing I havnt attempted yet).

-ifm


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to