On 04 9 2003 at 1:04 am -0400, Ricardo Kleemann wrote: >Ok guys, I'm sorry, but I can't get this to work. :-/
Hi Ricardo, No worries, it took me a while of screwing around to determine the idiosyncrasies of configuration required to make it work consistently. >What are the home and maildir fields supposed to be set to >in this case? I cannot get the MYSQL_DEFAULTDELIVERY >instructions to be honored. Mail will always be delivered to >the directory specified in the "home" field. If I blank out >the home field, then I get an authentication error. So as a >test I put in a valid directory in home, and then put in "| >/usr/lib/courier/bin/sendmail [EMAIL PROTECTED]" in >the field pointed to by MYSQL_DEFAULTDELIVERY (which I named >"delivery" in my table). This is for a test account. I'm not sure why you're getting mail delivered to the account's homedir; that seems a bit odd. Here is an excerpt from my personal courier setup notes: How courier routes inbound mail for [EMAIL PROTECTED]: =============================================== If an explicit account [EMAIL PROTECTED] exists in the mysql table then its delivery instruction will be used, regardless of any corresponding .courier-FOO file. Else, it tries to lookup '[EMAIL PROTECTED]' where alias is the literal string 'alias' and DOMAIN is the recipient domain. If it fails, delivery fails. If it succeeds, it searches for delivery instructions in this order (first non-empty): 1. .courier-FOO in specified homedir 2. .courier-default in specified homeidr 3. delivery instruction in 'defaultdelivery' column of mysql table for [EMAIL PROTECTED] 4. system-wide default delivery (~/Maildir) if all above are blank. >One note... I do not have MYSQL_MAILDIR_FIELD set in >authmysqlrc, which is optional. Is that a problem? I doubt it; as far as I understand, the maildir field is ONLY relevant to the POP3/IMAP/webmail daemons. In other words, when the account is logged into, that's where mail is looked for to be delivered outbound, but not inbound. -ben -- Ben Kennedy, chief magician zygoat creative technical services 613-228-3392 | 1-866-466-4628 http://www.zygoat.ca ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users