Thorsten Haude | 1 Mar 2004 22:43
Picon

Re: Is this Possible

Moin,

* Jeremy Kitchen wrote (2004-03-01 00:07):
>On Sun, 2004-02-29 at 02:11, Thorsten Haude wrote:
>> * Jim Gifford wrote (2004-02-29 07:58):
>> >What I'm think of trying to create is a maildrop script that does the
>> >following. I will try to draw out the flow
>> 
>> Well, it didn't work. Don't ascii-paint with proportional fonts.
>
>[from original post's headers]
>Content-Type:  text/plain; charset="iso-8859-1"
>
>he didn't send proportional fonts, that's just how your MUA is
>displaying them. 

Look at my headers. Do you really think I use Mutt with proportional
fonts? (It may even be possible, too.)

Thorsten
--

-- 
There is no drug known to man which becomes safer when its
production and distribution are handed over to criminals.
greg gede | 2 Mar 2004 07:47
Picon
Favicon

Re: Got always: maildrop: Unable to open filter file, errno=2

i just want to inform you that i had the same problem
when using maildrop to forward email.

regards,
gregor

--- Marc Berthold <ber <at> fmx.ch> wrote:
> Hi,
> I got a strong (or stupid) problem with maildrop.
> When I try to deliver mails with maildrop I got
> always the following 
> message:
> 
> vmail <at> chambertin:~$ maildrop -V -d
> test <at> chambertin.fmx.ch < /tmp/test.mail
> maildrop: Unable to open filter file, errno=2.
> vmail <at> chambertin:~$
> 

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
(Continue reading)

Marc Berthold | 3 Mar 2004 09:21
Picon

Re: Got always: maildrop: Unable to open filter file, errno=2

Hi Gregor,
Thank you to let me know that I'm not the only one you got this problem.
However had you found a solution or a workaround ?

Kind regards,
Marc

greg gede wrote:

>i just want to inform you that i had the same problem
>when using maildrop to forward email.
>
>regards,
>gregor
>
>--- Marc Berthold <ber <at> fmx.ch> wrote:
>  
>
>>Hi,
>>I got a strong (or stupid) problem with maildrop.
>>When I try to deliver mails with maildrop I got
>>always the following 
>>message:
>>
>>vmail <at> chambertin:~$ maildrop -V -d
>>test <at> chambertin.fmx.ch < /tmp/test.mail
>>maildrop: Unable to open filter file, errno=2.
>>vmail <at> chambertin:~$
>>
>>    
(Continue reading)

Jim Ramsay | 3 Mar 2004 16:59
Gravatar

maildrop standalone - why no dot-courier support?

I am using postfix as my MTA because of its features (much more than an 
unpatched qmail), but I'm really missing the flexibility of dot-qmail or 
dot-courier "filtering", so I was hoping that I could install a 
standalone local mail delivery agent that supports maildir format and 
dot-qmail -style forward files.  Seeing that courier had "dot-courier" 
files, I hoped that the standalone courier-maildrop would have this 
support as well, but I found to my horror that it does not.

Why doesn't the standalone maildrop support dot-courier files (or 
dot-qmail, or something similar)?

In other words, there should be a way to do something like this:

1 - Define the "recipient delimiter" character.  For this example, I'll 
use "-".  This could be done in a .mailfilter file with something like 
RECIP_DELIM = "-"
2 - When an email comes in, take a look at the envelope.  For this 
example, I'll use "user-ext1-ext2-ext3-ext4 <at> example.com"
3 - Look for the file ~user/.mailfilter-ext1-ext2-ext3-ext4  If it 
exists, use it to deliver mail, with EXTENSION set to "".
4 - If not, look for the file ~user/.mailfilter-ext1-ext2-ext3  If it 
exists, use it to deliver mail, with EXTENSION set to "ext4"
5 - If not, look for the file ~user/.mailfilter-ext1-ext2  If it exists, 
use it to deliver mail, with EXTENSION set to "ext3-ext4"
6 - If not, look for the file ~user/.mailfilter-ext1  If it exists, use 
it to deliver mail, with EXTENSION set to "ext2-ext3-ext4"
7 - If not, look for the file ~user/.mailfilter  If it exists, use it to 
deliver mail, with EXTENSION set to "ext1-ext2-ext3-ext4"
8 - If not, deliver to DEFAULT

(Continue reading)

Admin | 3 Mar 2004 21:28

Problem with maildroprc and Postfix virtual users

I've got Postfix setup with virtual users in a MySQL database. Maildrop is
the transport. Everythign works fine, mail is delivered likes it's supposed
to be.

I would like to have a filter that puts all mail marked as "spam" (via
SpamAssassin/Amavisd-new) to be delivered to a "Junk Mail" folder in each
users maildir.

The problem is the maildroprc file. As it is now, each users can create (via
Squirrelmail plugin) their own .mailfilter file, which works. However, my
maildroprc file seemingly DOES NOT process the "if" statements.

Here's my maildroprc:

if (/^X-Spam-Status: Yes/)

{
     to "$HOME/.Junk Mail"
}

What happens is, ALL mail is delivered to the Junk Mail folder. It's as if
the if statement is being completely ignored. I tested this theory by
replacing the "X-Spam-Status" stuff with garbage text, and the same thing
still happens- all mail goes to Junk Mail.

So, in a nutshell, why won't if statements get processed in my maildroprc
file? Or is it something else?

Thanks,
Sean Delk
(Continue reading)

Devin Rubia | 3 Mar 2004 21:50

Re: Problem with maildroprc and Postfix virtual users

On Wed, Mar 03, 2004 at 02:28:34PM -0600, Admin wrote:
> I've got Postfix setup with virtual users in a MySQL database. Maildrop is
> the transport. Everythign works fine, mail is delivered likes it's supposed
> to be.
> 
> I would like to have a filter that puts all mail marked as "spam" (via
> SpamAssassin/Amavisd-new) to be delivered to a "Junk Mail" folder in each
> users maildir.
> 
> The problem is the maildroprc file. As it is now, each users can create (via
> Squirrelmail plugin) their own .mailfilter file, which works. However, my
> maildroprc file seemingly DOES NOT process the "if" statements.
> 
> Here's my maildroprc:
> 
> if (/^X-Spam-Status: Yes/)
> 
> {
>      to "$HOME/.Junk Mail"
> }

Try dropping the vertical whitespace, viz:

if (/^X-Spam-Status: Yes/)
{
     to "$HOME/.Junk Mail"
}

There's a specific warning about this in the maildropfilter manpage.

(Continue reading)

Kate Porter | 3 Mar 2004 23:30

Sample bounce

I have recently installed a complete courier system with maildrop +
SpamAssassin.  I've been working on maildrop filters, and would like
some pointers to sample maildroprc code (assuming that this is
maildrop's responsibility) that generates a custom bounce.

Essentially, I'd like to bounce the message with some stern statement
about how it has been marked as spam, and if it really really isn't spam
the author should do something about it.

Thanks in advance.
Kate

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Sam Varshavchik | 4 Mar 2004 00:41
Gravatar

Re: Problem with maildroprc and Postfix virtual users

Admin writes:

> Here's my maildroprc:
> 
> if (/^X-Spam-Status: Yes/)
> 
> {
>      to "$HOME/.Junk Mail"
> }
> 
> What happens is, ALL mail is delivered to the Junk Mail folder. It's as if
> the if statement is being completely ignored. I tested this theory by
> replacing the "X-Spam-Status" stuff with garbage text, and the same thing
> still happens- all mail goes to Junk Mail.
> 
> So, in a nutshell, why won't if statements get processed in my maildroprc
> file? Or is it something else?

That something else is the blank line between the if statement and the 
opening brace.

Sam Varshavchik | 4 Mar 2004 00:44
Gravatar

Re: Sample bounce

Kate Porter writes:

> I have recently installed a complete courier system with maildrop +
> SpamAssassin.  I've been working on maildrop filters, and would like
> some pointers to sample maildroprc code (assuming that this is
> maildrop's responsibility) that generates a custom bounce.
> 
> Essentially, I'd like to bounce the message with some stern statement
> about how it has been marked as spam, and if it really really isn't spam
> the author should do something about it.

By the time the mail filter runs, the message has already been accepted by 
the mail server.  These days all spam uses forged return addresses, so the 
only thing that bouncing spam will accomplish is that it'll clog your mail 
queue, and/or annoy some innocent victim out there.

Kate Porter | 4 Mar 2004 01:30

Re: Re: Sample bounce

>  These days all spam uses forged return addresses, so the 
> only thing that bouncing spam will accomplish is that it'll clog your mail 
> queue, and/or annoy some innocent victim out there.
> 

True.  But.  The setup I have in mind is:

1)removing most spam messages (/^X-Spam-Status: Yes/).  
2)bouncing any that scored 2+ (or some such)

The latter may include false positives.  The purpose of the bounce is to
alert valid email authors that I did not get their message.  The purpose
of the setup is to implement an aggressive spam policy without the fear
of losing important mail.

Also, I intended to use a null mailbox to ensure that i ignore any 
bounces that bounce back.  Good point about innocent victims -- I'll
have to think about that some.

> By the time the mail filter runs, the message has already been
accepted by 
> the mail server. 
Good point.  One option is to use courierfilter -- not maildrop -- to do
the bouncing.  Of course I would then have to run SpamAssassin as a
courierfilter.  Has that been done?

Any other ideas?  Or does the whole thing still seem like a bad way to
go about it?

> Kate Porter writes:
(Continue reading)


Gmane