OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: maildrop

From: denis moeller (nimbuslatrina.de)
Date: Mon Feb 07 2005 - 05:27:06 CST


At 12:06 07.02.2005 +0100, you wrote:
> > > I have installed and configured postfix, courier & mysql by following
> > > Serge's HOWTO.
> > > After some messing with maildrop and those mysql*.cf files, almost
> > > everything seems to be smooth.
> > > I know that maildrop must have received the right mail- and homedir
> > > from mysql,
>
>How do you know that?

because I can see the SQL statements in the MySQL log and I have seen
access problems before I fixed the user permissions for the mailbox
directories :-)

> > > but the mail is not being moved into the right directory.
> > > "cur", "new" and "tmp" keep being empty. Instead, the mail get dumped
> > > to a file "var/mail/vmail" - which I never configured anywhere.
> > > How come?
> > > There's no warning/error output to messages nor to mail-log. Any idea?
> > > TIA!
> >
> > /var/mail/vmail is the default maildrop delivery place for some mail
> > packages. you must tell those packages that you want mail delivery to
> > the directory of your choice. in postfix:
> >
> > virtual_mailbox_base = /var/spool/maildrop/
>
>Unless virtual_transport = virtual, setting this parameter is useless.

right. because postfix gets the transport-value from MySQL as well: it's
"maildrop:", which calls maildrop, which gets the user's mailbox path by
itself from the database ...

>If maildrop delivers messages to the wrong place, it's hardly a Postfix
>problem. Invoke maildrop manually (possibly with debug output enabled) and
>observe what happens.

right, I'll do my best - but maildrop is a bitch when it comes to
debug-logging - because there is no. :-|