OSEC

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

From: albi albinootje (albinootjegmail.com)
Date: Sun Oct 22 2006 - 04:03:49 CDT


On 10/22/06, Shaun T. Erickson <stericksongmail.com> wrote:

> I have set up an otherwise quite nicely running mailserver. As a final
> step, I wanted to use maildrop to do the local delivery, as I like
> it's filtering capability syntax over procmail's. I added:
>
> mailbox_command = /usr/bin/maildrop -d ${USER}
>
> to my main.cf, as the postfix-maildrop readme instructs. However, mail
> doesn't get delivered, and I get this in the maillog:

i'm using a setup with postfix+mysql+maildrop (on FreeBSD6.1), using
the following :

# cat /etc/postfix/main.cf|grep maildrop
virtual_transport = maildrop
setgid_group = maildrop
maildrop_destination_recipient_limit = 1

# cat /etc/postfix/master.cf|grep maildrop
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
maildrop unix - n n - - pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}

# cat /usr/local/etc/maildroprc
# Specify the log file for Maildrop - in the user's directory.

logfile "mailfilter-log.txt"

log "========"

if (/^X-Spam-Flag:.*YES/)
{
    exception {
        to $DEFAULT/.Junk/
}
}

in my case all folders are owned by user vmail

and maildrop can be run in debug-mode to figure out more,
and .. as a reminder: maildrop won't create non-existing mailfolders for you