8 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Quota from LDAP not t...
FromSent OnAttachments
Todd LyonsOct 10, 2006 11:46 am 
Sam VarshavchikOct 10, 2006 3:39 pm 
Todd LyonsOct 11, 2006 1:04 pm 
Sam VarshavchikOct 11, 2006 3:26 pm 
Todd LyonsOct 11, 2006 4:02 pm 
Sam VarshavchikOct 11, 2006 6:38 pm 
Todd LyonsOct 11, 2006 9:06 pm 
Todd LyonsOct 12, 2006 11:08 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Quota from LDAP not taking effectActions...
From:Todd Lyons (tly@ivenue.com)
Date:Oct 11, 2006 1:04:47 pm
List:net.sourceforge.lists.courier-maildrop

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

On Tue, Oct 10, 2006 at 06:39:35PM -0400, Sam Varshavchik wrote:

Put "| echo $MAILDIRQUOTA >/tmp/quota.trace" in the .courier file, temporarily, and see what's in the environment variable.

I put it in $HOME/.courier and $HOME/Maildir/.courier. It didn't use that file at all. Maybe because I have a global /etc/courier/maildroprc?

If it's the same, I added in a log statement at the end of the maildroprc to log the $MAILDIRQUOTA to the logfile: log "Quota: $MAILDIRQUOTA" and it showed this: Normal mail delivery for swca@receiver.com: Quota: Date: Tue Oct 10 12:59:36 2006 From: "T Burton" <tbur@sender.com> Subj: Online Banking File: /netapp1/mail/maildirs/r/e/c/swcarter.receiver.com/Maildir/ (48158)

Sam, I have an strace that I can provide to you if you would like. I will put it up for download or email it directly to you if you would like.

In the strace I see that it's calling the 'id' and 'sh' commands and passing the env variable "MAILDIRQUOTA=", just like that, no value. So something about my system is causing maildrop not to see my quota settings from authlib.

Let me know what you want to see. I'll open up my configs and all debugging output to you (minus real email addresses and passwords and ldap bind information).

Here is the global /etc/courier/maildroprc that is being used:

# Global maildrop filter file

logfile "/var/log/maildrop.log"

DEFAULT="$HOME/Maildir/"

`test -f $HOME/vacation.msg` if ( $RETURNCODE == 0 ) { log "Vacation mode, email delivery to $LOGNAME:" cc $DEFAULT

/^Precedence:.*/ if ( $MATCH =~ /bulk|list|junk/ ) { log "No vacation message from $LOGNAME: $MATCH\n" exit }

/^(X-BeenThere|X-Loop|Mailing-List|Auto-Submitted):.*/ if ( $MATCH ) { log "No vacation message from $LOGNAME: $MATCH\n" exit }

/^(From|Return-Path):.*/ if ( $MATCH =~ /MAILER-DAEMON/ ) { log "No vacation message from $LOGNAME: $MATCH\n" exit }

/^X-Spam-Status:.*/ if ( $MATCH =~ /Yes/:D ) { log "No vacation message from $LOGNAME: $MATCH\n" exit }

/^To: !.*/ TO=tolower($MATCH2)

/^Cc: !.*/ CC=tolower($MATCH2)

if ( ! ( ( $TO =~ /$LOGNAME/ ) || ( $CC =~ /$LOGNAME/ ) ) ) { log "No vacation message, $LOGNAME not in To or Cc\n" exit }

`test -f $HOME/vacation.subject` SUBJECT=''; if ( $RETURNCODE == 0 ) { SUBJECT=`/bin/head -n 1 $HOME/vacation.subject` SUBJECT="-I 'Subject: ${SUBJECT}'" }

USER=`id -un ${LOGNAME}` xfilter "reformail -r -t -I 'From: ${USER}' -I 'X-Loop: Vacation for ${USER}'
-I 'Reply-To: ${USER}' -I 'Auto-Submitted: auto-replied' -I 'Precedence: junk'
${SUBJECT}" /^To:.*/ getaddr($MATCH) =~ /^.*/; SENDER=tolower($MATCH);

`test -f $HOME/vacation.replyalways` if ( $RETURNCODE == 0 ) { log "Forced reply from $USER to $SENDER.\n" `(cat - ; echo ''; cat vacation.msg) | $SENDMAIL -t` exit } flock "vacation.lock" { `fgrep -iqx "$SENDER" vacation.lst 2>/dev/null || { \ echo "$SENDER" >> vacation.lst ; \ exit 1; \ } ` } if ( $RETURNCODE == 0 ) { log "Already sent vacation message to $SENDER\n" exit } log "Vacation message to $SENDER.\n" `(cat - ; echo ''; cat vacation.msg) | $SENDMAIL -t` exit } else { USER=`id -un ${LOGNAME}` log "Normal mail delivery for $LOGNAME:" to "$DEFAULT" }

- -- Regards... Todd Chris: grep 500 sendmail.mc undefine(`FAIL_MAIL_OVER_500_MILES')dnl Chris: just in case ... Linux kernel 2.6.12-18mdksmp 8 users, load average: 0.49, 0.53, 0.61 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFLU52Y2VBGxIDMLwRAtt6AJ9SpIU66kh48/LokVLy0HGAcd6Q2QCfRx3a nn1TAI+u065wPLe88MrU4HA= =APaU -----END PGP SIGNATURE-----