Matthias Andree | 26 Apr 2002 22:14
Picon
Picon
Favicon

Re: [maildropl] Maildrop+Postfix

Alberto Benati <benati <at> economia.unibo.it> writes:

> Now, I think a mail filtering.
> I take maildrop-1.3.8.20020418.tar.gz and read a FAQ:
> http://www-dt.e-technik.uni-dortmund.de/~ma/postfix/HOWTO-maildrop.html

<shrug>

Looks like the README.postfix that ships with maildrop is better for
your approach. However, ...

> In master.cf, i try:
> 1)
> maildrop  unix  -       n       n       -       -       pipe
>   flags=uR user=vscan argv=/usr/bin/maildrop -d {recipient}
>
> 2)
> maildrop  unix  -       n       n       -       -       pipe
>   flags=uR user=vscan argv=/usr/bin/maildrop -d {user}
>
> 3)
> maildrop  unix  -       n       n       -       -       pipe
>   flags=uR user=vscan argv=/usr/bin/maildrop -d user

All these three are wrong. Instead, use ${recipient} in 1, ${user} in 2.

> 4)
> maildrop  unix  -       n       n       -       -       pipe
>   flags=uR user=vscan argv=/usr/bin/maildrop -d /usr/bin/maildrop -d "$USER" -f "$SENDER" "$EXTENSION"

(Continue reading)

ruslan | 27 Apr 2002 18:48

gdbm or db?

I need to configure maildrop to use userdb in conjunction with
courier-imap and postfix. Do I need gdbm or db or either will do?
Sam Varshavchik | 28 Apr 2002 02:01
Gravatar

Re: gdbm or db?

ruslan writes: 

> I need to configure maildrop to use userdb in conjunction with
> courier-imap and postfix. Do I need gdbm or db or either will do?

Either one. 

--

-- 
Sam 
Jasper Wong | 28 Apr 2002 04:27

sample maildropfilter?


Hi, I'm new to using maildrop and am looking for some sample filter files 
for blocking mails with various kinds
of attachments. The standard tarball distribution doesn't seem to include 
sample filter that I can poke at.
Your help will be greatly appreciated, thanks in advance.

Best Regards,
Jasper
Richard Johnson | 29 Apr 2002 19:06

userdb problem with virtual accounts?

maildrop 1.3.4 keeps telling me my virtual maildir users are
invalid, but I can't spot why.  Can someone give me a hand, or
failing that, a boot to the head?

I'm trying to set up maildirs for virtual users in domains I host,
intending eventually to let users retrieve mail via courier-imap.

I've installed maildrop 1.3.4 using openbsd's ports tree, with make
modified to add --enable-userdb and a short list of
--enable-trusted-users='...'.

Changing the config further to --enable-restrict-trusted=0 has no
effect on this problem.  Neither does presence or absence of
suid/sgid mode bits on /usr/local/bin/maildrop and friends.

The umbrella user, 'vmail', homedir and passwd entry are set up as
follows:

  drwx------  2 vmail  vmail  512 Apr 29 00:21 /home/vmail/
  vmail:*:1002:1002:Virtual Mail User:/home/vmail:/bin/ksh

In addition, my userdb is set up as follows.  In /etc/userdb/default:

  vmail	uid=1002|gid=1002|home=/home/vmail|shell=/bin/ksh|systempw=*
  1002=	vmail

And in /etc/userdb/host.example.com:

  user1 <at> host.example.com
	uid=1002|gid=1002|home=/home/vmail|mail=/home/vmail/host.example.com/user1|systempw=*
(Continue reading)

Alex Porras | 29 Apr 2002 21:41
Favicon

RE: userdb problem with virtual accounts?

Dumb question:

did you run 'makeuserdb' after adding the virtual user?

> -----Original Message-----
> From: Richard Johnson [mailto:rdump <at> river.com]
> Sent: Monday, April 29, 2002 12:07 PM
> To: courier-maildrop <at> lists.sourceforge.net
> Cc: rdump <at> river.com
> Subject: [maildropl] userdb problem with virtual accounts?
> 
> 
> maildrop 1.3.4 keeps telling me my virtual maildir users are
> invalid, but I can't spot why.  Can someone give me a hand, or
> failing that, a boot to the head?
> 
> I'm trying to set up maildirs for virtual users in domains I host,
> intending eventually to let users retrieve mail via courier-imap.
> 
> I've installed maildrop 1.3.4 using openbsd's ports tree, with make
> modified to add --enable-userdb and a short list of
> --enable-trusted-users='...'.
> 
> Changing the config further to --enable-restrict-trusted=0 has no
> effect on this problem.  Neither does presence or absence of
> suid/sgid mode bits on /usr/local/bin/maildrop and friends.
> 
> The umbrella user, 'vmail', homedir and passwd entry are set up as
> follows:
> 
(Continue reading)

Shao Ming | 30 Apr 2002 10:54

Maildrop ignoring all my if expression ...


Hi!

Trying to get maildrop to work on
qmail-vpopmail-qmailscanner-spamassasin.

I managed to get spamassasion to tag the email header with X-Spam-Yes/No
flag.

However, I got into some difficulties while trying to get maildrop to do
some filtering.

When I use 

if (expression)
{
...
}
else
{
...
}

Maildrop will complain of syntax error.
Error goes away once I removed the else block.

Even then, the code within the if code block will get executed
irregardless of what I used in the expression.

The whole script engine seem to be not working as what's documented.
(Continue reading)

Alberto Benati | 30 Apr 2002 16:07
Picon

Variables

Hi,

Is there a simple way to take FROM and SUBJECT?

I use (.mailfilter):

# In $FROM I have the recipient!
/^From: *!.*/
  ADDR=getaddr($MATCH2)

/^Subject: !.*/
  SUBJECT=escape($MATCH2)

but I see that if I try:

FILE="/tmp/maildrop"
logfile $FILE

I have:

Date: Tue Apr 30 15:39:06 2002
From: benati <at> economia.unibo.it (Alberto Benati)
Subj: test of mails
File: /home/user/benati.prova.it/Maildir/

From and Subj correcte and immediate!!!

AL
Florian Lindner | 30 Apr 2002 18:26
Picon

Blacklist & Locking

Hello,
I've 2 questions about maildrop.
1) Which default locking is using maildrop on Linux 2.4 systems?
2) I would like to have a rule which is executed if a part of the email
match a word in a file. The words in the file a serperated by a character
(whitespace, semicolon, EOL).
Example:
.mailfiler
  if (Subject = word_in_file) {...}

File:
  mail tango drop

Mail Subject:
  mail -> match
  ghewdropijgi  -> match
  abcde  -> don't match

I hope you get what I tried to say.
Thx,
Florian
Richard Johnson | 30 Apr 2002 22:15

Re: userdb problem with virtual accounts?

At 14:41 -0500 on 29/04/2002, Alex Porras wrote:
> Dumb question:
>
> did you run 'makeuserdb' after adding the virtual user?

Not a dumb question.  I should have mentioned I did run it. :-)

Richard

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth <at> sourceforge.net_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop


Gmane