Re: Unable to create a dot-lock

Sam Varshavchik <[email protected]>
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
Mark Constable writes:

> Apr 10 22:55:06 hp maildrop[17807]: Unable to create a dot-lock at
>  /var/vmail/[email protected]/goldcoast.org/17807.0.hp.
>
> The above path should be more like...
>
>  /var/vmail/goldcoast.org/markc/17807.0.hp.
>
> so I don't think this is a simple case of incorrect permissions.
>
> I put a script in place of /usr/bin/maildrop...
>
> ~ ll /usr/bin/maildrop*
> -rwxr-xr-x 1 root root       78 Apr 10 13:07 /usr/bin/maildrop*
> -rwsr-xr-x 1 root daemon 196000 Jan 23 23:32 /usr/bin/maildrop.orig*
>
> ~ cat /usr/bin/maildrop
> #!/bin/sh
> (echo $*; id ; env) | logger -p mail.info
> /usr/bin/maildrop.orig $*
>
> And the result is below just after the above dot-lock error...
>
> Apr 10 22:55:06 hp logger: -d vmail [email protected] markc goldcoast.org  
> [email protected]
> Apr 10 22:55:06 hp logger: uid=5000(vmail) gid=5000(vmail) groups=5000(vmail)
> Apr 10 22:55:06 hp logger: MAIL_CONFIG=/etc/postfix
> Apr 10 22:55:06 hp logger: PATH=/usr/bin:/bin
> Apr 10 22:55:06 hp logger: PWD=/var/spool/postfix
> Apr 10 22:55:06 hp logger: LANG=C
> Apr 10 22:55:06 hp logger: SHLVL=1
> Apr 10 22:55:06 hp logger: _=/usr/bin/env
>
> postfix settings for maildrop are...
>
> ./master.cf:maildrop  unix  -       n       n       -       -       pipe
> ./master.cf:  flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail $ 
> {extension} ${recipient} ${user} ${nexthop} ${sender}
>
>
> I know this list is for the standalone maildrop package but I'm not
> 100% sure if I should be using courier-maildrop or just maildrop in
> this situation. ATM this is with courier-maildrop and postfix 2.10.0.

This would be the maildrop package. Courier-maildrop is only for Courier.

Looks like maildrop gets invoked to deliver mail to the 'vmail' user, for  
all recipients, with the recipient's actual email address passed as a  
parameter. The vmail user must have a .mailfilter file that figures out  
where the mail gets delivered to. That's script is doing something wrong,  
and that's what you need to fix.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)

iEYEABECAAYFAlFl81oACgkQx9p3GYHlUOJFlwCfdGXlviPcTX7E/PXaL7QMGw9I
Mx4An3QO4EKeq4pi3otz2Jt6LjqtISkV
=872x
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.