[TriLUG] help with procmail/postfix

Jeremy Portzer jeremyp at pobox.com
Tue Jul 29 19:09:37 EDT 2003


Perhaps it put "NewTest" in your home directory instead of in the 'mail' 
subdirectory?  I don't know what the default is.   You can put 
	MAILDIR=$HOME/mail
at the top of the procmailrc to avoid using the full path like that.

--Jeremy

On Tue, 29 Jul 2003, Tom Woods wrote:

> Thanks!  I'm yet another step closer.  I duplicated the recipe you posted,
> with locking.  The email arrived, but simply disappeared.  procmail.log
> showed the following:
> 
> From thomaswoods at earthlink.net  Tue Jul 29 18:23:48 2003
>  Subject: testnewprocrc
>   Folder: /var/spool/mail/twoods                                          
> 1006
> From thomaswoods at earthlink.net  Tue Jul 29 18:24:31 2003
>  Subject: Test Folder
>   Folder: NewTest
> 1004
> 
> I did get it to work, but what I had to do to make it work is the following:
> 
> :0:
> * ^Subject: Test Folder
> /home/twoods/mail/NewTest
> 
> I'm wondering if it's normal to need the full path like this, or maybe I
> have something misconfigured?
> 
> Thanks,
> 
> Tom
> 
> 
> > On Tue, 2003-07-29 at 08:59, Jeremy Portzer wrote:
> >> On Tue, 2003-07-29 at 00:33, Tom Woods wrote:
> >> > Thanks for the global procmail suggestion, however I've actually
> >> tried that as well.
> >> >
> >> > I've posted the files at:
> >> >
> >> > http://www.familyfunnies.com/main.cf
> >> > http://www.familyfunnies.com/.procmailrc
> >>
> >> Do you have the $DELIVERTO macro defined?
> >> That's a special variable that is setup on the TriLUG servers.  In
> >> that case, it expands to a program called "dmail" (or actually, a
> >> patched version called "dmail-trilug") that delivers to the IMAP
> >> folders.
> >>
> >> If you don't have the specialized MBX setup that we're using on
> >> TriLUG, just leave off the $DELIVERTO part and put the name of the
> >> folder.  Procmail will just deliver locally to the folder in mbox
> >> format.
> >
> > To clarify, you'd leave off both the pipe character and the $DELIVERTO.
> > A more standard procmail recipe looks like this:
> >
> > :0
> > * ^Subject: Test Folder
> > NewTest
> >
> > In actuality, you will want to enable locking, so that multiple programs
> > (or multiple instances of procmail) won't try to write to the "NewTest"
> > foler at once.  This is done by adding a colon after the zero, so the
> > recipe will look like:
> >
> > :0:
> > * ^Subject: Test Folder
> > NewTest
> >
> > Enabling locking is pretty necessary when you're using the standard
> > 'mbox' format.  For other formats like Maildir or MBX, it's not
> > necessary, at least from what I've heard.  (Locking doesn't make sense
> > in the TriLUG setup because we're actually piping the mail through a
> > program -- the $DELIVERTO program which is "dmail" -- instead of having
> > procmail deliver the mail itself.)
> >
> > Hope this helps,
> > Jeremy
> >
> > --
> > /---------------------------------------------------------------------\
> > | Jeremy Portzer       jeremyp at pobox.com       trilug.org/~jeremy     |
> > | GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
> > \---------------------------------------------------------------------/
> 
> 
> 
> 

-- 
/======================================================================\
|  Jeremy Portzer	jeremyp at pobox.com	trilug.org/~jeremy     |
|  GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\======================================================================/




More information about the TriLUG mailing list