<<< Date Index >>>     <<< Thread Index >>>

Re: procmail with mutt



I'm still not clear what you are using for an INBOUND MTA. You said ESMTP.
Looking at the esmtp website http://esmtp.sourceforge.net/manual.html, I see
the procmail example for local delivery. That has:

mda="/usr/bin/procmail -d %T"

and man say's this about procmail:

"and then, if no command line arguments are present,  it  starts  to look
for a file named $HOME/.procmailrc..."

Yet later on for -d it says this:

-d recipient ...

        This turns on explicit delivery mode, delivery will be to the local
user recipient.  This, of course, only is possible if procmail has root
privileges (or if procmail is already running with the recipient’s euid and
egid).  Procmail will setuid to the intended recipients and delivers the
mail as if it were invoked by the recipient with no arguments (i.e., if no
rcfile is found, delivery is like ordinary mail).  This option is
incompatible with -p.

I'd like to see the headers of one of those messages to really see what
MTA/MDA is being used.


 On Sat, Jan 14, 2006 at 04:29:17PM -0500,
Gerald Britton wrote:
> I tried all four mutt types (mbox, maildir, mh and mmdf.  All fail. 
> I'm going to post this on the mutt list as well, to seek further
> guidance
> 
> On 1/13/06, Ruud H.G. van Tol <rvtol@xxxxxxxxxxxx> wrote:
> > Gerald Britton schreef:
> >
> > > $ cat /etc/procmailrc
> >
> > Insert a
> >
> >   DROPPRIVS = 'yes'
> >
> > here, because without it, the mbox is created wrongly.
> > See `man procmailrc`.
> >
> > > # Use mbox-style mailbox in FHS standard directory
> > > DEFAULT=/var/mail/$LOGNAME
> > > LOGFILE=$HOME/procmail
> >
> >   DEFAULT = "/var/mail/$LOGNAME"
> >   LOGFILE = "$HOME/procmail"
> >
> >
> > > I also have my userid set up as a directory under /var/mail/.
> > > However, when I send myself an E-mail, I get something like this:
> > >
> > > $ ls /var/mail/me/
> > > msg.7QdS  msg.ChmU  msg.MSbU  msg.V_WF  msg.amXT  msg.ikDB  msg.sXSF
> > > msg.sXbU  msg.uWtL  msg.wWtL  msg.x3cS
> >
> > Remove that 'me/' directory and let procmail re-create it.
> >
> >
> > If you want maildir-type delivery, append a slash to $DEFAULT:
> >
> >   DEFAULT = "/var/mail/$LOGNAME/"
> >
> > This will make procmail create (and use) me/new, me/tmp, me/cur.
> >
> >
> > > If I try to read this with mutt, like this
> > >
> > >   mutt -f /var/mail/me -m mbox
> > >
> > > I get the message from mutt:
> > >
> > > /var/mail/me/ is not a mailbox.
> > >
> > > Does anyone know what's going on
> >
> > You were using the wrong "mbox_type". Because you pre-created a
> > directory, procmail had to switch to MH-type.
> >
> >
> > Either use maildir:
> >
> >    mutt -f /var/mail/me -m Maildir
> >
> > or remove the me/ directory and use mbox:
> >
> >    mutt -f /var/mail/me
> >
> > or use the current MH-mode:
> >
> >    mutt -f /var/mail/me -m MH
> >
> > --
> > Grtz, Ruud
> >
> >
> > ____________________________________________________________
> > procmail mailing list   Procmail homepage: http://www.procmail.org/
> > procmail@xxxxxxxxxxxxxxxxxxxx
> > http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
> >
> >
> 

-- 
:: Jeff Macdonald | Principal Engineer, Messaging Technologies
:: e-Dialog | jmacdonald@xxxxxxxxxxxx
:: 131 Hartwell Ave. | Lexington, MA 02421 
:: v: 781-372-1922 | f: 781-863-8118 
:: www.e-dialog.com