Mozy Online Backup: 2GB Free. Automatic. Secure.
Subject: Re: Inconsistent behaviour - msg#00005
List: mail.maildrop
Roger Thomas writes:
If I do not import HOME, my emails will be lost in space. I do not know why.
And that's a big, honking clue that maildrop is not integrated properly into
your system.
I am running qmail-ldap with courier-imap 3.0.8.
Any idea?
Neither Courier-IMAP, nor maildrop, would ordinarily have any knowledge of
what you keep in LDAP, unless explicitly configured accordingly.
Furthermore, that version of Courier-IMAP is over two years old, and is
prehistoric, in Internet time. The very next version had a complete
overhaul of the authentication library; the common authentication library in
Courier-IMAP, and maildrop, was factored out into a separate package,
courier-authlib.
The best advice for you is to download and install courier-authlib, and
configure its LDAP module until it works with your mail account schema, then
upgrade to the current version of Courier-IMAP and maildrop. As long as you
have properly set up courier-authlib and it works with your LDAP schema, the
current version of Courier-IMAP and maildrop should not have any issues
reading account data from LDAP.
pgpvfdYtRA5Nf.pgp
Description: PGP signature
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
Courier-maildrop mailing list
Courier-maildrop@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Inconsistent behaviour
Quoting Tony Earnshaw <tonni@xxxxxxxxx>:
> Try something like (works for us):
>
> `test -d $HOME/Maildir/.Spam/`
> if( $RETURNCODE == 1 )
> {
> `/usr/bin/maildirmake $HOME/Maildir/.Spam/`
> #"whatever else"
> }
>
I have tried:
`/usr/local/bin/maildirmake $HOME/Maildir/.Spam/`
and
`/usr/local/bin/maildirmake -f Spam $HOME/Maildir`
with both creating Spam as a file :(
> You don't have to import HOME, it's default.
If I do not import HOME, my emails will be lost in space. I do not know why. I
am running qmail-ldap with courier-imap 3.0.8.
Any idea?
--
roger
---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Next Message by Date:
click to view message preview
Re: maildrop/postfix argv's
Thorsten Haude <list+maildrop@xxxxxxxxxxxxxx> wrote:
| Moin,
|
| * mess-mate wrote (2007-01-07 20:30):
| >Maybe i looked not far enaough, but can't find any (with examples)
| >tuto about the maildrop delivering configs.
|
| man maildropex
Ok, didn't know
|
|
| >So how can i configure maildrop like my procmail:
|
| In my experience, very easy. It took me only a couple of minutes to
| translate my Procmail rules. I never looked back.
|
|
| >:0
| >#*^TO_debian-user@xxxxxxxxxxxxxxxx
| >*^(From|Cc|To).*@lists.debian.org
| >${MAILDIR}.Debian/
|
| Generally:
| if (/(From|Cc|To).*@lists.debian.org/)
| {
| to ${MAILDIR}.Debian/
| }
|
Sorry, do not work for me.
..snip..
|
| For mailing list, I use a database:
| gdbmopen("/home/yooden/.mutt/lists.db")
|
| foreach /^(To|Cc): .*/
| {
| foreach (getaddr($MATCH)) =~ /.+/
| {
| listbox = gdbmfetch(tolower($MATCH))
| if ($listbox ne "")
| {
| to $MAILDIR/ML/$listbox
| }
| }
| }
|
| gdbmclose
|
Have no experience with gdbm :(
Her is my maildroprc ( without any user/mailfilter):
# maildroprc file
LOGNAME=tolower("$LOGNAME") # complete login name
RECIPIENT=$LOGNAME
SENDER1:$5
DOMAIN=$4
USER=$3
#RECIPIENT=tolower("$1")
#DEFAULT="/home/vmail/$RECIPIENT/."
RACINEMAIL="/home/vmail/$DOMAIN/$USER/"
DEFAULT="/home/vmail/$DOMAIN/$USER/.A-Inbox"
## come from /etc/postfix/master.cf:
#flags=Ru user=vmail argv=/usr/bin/maildrop -w 90 -d
${user}@${nexthop} ${extension} ${recipient} ${user}
${nexthop} ${sender}
#
# -w 90 is telling maildrop to send a quota warning to users with
90% of quota used up
# -d is telling maildrop to run as user as specified by user=x:x
# ${user} is comprised of everything before the @ symbol in the
recipient's email address.
# ${nexthop} is the domain; everything after the @ symbol in the
recipient's email address.
# ${recipient} is nothing more than ${user}@${nexthop}
# ${sender} is complete email address of the sender
#logfile "/home/vmail/.mailfilters/maildroprc-log.txt"
logfile "/var/log/maildrop.log"
log "-------------------------------------------------------------
Linux-bugtraq "
log "LOGNAME:$LOGNAME RECIPIENT:$RECIPIENT"
log "N1:$1 N2:$2 N3:$3 N4:$4 SENDER1:$SENDER1 N6:$6 N7:$7"
SENDER:$SENDER
log "RACINE:$RACINEMAIL"
log "DEFAULT=$DEFAULT"
#if ( "$EXTENSION" ne "" )
#{
# DELIMITER="+"
#}
#if (!$SENDER)
#{
# SENDER = "<>"
#}
#
# Autocreate maildir, if not existant
#
test -e /home/vmail/$DOMAIN
if ( $RETURNCODE != 0 )
{
maildirmake /home/vmail/$DOMAIN
chmod -R 0700 /home/vmail/$DOMAIN}
test -e /home/vmail/$DOMAIN/$USER
if ( $RETURNCODE != 0 )
{
maildirmake /home/vmail/$DOMAIN/$USER chmod -R 0700
/home/vmail/$DOMAIN/$USER}
# Check that user has his own maildrop include,
# if not available, check if $DEFAULT is set
# (newer maildrop get's that from the DB and updates
# it) and deliver or fail temporarily if not available
#
test -f /home/vmail/.mailfilters/$LOGNAME
if ( $RETURNCODE == 0 )
{
include "/home/vmail/.mailfilters/$LOGNAME"
}
else
{
if ( "$DEFAULT" ne "" )
{
#if ( /^Subject: SPAM/)
#if ( /^X-Spam-Level: *-----.*$/ )
if ( /^X-Spam-Level: \*\*\*\*/ )
{
test -e $RACINEMAIL.spam
if ($RETURNCODE != 0 )
{
maildirmake $RACINEMAIL.spam
chmod -R 0700 $RACINEMAIL.spam
}
log"--------------------- Spam general. "
to "$RACINEMAIL.spam"
# Make this "cc" for copy or "to" to notsend it to Inbox.
}
else
{
log "-------- (.spam) is vailable. "
to "$RACINEMAIL.spam" # was "$DEFAULT"
}
}
else
# {
# EXITCODE=75
# exit
# }
#}
=============== this part would not work ==========
{# folders in mailbox
if (/(From|Cc|To|Sender).*@lists.debian.org/)
{
to ${RACINEMAIL}.Debian/
log "put in $RACINEMAIL.Debian/"
}
else
{
to ${RACINEMAIL}.A-Inbox/
log "else put in $RACINEMAIL.A-Inbox/"
}
========== end this part do not work ===========
}
}
best regards
mess-mate
--
You will be attacked by a beast who has the body of a wolf, the tail of
a lion, and the face of Donald Duck.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Previous Message by Thread:
click to view message preview
Re: Inconsistent behaviour
Quoting Tony Earnshaw <tonni@xxxxxxxxx>:
> Try something like (works for us):
>
> `test -d $HOME/Maildir/.Spam/`
> if( $RETURNCODE == 1 )
> {
> `/usr/bin/maildirmake $HOME/Maildir/.Spam/`
> #"whatever else"
> }
>
I have tried:
`/usr/local/bin/maildirmake $HOME/Maildir/.Spam/`
and
`/usr/local/bin/maildirmake -f Spam $HOME/Maildir`
with both creating Spam as a file :(
> You don't have to import HOME, it's default.
If I do not import HOME, my emails will be lost in space. I do not know why. I
am running qmail-ldap with courier-imap 3.0.8.
Any idea?
--
roger
---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Next Message by Thread:
click to view message preview
Re: Inconsistent behaviour
Hi,
* Roger Thomas wrote (2007-01-07 21:42):
>Problem is, upon receiving a spam mail, maildrop created a file, NOT A FOLDER.
I use mbox, but shouldn't Maildir use a tailing slash?
Thorsten
--
Getting a thrill out of some stupid quote is a sign of idiocy.
- turmeric
pgpYa3hR1AZS4.pgp
Description: PGP signature
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
Courier-maildrop mailing list
Courier-maildrop@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/courier-maildrop