Steve Quezadas | 2 Nov 04:31 2004

maildrop not sending to maildir

My maildrop program is re-directing mail to a mailbox file instead of maildir:

 

[localhost]$ /usr/bin/maildrop /home/TestAccount/.mailfilter -V 9 < ~/maildrop.log

/home/TestAccount/.mailfilter(2): Opening logfile //usr/vpopmail/maildrop.log

/home/TestAccount/.mailfilter(5): LOCALDEFAULT="/home/TestAccount/ Maildir/test"

maildrop: Delivering to /var/spool/mail/vpopmail

maildrop: Flock()ing /var/spool/mail/vpopmail.

maildrop: Appending to /var/spool/mail/vpopmail.

maildrop: Delivery complete.

 

 

My .mailfilter file looks like this:

[localhost]$ cat .mailfilter

VERBOSE=9

logfile "/$HOME/maildrop.log"

MAILBOX="/home/TestAccount/Maildir/"

TO /home/TestAccount/Maildir/IN/

 

I set the verbosity to 9, but maildrop is not telling me WHY it’s writing the file to another directory. Is there some other area where I can get more information on what’s going on?

 

- Steve

 

Jay Lee | 2 Nov 04:52 2004

Re: maildrop not sending to maildir


Steve Quezadas said:
> [localhost]$ cat .mailfilter
>
> VERBOSE=9
>
> logfile "/$HOME/maildrop.log"
>
> MAILBOX="/home/TestAccount/Maildir/"
>
> TO /home/TestAccount/Maildir/IN/

IN should be a maildir created with the maildirmake command or created by
an IMAP client.  In either case, the maildir folder for it would be named
.IN not just IN.  You should also probably have the full folder name in
quotes.  Try this:

MAILBOX="/home/TestAccount/Maildir"
TO "$MAILBOX/.IN"

That should do the trick.

Jay
--

-- 
Jay Lee
Network / Systems Administrator
Information Technology Dept.
Philadelphia Biblical University
--

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Dmitri Orleanski | 2 Nov 16:15 2004

need some check up

I wrote a small howto for a postfix -> maildrop <- getmail 
can somebody help me to test it (no no i don't need subscription for spam  ) 
just suggestions and maybe addition, which can be posted here or on the wiki directly 
here is the link http://gentoo-wiki.com/Maildrop_configuration 

Thank you.
--

-- 
Sincerely,
Dmitri Orleanski.

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Dmitri Orleanski | 2 Nov 15:56 2004

need suggestions for manual configuration of the rules

Hello,

I wrote a small howto for a postfix -> maildrop <- getmail 
can somebody help me to test it (no no i don't need subscription for spam  ) 
just suggestions and maybe addition, which can be posted here or on the wiki directly 
here is the link http://gentoo-wiki.com/Maildrop_configuration 

Thank you.

--

-- 
Sincerely,
Dmitri Orleanski.

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Devin Rubia | 2 Nov 16:31 2004
Picon

Re: maildrop not sending to maildir

On Mon, Nov 01, 2004 at 07:31:19PM -0800, Steve Quezadas wrote:
> My maildrop program is re-directing mail to a mailbox file instead of
> maildir:
> 
>  
> 
> [localhost]$ /usr/bin/maildrop /home/TestAccount/.mailfilter -V 9 <
> ~/maildrop.log 
[SNIP]

$ man maildrop
[SNIP]
     Manual mode
          A file containing filtering instructions - filename  is
          specified  as  an  argument  to  the  maildrop command.
          maildrop      reads      this      filename      (after
          /etc/mail/maildroprc)  and  follows the instructions in
          it.
[SNIP]

So, what's in /etc/mail/maildroprc?

--

-- 
Devin

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Steve Quezadas | 3 Nov 02:03 2004

"If" statement not working

This is weird, my simple recipe is not working because maildrop seems to be choking on the “if” statement. I checked google and newsgroups and I couldn’t find much on this.

 

My simple recipe is as follows:

VERBOSE=9

logfile "/$HOME/maildrop.log"

DEFAULT="$HOME/domains/acme.com/mark/Maildir/"

 

if (/^Received:.*/)

{

  to "$HOME/domains/acme.com/mark/Maildir/testing"

}

 

 

When I try to execute it, this is the error that it’s giving me:

[localhost]$ /usr/bin/maildrop /usr/vpopmail/domains/acme.com/mark/.mailfilter < test.txt

/usr/vpopmail/domains/acme.com/mark/.mailfilter(2): Opening logfile //usr/vpopmail/log.txt

/usr/vpopmail/domains/acme.com/mark/.mailfilter(6): DEFAULT="/usr/vpopmail/domains/acme.com/mark/Maildir/"

/usr/vpopmail/domains/acme.com/mark/.mailfilter(8): Evaluating IF condition.

maildrop: signal 0x04

 

 

What is “signal 0x04”?

 

- Steve

 

Ron Johnson | 3 Nov 06:05 2004
Picon
Picon

Re: "If" statement not working

On Tue, 2004-11-02 at 17:03 -0800, Steve Quezadas wrote:
> This is weird, my simple recipe is not working because maildrop seems
> to be choking on the “if” statement. I checked google and newsgroups
> and I couldn’t find much on this. 
> 
>  
> 
> My simple recipe is as follows:
> 
> VERBOSE=9
> 
> logfile "/$HOME/maildrop.log"
> 
> DEFAULT="$HOME/domains/acme.com/mark/Maildir/"
> 
>  
> 
> if (/^Received:.*/)

Try putting spaces between the parentheses and slashes.

--

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B

"I need an expert on the pain I'm goin' thru, so I keep George on
the ol' turn table 'till I'm over you..."
Mark Chesnutt, "Just Playin' Possum"

Matthias Andree | 3 Nov 15:08 2004
Picon
Picon

Re: "If" statement not working

Ron Johnson <ron.l.johnson <at> cox.net> writes:

>> if (/^Received:.*/)
>
> Try putting spaces between the parentheses and slashes.

Not needed.

--

-- 
Matthias Andree

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Ron Johnson | 3 Nov 15:15 2004
Picon
Picon

Re: "If" statement not working

On Wed, 2004-11-03 at 15:08 +0100, Matthias Andree wrote:
> Ron Johnson <ron.l.johnson <at> cox.net> writes:
> 
> >> if (/^Received:.*/)
> >
> > Try putting spaces between the parentheses and slashes.
> 
> Not needed.

Interesting.  I seem to remember it failing when there were no
spaces.

--

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B

"Don't tell me peace has broken out."
Bertolt Brecht

Devin Rubia | 3 Nov 17:12 2004
Picon

Re: "If" statement not working

On Tue, Nov 02, 2004 at 05:03:47PM -0800, Steve Quezadas wrote:
> This is weird, my simple recipe is not working because maildrop seems to
> be choking on the "if" statement. I checked google and newsgroups and I
> couldn't find much on this. 
> 
>  
> 
> My simple recipe is as follows:
> 
> VERBOSE=9
> 
> logfile "/$HOME/maildrop.log"
> 
> DEFAULT="$HOME/domains/acme.com/mark/Maildir/"
> 
>  
> 
> if (/^Received:.*/)
> 
> {
> 
>   to "$HOME/domains/acme.com/mark/Maildir/testing"
> 
> }

$ man maildropfilter
[SNIP]
  IF - CONDITIONAL EXECUTION
[SNIP]
          Note: The grammar of this if statement is stricter than
          usual.   If  you  get baffling syntax errors from mail-
          drop, make sure that the braces, and the if  statement,
          appear  on  separate  lines.  Specifically: the closing
          parenthesis, the closing braces, and  the  else  state-
          ment,  must  be  at  the  end of the line (comments are
          allowed), and there may  not  be  any  blank  lines  in
          between (not even ones containing comments only).
[SNIP]

Emphasis on "there may not be any blank lines"

--

-- 
Devin

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

Gmane