From owner-freebsd-questions@FreeBSD.ORG Sat Apr 1 14:57:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EBB016A420 for ; Sat, 1 Apr 2006 14:57:16 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A28D43D45 for ; Sat, 1 Apr 2006 14:57:14 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.4/8.13.4) with ESMTP id k31Ev2fk070558; Sat, 1 Apr 2006 15:57:02 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <442E94B9.8070203@infracaninophile.co.uk> Date: Sat, 01 Apr 2006 15:56:57 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5 (X11/20060401) MIME-Version: 1.0 To: gerard@seibercom.net References: <200604010929.01704.gerard@seibercom.net> In-Reply-To: <200604010929.01704.gerard@seibercom.net> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig69EE8F1C25FAAB08A1C687B4" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 01 Apr 2006 15:57:02 +0100 (BST) X-Virus-Scanned: ClamAV 0.88/1364/Thu Mar 30 21:05:50 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Saving in MAILDIR format with Sendmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2006 14:57:16 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig69EE8F1C25FAAB08A1C687B4 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Gerard Seibert wrote: > I presently have Sendmail as my MTA. The mail in /var/mail is in MBOX=20 > format. I wanted to change it to MAILDIR format. >=20 > 1) Is it possible for Sendmail to save in MAILBOX format directly? >=20 > 2) If not, can ProcMail be used in this scenario? If so, how would I=20 > configure it? I Googled and noticed something about ending directory=20 > paths in '/' but I did not really understand what it was referring to. >=20 > 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 t= o. 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 wil= l be a method of making that style of delivery the default without having t= o 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 --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig69EE8F1C25FAAB08A1C687B4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFELpS+8Mjk52CukIwRA8IdAJ9J0kXtjEtT+VFyXn0OTA8XDKUWwQCfa96g Qs24OnJuby7XIhkOTdDFRwM= =/Zqg -----END PGP SIGNATURE----- --------------enig69EE8F1C25FAAB08A1C687B4--