|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Barney Barumba (barney.b
iname.com)
Date: Sat Nov 03 2007 - 02:28:45 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/me
myhost.com.
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---e--- 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 = "me
myhost.com"
Which returns
+---------------+---------------------------------+--+-----+-----+-------------------+----------------+--+--------+--+
| username | password | | 111 | 119 |
/var/mail/virtual | maildir | | name | |
+---------------+---------------------------------+--+-----+-----+-------------------+----------------+--+--------+--+
| me
myhost.com | $1$pyVKH$eviIXvpyow4g02qBPQvB.1 | | 111 | 119 |
/var/mail/virtual | me
myhost.com/ | | 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!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]