Saving in MAILDIR format with Sendmail

2006-04-01 Thread Gerard Seibert
I presently have Sendmail as my MTA. The mail in /var/mail is in MBOX 
format. I wanted to change it to MAILDIR format.

1) Is it possible for Sendmail to save in MAILBOX format directly?

2) If not, can ProcMail be used in this scenario? If so, how would I 
configure it? I Googled and noticed something about ending directory 
paths in '/' but I did not really understand what it was referring to.

3) If someone has a better solution, I would love to hear it.

-- 
Gerard Seibert
[EMAIL PROTECTED]

PGP: http://www.seibercom.net/sig/gerard.asc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Saving in MAILDIR format with Sendmail

2006-04-01 Thread albi
On Sat, 1 Apr 2006 09:29:00 -0500
Gerard Seibert [EMAIL PROTECTED] wrote:

 I presently have Sendmail as my MTA. The mail in /var/mail is in MBOX 
 format. I wanted to change it to MAILDIR format.
 
 1) Is it possible for Sendmail to save in MAILBOX format directly?

sorry, no idea

 2) If not, can ProcMail be used in this scenario? If so, how would I 
 configure it? I Googled and noticed something about ending directory 
 paths in '/' but I did not really understand what it was referring to.

# part of my global procmailrc

VERBOSE=off
SHELL=/bin/sh
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
MAILDIR=$HOME/Maildir/
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log

the / is about other procmail-rules, e.g. :

:0
* [EMAIL PROTECTED]
.Junk/


-- 
grtjs, albi
gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Saving in MAILDIR format with Sendmail

2006-04-01 Thread Matthew Seaman
Gerard Seibert wrote:
 I presently have Sendmail as my MTA. The mail in /var/mail is in MBOX 
 format. I wanted to change it to MAILDIR format.
 
 1) Is it possible for Sendmail to save in MAILBOX format directly?
 
 2) If not, can ProcMail be used in this scenario? If so, how would I 
 configure it? I Googled and noticed something about ending directory 
 paths in '/' but I did not really understand what it was referring to.
 
 3) If someone has a better solution, I would love to hear it.

It's not actually sendmail that saves the messages on final delivery,
but the local mail delivery process that sendmail hands the message off to.

By default that is mail.local(8) which only supports the Berkeley mbox
format.  So in order to make sendmail deliver e-mails Maildir style, you
will need to substitute a different local delivery agent.  procmail(1) is
a possibility, as it handles both mbox and Maildir formats.

To make procmail the default delivery agent, add

FEATURE(local_procmail)dnl

to your /etc/mail/`hostname`.mc file and generate and install a new
sendmail.cf in the usual way[1].

Now you can set up a ${HOME}/.procmailrc for each e-mail user specifying
delivery to a Maildir setup by default:

   :0
   /var/mail/username/

(Procmail assumes Maildir format if the mailbox name ends in a trailing
'/' character, indicating that it is actually a directory rather than a
plain file.)

Remember to create the directories and set ownership and permissions
first.  It might be better to deliver the mail to somewhere under each
user's home directory rather than under /var/mail.  Undoubtedly there will
be a method of making that style of delivery the default without having to
have individual .procmailrc files in each user account, but that you'll
have to google for.

Cheers,

Matthew

[1] cd /etc/mail ; make  make install  make restart

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature