

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
8 messages in net.sourceforge.lists.courier-maildrop[maildropl] RHEL3, maildrop 2.0.2 doe...| From | Sent On | Attachments |
|---|---|---|
| Timothy Ha | Apr 12, 2006 6:53 am | |
| Timothy Ha | Apr 12, 2006 7:21 am | |
| Devin Rubia | Apr 12, 2006 7:23 am | |
| Timothy Ha | Apr 12, 2006 7:26 am | |
| Jeronimo Zucco | Apr 12, 2006 7:27 am | |
| Jeronimo Zucco | Apr 12, 2006 9:43 am | |
| Timothy Ha | Apr 12, 2006 9:52 am | |
| mouss | Apr 12, 2006 3:12 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | [maildropl] RHEL3, maildrop 2.0.2 doesn't make use of /etc/maildroprc | Actions... |
|---|---|---|
| From: | Timothy Ha (ti...@jesuschrist.ru) | |
| Date: | Apr 12, 2006 6:53:46 am | |
| List: | net.sourceforge.lists.courier-maildrop | |
Hello,
I have installed the vanilla maildrop 2.0.2 from www.courier-mta.org in RHEL3 My postfix configuration passes email through maildrop.
I have spamassasin and clamassasin installed. They do work in command line, when I pass an email from stdin and get results on stdout (a modified email).
But it seems maildrop is not making use of /etc/maildroprc at all Otherwise, it would have blocked viruses, and at least insert a header field "X-Filter-Agent:"
My config is below. Permissions on maildroprc is root:root with 644. -rw-r--r-- 1 root root 2752 Mar 27 18:41 /etc/maildroprc
maildrop is running as user vmail, from /etc/postfix/master.cf
What can be the problem here? Please help. Thanks.
Timothy.
# # File: /etc/maildroprc $ # # This file is part of the stand alone version of maildrop. It # is a global configuration file that also includes user # .mailfilter file, if it exists, in user's home directory #
# ----- BEGIN CONFIGURATION ----- # # All values *must* be inside quotes. # Quotes are required!!! # SHELL="/bin/bash" SENDMAIL="/usr/sbin/sendmail" MAILDROP="/usr/bin/maildrop" FORMAIL="/usr/bin/reformail" SPAMC="/usr/bin/spamc" SA_LEARN="/usr/bin/sa-learn" CLAMASSASSIN="/usr/bin/clamassassin" TEST="/usr/bin/test -f" VHOME="/home/vmail" LOGDIR="/var/log/vmailadmin"
# ----- END CONFIGURATION ----- # ----- DO NOT MAKE CHANGES PAST THIS LINE -----
RECIPIENT=tolower("$1") USER=tolower("$2") HOST=tolower("$3") SENDER=tolower("$4") HOME=tolower("$5")
DEFAULT="$HOME" if ( !$HOME ) { HOME="$VHOME" DEFAULT="$HOME/$HOST/$USER" }
MAILDIR="$DEFAULT/.maildir" logfile "$LOGDIR/mail_delivery.log"
# # Set PGP/MIME variables # BPM="--BEGIN PGP MESSAGE--" EPM="--END PGP MESSAGE--" BPS="--BEGIN PGP SIGNATURE--" EPS="--END PGP SIGNATURE--"
# # Set date/time # TICKS=`date +%s` DATE=`date +%T` TIME=`date +%x`
# # Start logging # log "$TICKS : *** Maildrop filtering for $RECIPIENT $DATE $TIME" log "$TICKS : >>> Sender: $SENDER"
# # Tag header with maildrop # VMAILDROP=`$MAILDROP -v |grep maildrop` HMAILDROP="$VMAILDROP on $HOSTNAME" xfilter "$FORMAIL -A 'X-Filter-Agent: $HMAILDROP'"
# # Scan for spam:: Spam Assassin via spamc # Scan for virus:: ClamAV via clamassassin # exception { log "$TICKS : >>> Executing spamc -u $RECIPIENT" xfilter "$SPAMC -u $RECIPIENT"
if ( /^Content\-(?:Disposition|Transfer-Encoding|Type)\: (?:attachment|base64|multipart)/:h ) { log "$TICKS : >>> Executing clamassassin" xfilter "$CLAMASSASSIN" } }
# # Teach SpamAssassin # if ( (/^X-Spam-Flag: yes/:h) && (/^X-Spam-Level: *-----.*$:h/) ) { cc "| $SA_LEARN --sync --spam" }
# # Add missing headers for PGP/MIME # if ( !/^Content-Type: (message|multipart|application\/pgp):h/ ) { if ( (/^$BPM/:b) && (/^$EPM/:b) ) { xfilter "$FORMAIL -A 'Content-Type: application/pgp; format=text; x-action=encrypt'" }
if ( (/^$BPS/:b) && (/^$EPS/:b) ) { xfilter "$FORMAIL -A 'Content-Type: application/pgp; format=text; x-action=sign'" } }
# # Check for custom user .mailfilter file # CUSTOM_FILTER="$DEFAULT/.mailfilter" `$TEST $CUSTOM_FILTER && exit 1 || exit 0` if ( $RETURNCODE == 1 ) { exception { log "$TICKS : >>> Including $CUSTOM_FILTER" include "$CUSTOM_FILTER" } }
# # Finally, deliver to INBOX # to "$MAILDIR"
exit
# # EOF #







