Will Hawes wrote:
ds645# ls -l /usr/local/etc/maildrop*
-rw-r--r-- 1 root wheel 0 Jun 19 10:24 /usr/local/etc/maildroprc
-rw-r--r-- 1 root wheel 0 Jun 19 10:25 /usr/local/etc/maildroprc.log
I'm using sendmail instead of qmail, and I have to make the logfile writeable by
the
recipient of the message. Easiest if all users are in some group and then you
make
the log file group writable and owned by the group.
[root@tesla ~]# ls /var/log/maildrop.log
-rw-rw-r-- 1 root Everyone 732k Jun 19 10:28 /var/log/maildrop.log
ds645# cat /usr/local/etc/maildroprc
logfile "maildroprc.log"
if( /^random string/ ) {
to Maildir/.Test
}
Here is my maildroprc for an example of a filter:
# file: /etc/maildroprc
# system-wide settings for maildrop
# users can have add more filters in $HOME/.mailfilter
SHELL="/bin/bash"
SENDMAIL="/usr/sbin/sendmail -oi -t"
logfile "/var/log/maildrop.log"
VERBOSE="4"
DEFAULT="$HOME/Maildir/"
# MailScanner is configured to add {Spam?} to subject line
if (/^Subject: \{Spam\?/)
{
exception {
to "$HOME/Maildir/.Spam/"
}
}