Hi!
Courier-maildrop isn't working as i was expecting.
On machine #1 i see "delivered via maildrop service" in /var/log/mail.log.
On machine #2 i see "delivered to maildir"
Both machines are feisty.
The software and configs on both machines are identical, only machine #1 did not get the postfix quota patch.
What can i do to make this work?
Thank you!
First i installed a mail enviroment with help from this great tut:
http://www.howtoforge.com/virtual_us...ix_debian_etch
Next i made my own version of:
http://www.howtoforge.com/postfix_mailfilter
Code:
apt-get install courier-maildrop
nano -w /etc/postfix/master.cf
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop} ${sender}
nano -w /etc/postfix/main.cf
maildrop_destination_recipient_limit=1
/etc/init.d/postfix reload
/etc/init.d/postfix restart
postfix check
nano -w /etc/courier/maildroprc
# /etc/courier/maildroprc
#
# Derived from
# http://www.howtoforge.com/postfix_mailfilter
# http://www.vanadac.com/~dajhorn/projects/fsavp/maildroprc.txt
# http://www.courier-mta.org/maildrop.html
#
# Vars
#
USER="$3"
HOST="$4"
DEFAULT="/home/vmail/$HOST/$USER"
#
# Autocreate maildir, if not existant
#
`test -d "/home/vmail/$HOST"`
if ( $RETURNCODE == 1 )
{
`mkdir "/home/vmail/$HOST"`
}
`test -d "/home/vmail/$HOST/$USER"`
if ( $RETURNCODE == 1 )
{
`maildirmake "/home/vmail/$HOST/$USER"`
`chmod -R 0700 "/home/vmail/$HOST"`
}
#
# Deliver SPAM to Spamfolder
#
if ( /^X-Spam-Flag: YES/ )
{
# Make sure .Spam folder exists
`test -d "$DEFAULT/.Spam"`
if( $RETURNCODE == 1 )
{
`maildirmake -f Spam "$DEFAULT/."`
`echo "INBOX.Spam" >> "$DEFAULT/courierimapsubscribed"`
}
to "$DEFAULT/.Spam"
}
else
{
to "$DEFAULT"
}
# eof
Recent comments
1 day 13 min ago
1 day 3 hours ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 10 hours ago
2 days 2 hours ago
2 days 2 hours ago
2 days 6 hours ago