kraquen | 1 Dec 2002 07:50

qmail -> maildrop -> spamassassin for virtual users using userdb

I'm using qmail to host virtual email accounts, i have a .qmail file for
those virtual users that sends the email to maildrop with the qmail-modified
username (user with the prepended stuff) .. maildrop consults my userdb,
finds the right person, and delivers the mail..

well i want to do maildrop filtering, and I'm having a dickens of a time
finding out how I can do this under these circumstances.. do i need a
.mailfilter file under ~/ ? if so, can i only have 1 .mailfilter file for
all my virtual users, because they all share the same ~/ dir..

my .qmail files use the following to send to maildrop
|/usr/local/bin/maildrop -d "${LOCAL}" || exit 77

i've tried putting a mailfilter after the 'local' with no success..

basically i'm looking for how/where i can execute/put filtering commands for
maildrop in the case of invoking it for virtual users from a .qmail file..

thanks,
kraq

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Rudolf Wolf | 2 Dec 2002 10:18
Picon

Maildrop + virtual user agent in Postfix or maildrop delivering

Hello.
I'm building mailserver for mailhosting with Postfix 1.1.11 and Maildrop-1.5.0. I want to offer my
customers mail filtering and want to use a maildrop, but I have these problems: 
1. Virtual User Agent (VUA) in Postfix doens't use (I guess) maildrop to filter message through it, unless I
have filled in postfix config mailbox-command. 

Is there any way how to use it together?

2. Another solution and problem. Then I used maildrop in delivering mode, everything OK, but when I have a
user, who doesn't exist, it fails. I have read all discussions about EX_TEMPFAIL and EX_NOUSER, and try to
learn my Postfix check recipient. I use this configuration:

smtpd_recipient_restrictions= check_recipient_access ldap:ldap
                              permit_sasl_authenticated
                              reject

But the problem was, that the permit_sasl_authenticated allows to send the unknown users and without this
directive I wasn't able to send to any other domains (relaying, because I wasn't authenticated_user). I
can't use directive my_networks, because my mailserver will be hosted on backbone. 

Do you have any advices, how to use maildrop with Postfix as a mailhosting server? 
Or do you have a patch for Maildrop 1.5.0 to EX_NOUSER?

Thanks,
Ruda.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
(Continue reading)

Vinicius Correa | 2 Dec 2002 18:41
Picon

Help with qmail, maildrop and vpopmail

Hi, I need some help...
 
I have a mail server running qmail + vpopmail + spamassassin with maildrop like
mailfilter for spam messages... The filter is actually functional, but i'm having throuble
to do the maildrop "read" the .qmail file in the home user directory's.
 
When a message arrives and it's not a spam, maildrop deliveries the message
to vdelivermail that sends the message directly to the Maildir, but without open
.qmail user file that contains forwards, for example.
 
How can i do maildrop deliver the message to vpopmail after spam checking 
reading the .qmail user file??
 
Can somebody help me?
 
Thanks a lot.
 
 
Vinicius Correa
 
Sam Varshavchik | 2 Dec 2002 23:55
Gravatar

Re: Help with qmail, maildrop and vpopmail

Vinicius Correa writes:

> [ HTML content follows ]

Please do not send Microsoft HTML crap[tm] to a mailing list.  This is a 
mailing list, not a web server.

> Hi, I need some help...   I have a mail server running qmail + vpopmail + 
> spamassassin with maildrop like mailfilter for spam messages... The filter 
> is actually functional, but i'm having throuble to do the maildrop "read" 
> the .qmail file in the home user directory's.

maildrop does not read .qmail files.  Whoever told you that was mistaken.

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Anthony | 3 Dec 2002 11:05
Picon
Favicon

Abnormal Behaviour of Maildrop

Hi,

I installed the maildrop to a qmail+ldap machine.

I set qmail's ldapdefaultdotmode to "both" and add "deliveryProgramPath:
/usr/bin/maildrop" to the user's attribute.

The following is my maildroprc

----------------------------------------------
DEFAULT="Maildir/"
DEFAULT_DEF="/home/mailbox"

if (/^From:.* <at> hotmail\.com/ || /^From:.* <at> yahoo.com/)
{
        echo "Drop by Maildrop"
        to /dev/null
}

if (/^Subject: Hello/ || /^Subject: Go/)
{
    echo "Forward by Maildrop"
    to "/home/mailbox/test"
    exit
}
----------------------------------------------

However When I used "xxx <at> hotmail.com" send a mail to one user, it should be
drop by Maildrop.
But the mail still success to send to the User's mailbox, I checked that the
log said "Drop by Maildrop".
It seems Maildrop checked the mail. (Seems Maildrop function!)

Any setting I miss?

Thanks!!!

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Duncan Matthew Stirling | 3 Dec 2002 19:25

Basic Instructions


I would like to start using maildrop. I downloaded the tar file, and
read the Readme and install files, yet I'm still having problems
implementing maildrop into our system. Could someone point me in the
direction of a howto or something.

------------------------------------------------------------------------
-
Duncan Matthew Stirling <duncan <at> mbase.com>           Cross Media
Commerce
Network Administrator                            Digital Asset
Management
http://www.mBase.com                               Web Content
Management
P:780-945-4607                 Single Source Print and eCommerce
Catalogs
------------------------------------------------------------------------
-

-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
Michael Leone | 3 Dec 2002 20:45

Re: Basic Instructions


Duncan Matthew Stirling said:
>
> I would like to start using maildrop. I downloaded the tar file, and
> read the Readme and install files, yet I'm still having problems
> implementing maildrop into our system. Could someone point me in the
> direction of a howto or something.

You don't mention your OS. Most Linux distributions have pre-packaged
binaries available, so you would use whatever packaging system your
distroi uses. Nor do you mention which problems you've had.

Me, I use Debian unstable; I just said "apt-get install maildrop", and it
was done. :-) After that, it was a matter of configuring my mail server to
use maildrop as local delivery agent, and writing mailfilter files.

--

-- 
PGP Fingerprint: 0AA8 DC47 CB63 AE3F C739 6BF9 9AB4 1EF6 5AA5 BCDF
Member, LEAF Project <http://leaf.sourceforge.net>    AIM: MikeLeone
Public Key - <http://www.mike-leone.com/~turgon/turgon-public-key.asc>
Registered Linux user# 201348

-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
Duncan Matthew Stirling | 3 Dec 2002 21:04

RE: Basic Instructions


Thank you, I'm using OpenBSD 2.9

-----Original Message-----
From: courier-maildrop-admin <at> lists.sourceforge.net
[mailto:courier-maildrop-admin <at> lists.sourceforge.net] On Behalf Of
Michael Leone
Sent: Tuesday, December 03, 2002 12:45 PM
To: courier-maildrop <at> lists.sourceforge.net
Subject: Re: [maildropl] Basic Instructions

Duncan Matthew Stirling said:
>
> I would like to start using maildrop. I downloaded the tar file, and 
> read the Readme and install files, yet I'm still having problems 
> implementing maildrop into our system. Could someone point me in the 
> direction of a howto or something.

You don't mention your OS. Most Linux distributions have pre-packaged
binaries available, so you would use whatever packaging system your
distroi uses. Nor do you mention which problems you've had.

Me, I use Debian unstable; I just said "apt-get install maildrop", and
it was done. :-) After that, it was a matter of configuring my mail
server to use maildrop as local delivery agent, and writing mailfilter
files.

-- 
PGP Fingerprint: 0AA8 DC47 CB63 AE3F C739 6BF9 9AB4 1EF6 5AA5 BCDF
Member, LEAF Project <http://leaf.sourceforge.net>    AIM: MikeLeone
Public Key - <http://www.mike-leone.com/~turgon/turgon-public-key.asc>
Registered Linux user# 201348

-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
Courier-maildrop mailing list Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop

-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
Robert R. George | 3 Dec 2002 22:06
Gravatar

LDAP and MailDrop


Is it possible to get Maildrop to read its filtering rules, (per-user), from LDAP?

-Robert R. George

-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
Sam Varshavchik | 4 Dec 2002 00:26
Gravatar

Re: LDAP and MailDrop

Robert R. George writes:

> 
> Is it possible to get Maildrop to read its filtering rules, (per-user), from LDAP?

Nope.

-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en

Gmane