Truong,
I just assembled a new email server based on postifix, maildrop,
MySQL, ... Though the new setup uses MySQL instead of the binary db
in /etc, the basic setup for postfix/maildrop is essentially the same as
the previous ones that I have assembled. Here is what I have:
master.cf (I put a copy of maildrop in /usr/bin)
----------
maildrop unix - n n - - pipe
flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} -f ${sender}
${extension} -w 80
main.cf
--------
# mailbox_command = /usr/local/courier/bin/maildrop - not used
virtual_transport = maildrop # used in the servers without mysql
In my new server, virtual domains are mapped to maildrop in the mysql
transport table
/etc/maildroprc - contains checks for spam and tells maildrop which
directories the mail should go to depending on the on the spam return
codes
/etc/quotawarnmsg - contains the message that is sent when the mail box
reaches 80% of quota usage
I let the log messages go to /var/log/maillog
On Sat, 2005-03-12 at 14:00 +0700, Truong Tan Son wrote:
Dear Sir,
I installed Maildrop at /usr/local/courier/ and placed
/usr/local/courier/etc/maildroprc && /etc/maildroprc.
There is content of maildroprc
#cat /usr/local/courier/etc/maildroprc
SHELL="/bin/sh"
log "/usr/local/courier/etc/maildrop.log"
EVENTS = $EXITCODE
`echo $EVENTS >> /usr/local/courier/etc/maildrop.log`
I send messages and try to trap somethings to check the activation of
maildrop, but it isn't effective.
(My configuration on postfix 2.1.5
#/etc/postfix/main.cf
virtual_transport = virtual
mailbox_command = /usr/local/courier/bin/maildrop
#/etc/postfix/master.cf
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/courier/bin/maildrop -d ${recipient}
)
Where should I place maildroprc, and what wrong on files above ?
Thanks and best regards,