I'm trying to configure Postfix using Maildrop with virtual accounts, and I'm
getting the following problem:
/usr/bin/maildrop: Unable to create a dot-lock at /var/mail/5623.0.marge
My question is not to do with permissions, but why is it trying to create the
lock in that directory? From my configuration, I would expect it to try to
deliver the mail to /var/mail/virtual/[EMAIL PROTECTED]
Some config:
$ cat /etc/passwd
...
postfix:x:109:116::/var/spool/postfix:/bin/false
vmail:x:111:119::/var/mail/virtual:/bin/false
$ ls -ld /var/mail/virtual
drwx------ 6 vmail vmail 4096 2007-11-03 10:38 /var/mail/virtual
$ grep virtual /etc/postfix/main.cf
virtual_transport = maildrop
virtual_uid_maps = static:109
virtual_gid_maps = static:116
virtual_minimum_uid = 109
virtual_mailbox_limit = 51200000
virtual_mailbox_base = /var/mail/virtual
virtual_alias_maps = mysql:/etc/postfix/virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/virtual_domain_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/virtual_mailbox_maps.cf
$ grep -A2 maildrop /etc/postfix/master.cf
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
ls -l /usr/bin/maildrop
-rwsr-sr-x 1 root mail 170408 2007-05-01 15:33 /usr/bin/maildrop
$ cat /etc/maildroprc
DEFAULT="$HOME"
When I trace the sql, the last statement it executes is the following:
SELECT username, password, "", 111, 119, '/var/mail/virtual', maildir, "",
name, "" FROM mailbox WHERE username = "[EMAIL PROTECTED]"
Which returns
+---------------+---------------------------------+--+-----+-----+-------------------+----------------+--+--------+--+
| username | password | | 111 | 119 |
/var/mail/virtual | maildir | | name | |
+---------------+---------------------------------+--+-----+-----+-------------------+----------------+--+--------+--+
| [EMAIL PROTECTED] | $1$pyVKH$eviIXvpyow4g02qBPQvB.1 | | 111 | 119 |
/var/mail/virtual | [EMAIL PROTECTED]/ | | Barney | |
+---------------+---------------------------------+--+-----+-----+-------------------+----------------+--+--------+--+
So it all looks good, except it appears to ignore the virtual mail directory,
and just try to use /var/mail?
Any help would be much appreciated.
Barney
--
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users