Sergey Chumakov | 3 Nov 15:31 2003
Picon

LDAP/MySQL virtual user database

Hi All,

Does anybody use maildrop with MySQL or LDAP virtual user database?
It seems to me that there is a similar problem at find_in_mysql(...) and
find_in_ldap(...) functions. If you don't define maildir/mailbox
parameters for the virtual user it causes a SIGSEGV (error message like
"maildrop: signal 0x0B").

I think attached patch should fix this problem

Excuse my English

--

-- 
Best regards,
Sergey Chumakov 2:450/77[.43]
*** main.C.orig	Sun Apr 13 04:25:48 2003
--- main.C	Mon Nov  3 16:27:01 2003
***************
*** 340,363 ****
  		if ( getuid() != (gid_t)mrec->uidnumber )
  			nochangeuidgid();

  		if ( mrec->quota )
  			maildrop->init_quota=mrec->quota;
  		else {
  			/* if maildirsize exists, delete it .. or else new quotas may not work
  			if they are now disabled, but once were set... this was a bug I found
  			in v1.2.0 .. if its been fixed then this block can be removed */
(Continue reading)

Postmaster | 3 Nov 08:03 2003

Problems with maildroprc

I am attempting to set up a maildroprc file that will scan for spam, 
mark suspected spam, and then continue with delivery as otherwise 
specified in .qmail. If there is not an indication to forward mail, then 
it should put the mail in the mailbox. This is my test file - which 
doesn't work:

import EXT
import HOST
VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT <at> $HOST`

if ( $SIZE < 262144 )
        {
        xfilter "/usr/bin/spamc -f -u $EXT <at> $HOST"
        }

`grep -q "^&" $VHOME/.qmail`

if ( RETURNCODE == 0 )
        {
        exit;
        }
else
        {
        to $VHOME/Maildir
        exit
        }

What I want this to do is look for an "&" as the first charcter of the 
file; if it exists, then exit; if not deliver the mail. (I will be 
changing the grep to a program that will look to see if there are any 
(Continue reading)

Saiello@Jentoo.com | 4 Nov 12:47 2003

Is there a MailRoot Field when setting up LDAP

I have just installed Maildrop for use with Postfix and LDAP. I have 
configured my maildropldap.cf, and everything works fine. When I configured 
my courier-imapd service to use LDAP (via the authldaprc), that config file 
had a LDAP_MAILROOT setting. Does courier-maildrop have a simular setting for 
maildropldap.cf. I looked at most of the documentation and did see it.

Thanks,
  Steven

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Thomas Hug | 5 Nov 13:21 2003
Picon

problem with multiple receipients

hi

i use postfix to deliver mails to maildrop (v1.6.3) via transportmap:

domain.com	maildrop:

my master.cf:

maildrop  unix  -       n       n       -       -       pipe
            flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient}

i'm using the mysql extension.

now my problem:

if i send a mail to my virtual domain, to: correct adress and cc:
nonexistent addess on the same domain, maildrop randomly

- accept both mails
- reject both mails

if the correct address is parsed first, both get accepted, otherwise
both get rejected!

i tried out the setting

local_destination_concurrency_limit = 1

but it doesn't seem to do any influence on the behaviour.

(Continue reading)

Martin Lohmeier | 5 Nov 13:51 2003

Re: problem with multiple receipients


On Wednesday 05 November 2003 13:21, Thomas Hug wrote:

> if the correct address is parsed first, both get accepted, otherwise
> both get rejected!
>
>
> i tried out the setting
>
> local_destination_concurrency_limit = 1
>
> but it doesn't seem to do any influence on the behaviour.
>
>
> any ideas?

Hi Tom,

I don't know if it solves you Problem, but try a

maildrop_destination_recipient_limit     = 1

in your main.cf

by, Martin
--

-- 
public key available from 
http://www.hacktik.org/linux/keys/blackm_at_ferris.dyndns.info

Powerd by Debian GNU / Linux
(Continue reading)

Thomas Hug | 5 Nov 14:04 2003
Picon

Re: problem with multiple receipients

hi martin,

On Wed, 5 Nov 2003 13:51, Martin Lohmeier wrote:

> I don't know if it solves you Problem, but try a
>
> maildrop_destination_recipient_limit     = 1

that did the job, thanks. where did you find that? i'm looking for some
useful documentation for maildrop. everywhere is a link to

http://www.flounder.net/~mrsam/maildrop/

which is in my eyes a bit old and not very useful? the changelog there
is from 2002-03-18 with version 1.3.8.

-tom

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Martin Lohmeier | 5 Nov 14:10 2003

Re: problem with multiple receipients


On Wednesday 05 November 2003 14:04, Thomas Hug wrote:
> hi martin,
>
> On Wed, 5 Nov 2003 13:51, Martin Lohmeier wrote:
> > I don't know if it solves you Problem, but try a
> >
> > maildrop_destination_recipient_limit     = 1
>
> that did the job, thanks. where did you find that? i'm looking for some
> useful documentation for maildrop. everywhere is a link to

I got this from the pipe(8) manpage ;-) The word 'maildrop' can be replaced 
with every transport method.

by, Martin

--

-- 
public key available from 
http://www.hacktik.org/linux/keys/blackm_at_ferris.dyndns.info

Powerd by Debian GNU / Linux
Anders Gjerløv | 6 Nov 15:19 2003
Picon

Maildrop compile for qmail setup

Hi,

My apologies if this is very trivial (it might well be!).

I have a qmail-server installed, and it's running well. I have installed 
qmail-scanner, and therefore maildrop. All is well.

I should like to use maildrop to filter mails, and have tried to enter 
this line:

| /usr/local/bin/maildrop -d maildrop

in the (test) users .qmail file. This however results in the mail just 
staying in the qmail queue.

If I run the command:

(echo "From: test <at> gjerlov.dk" && echo "To: testuser <at> gjerlov.dk" && 
echo "X-Spam-Status: Yes 22.6" && echo "Subject: SPAM test" && echo && echo 
"body123") | /usr/local/bin/maildrop -d maildrop

The mail is correctly filtered by my .mailfilter

If I run:

(echo "From: test <at> gjerlov.dk" && echo "To: testuser <at> gjerlov.dk" && 
echo "X-Spam-Status: Yes 22.6" && echo "Subject: SPAM test" && echo && echo 
"body") | /var/qmail/bin/qmail-inject

with:
(Continue reading)

Tanen | 10 Nov 14:15 2003
Picon

Problem compiling maildrop ...

Hello,

I’m trying to use maildrop, so, can someone tell me why, when i use “make” after have use “./configure” , and i get this message during the “make” command :

 

Compiling maildir.C

In file included from /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h:56,

                 from /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/set:31,

                 from ../maildir/maildirkeywords.h:435,

                 from maildir.C:28:

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:91: `template <class _Tp> const _Tp & min(const _Tp &, const _Tp &)' redeclared as different kind of symbol

mio.h:80: previous declaration of `class MioStdio min'

mio.h:80: previous non-function declaration `class MioStdio min'

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:91: conflicts with function declaration `template <class _Tp> const _Tp & min(const _Tp &, const _Tp &)'

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:103: `template <class _Tp, class _Compare> const _Tp & min(const _Tp &, const _Tp &, _Compare)' redeclared as different kind of symbol

mio.h:80: previous declaration of `class MioStdio min'

mio.h:80: previous non-function declaration `class MioStdio min'

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:103: conflicts with function declaration `template <class _Tp, class _Compare> const _Tp & min(const _Tp &, const _Tp &, _Compare)'

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h: In function `bool lexicographical_compare(const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)':

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:442: no match for call to `(MioStdio) (const size_t &, const size_t &)'

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h: In function `int __lexicographical_compare_3way(const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)':

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:490: no match for call to `(MioStdio) (const ptrdiff_t &, const ptrdiff_t &)'

make[2]: *** [maildir.o] Error 1

make[2]: Leaving directory `/var/local/maildrop-1.6.1/maildrop'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/var/local/maildrop-1.6.1/maildrop'

make: *** [all-recursive] Error 1

 

Someone can help me to resolve this problem . If someone can help me to compil MailDrop, i realy appreciate it !

 

Thanks.

Tanen | 10 Nov 15:59 2003
Picon

TR : Problem compiling maildrop ...

 

 

-----Message d'origine-----
De : courier-maildrop-admin <at> lists.sourceforge.net [mailto:courier-maildrop-admin <at> lists.sourceforge.net] De la part de Tanen
Envoyé : lundi 10 novembre 2003 14:16
À : Mailing Liste MailDrop
Objet : [maildropl] Problem compiling maildrop ...

 

Hello,

I’m trying to use maildrop, so, can someone tell me why, when i use “make” after have use “./configure” , and i get this message during the “make” command :

 

Compiling maildir.C

In file included from /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_tree.h:56,

                 from /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/set:31,

                 from ../maildir/maildirkeywords.h:435,

                 from maildir.C:28:

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:91: `template <class _Tp> const _Tp & min(const _Tp &, const _Tp &)' redeclared as different kind of symbol

mio.h:80: previous declaration of `class MioStdio min'

mio.h:80: previous non-function declaration `class MioStdio min'

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:91: conflicts with function declaration `template <class _Tp> const _Tp & min(const _Tp &, const _Tp &)'

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:103: `template <class _Tp, class _Compare> const _Tp & min(const _Tp &, const _Tp &, _Compare)' redeclared as different kind of symbol

mio.h:80: previous declaration of `class MioStdio min'

mio.h:80: previous non-function declaration `class MioStdio min'

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:103: conflicts with function declaration `template <class _Tp, class _Compare> const _Tp & min(const _Tp &, const _Tp &, _Compare)'

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h: In function `bool lexicographical_compare(const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)':

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:442: no match for call to `(MioStdio) (const size_t &, const size_t &)'

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h: In function `int __lexicographical_compare_3way(const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)':

/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:490: no match for call to `(MioStdio) (const ptrdiff_t &, const ptrdiff_t &)'

make[2]: *** [maildir.o] Error 1

make[2]: Leaving directory `/var/local/maildrop-1.6.1/maildrop'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/var/local/maildrop-1.6.1/maildrop'

make: *** [all-recursive] Error 1

 

Someone can help me to resolve this problem . If someone can help me to compil MailDrop, i realy appreciate it !

 

Thanks.


Gmane