8 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Problems with autocre...
FromSent OnAttachments
Saulo Calixto BonfimMar 5, 2004 2:24 pm 
Bernhard SchmidtMar 6, 2004 6:33 am 
cue...@saulo.eti.brMar 6, 2004 2:48 pm 
Bernhard SchmidtMar 7, 2004 2:29 am 
Saulo Calixto BonfimMar 8, 2004 12:48 pm 
Bernhard SchmidtMar 9, 2004 4:28 am 
Saulo Calixto BonfimMar 9, 2004 5:50 am 
Bernhard SchmidtMar 9, 2004 6:09 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Problems with autocreation of maildirActions...
From:Bernhard Schmidt (bs@netsrc.de)
Date:Mar 9, 2004 4:28:38 am
List:net.sourceforge.lists.courier-maildrop

Saulo Calixto Bonfim wrote:

OK, but my $HOME and $DEFAULT maildroip variables aren't set by me or by the linux system, but by the mysql database, am I right?

Example:

$ cat /etc/maildroprc

`echo $HOME > /tmp/maildir` `echo $DEFAULT >> /tmp/maildir` $ $ mail user@domain.tld $ $ cat /tmp/maildir /var/spool/mail/domain.tld/user /var/spool/mail/domain.tld/user/Maildir $ $ mail user@domain.tld $ $ cat /tmp/maildir $

Obviously, $HOME and $DEFAULT in my linux box are variables from the linux system, and doesn't have nothing to do with maildrop/mysql/courier environment.

My question again is: why the heck maildrop doesn't get those variables when maildir is not created?

It has to do with maildrop and only this. I guess you've got something like this in your maildropmysql.config:

-->%-- maildir_field maildir homedirectory_field home -->%--

So maildrop reads the values from your mysql tables and tries to cd to $home first! If this directory doesn't exist it will normally return something like

-->%-- relay=maildrop, delay=108, status=deferred (temporary failure. Command output: /usr/local/bin/maildrop: Unable to change to home directory. ) -->%--

and stop exactly here before any code from maildroprc gets executed.

My suggestion (the same again) is, change the home dir value to either the home directory of your maildelivery user (vmail?) or to another existing directory like /var/spool/mail.