Hi, I'm using maildrop 2.0.2 with postfix. In postfix main.cf and master.cf I
have this settings:
virtual_transport = maildrop
maildrop_destination_recipient_limit = 1
maildrop unix - n n - - pipe
flags=R user=mail argv=/usr/lib/courier/bin/maildrop.authlib
-V 10 -d ${user}@${nexthop} ${extension} ${recipient} ${user}
${nexthop}
Work fine for me with some exceptions. The problem is, that if the user is over
quota, maildrop only deferres the mail, and I want to bounce the mail. How can
I do it?
The second problem is in my maildroprc file. I have this config:
------------------------
SHELL="/bin/bash"
EXTENSION=$1
PATH_BIN="/usr/lib/courier/bin"
#
# Logfile destination
# After your satisifed that this is working properly, comment out all
# the lines that start with "log"
#
logfile "/var/log/maildrop.log"
log "ext.=$EXTENSION, 2=$2, 3=$3, HOME=$HOME"
if ( $EXTENSION eq 'spam' )
{
`$PATH_BIN/maildirmake++ -p -f SPAM $HOME`
log "MATCH"
exception {
to .SPAM/
}
}
if ( $EXTENSION eq 'virus' )
{
`$PATH_BIN/maildirmake++ -p -f VIRY $HOME`
log "MATCH"
exception {
to .VIRY/
}
}
to $HOME
------------------------
Please, ignore the maildirmake++ line, it works fine, my maildirmake++ is
patched.
My question about that file:
1) How can I bounce the messages with "user unknown" when the EXTENSION is not
'spam' nor 'virus'. I'd like to support only these 2 extensions, rest I want to
bounce
2) Do I really need to have 'to $HOME' at the end of config file? Don't works
default delivery to HOME without it for me...
Thank you very much for any help
Tomas