Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I've been working on this ( /usr/bin/maildrop: Unable to change to home directory)error the for past 5 days with no luck. I've the following setting setup, (Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS).
I have also notice that, courier is not creating maildir, even when postfixadmin is sending a default welcome email. The email get stuck in mailq.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
567 inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
#
# 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/bin/maildrop -w 90 -d ${recipient}
#
# ====================================================================
#
# VIRTUAL VACATION
#
vacation unix - n n - - pipe
flags=DRhu user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} -- ${recipient}
maildrop -v
Quote:
maildrop 2.0.2 Copyright 1998-2005 Double Precision, Inc.
GDBM extensions enabled.
Courier Authentication Library extension enabled.
Maildir quota extension enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional informatio
#SHELL="/bin/sh"
VERBOSE=5
# commands and variables for making the mail directories
maildirmake=/usr/lib/courier-imap/bin/maildirmake
mkdir=/bin/mkdir
rmdir=/bin/rmdir
MAILDIR=$DEFAULT
# make the user's mail directory if it doesn't exist
`test -e $MAILDIR`
if ($RETURNCODE != 0)
{
`$mkdir -p $MAILDIR`
`$rmdir $MAILDIR`
`$maildirmake $MAILDIR`
}
# make the .Junk folder if it doesn't exist
JUNK_FOLDER=.Junk
_JUNK_DEST=$MAILDIR/$JUNK_FOLDER/
`test -d $_JUNK_DEST`
if ($RETURNCODE != 0 )
{
`$maildirmake $_JUNK_DEST`
#auto subscribe. the following works for courier-imap
`echo INBOX.Junk >> $MAILDIR/courierimapsubscribed`
}
if (/^X-Spam-Flag:.*YES/)
{
exception {
to $DEFAULT/.Junk/
}
}
That will automatically create the mail directories if they don't exist, and will also put anything marked as spam by SA in the .Junk mail folder for that user.
I got this resolved. I take my permission post back.
I change the permission from /var/vmail from 600 (recommend by the tutorial i was using) to 700. i.e
chmod 700 /var/vmail
chown vmail:vmail
Quote:
drwx------ 9 vmail vmail 4096 Jul 23 12:45 vmail
I'm also running the maildroprc script from BlueC
One more thing. I'm using Postfixadmin v2.2.x and it not creating maildir files like it supposed too. My maildir structure looks like /var/vmail/user@domain.tld instead of /var/vmail/domain.tld/user/
One more thing. I'm using Postfixadmin v2.2.x and it not creating maildir files like it supposed too. My maildir structure looks like /var/vmail/user@domain.tld instead of /var/vmail/domain.tld/user/
Does any one have a solution for this?
Yes, in config.inc.php from postfixadmin set the following variables as follows:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.