From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a3bbb82a1399963e X-Google-Attributes: gidfee84,public From: Charles M Richmond Subject: Re: sendmail - deliver to home directory Date: 1997/01/06 Message-ID: <32D1AC71.59E2@iisc.com>#1/1 X-Deja-AN: 208166502 references: <1997Jan6.110004@kuhub.cc.ukans.edu> to: Craig Paul content-type: text/plain; charset=iso-2022-jp organization: Integrated International Systems Corp. mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.01 (X11; I; OSF1 V3.2 alpha) Craig Paul wrote: > > How does one configure sendmail to deliver a user's e-mail to their > home directory (rather than /var/spool/mail/)? > > Thank you! 1.Create a .forward file that contains "| /usr/lib/mh/slocal -user XXX" 2. Create a directory with the various inboxes. 3. Create a .decxmailcheck file that contains the following pattern: inbox $HOME/mailbox_dir/inbox folder-name1 $HOME/mailbox_dir/folder-name1 folder-name2 $HOME/mailbox_dir/folder-name2 folder-name3 $HOME/mailbox_dir/folder-name3 4. Create a .maildelivery file with the following pattern: from PATTERN > ? $HOME/mailbox_dir/folder from PATTERN ^ ? "/usr/lib/mh/rcvstore +folder" * - > ? $HOME/mailbox_dir/inbox default - > ? /usr/spool/mail/XXX The first line will put an incoming email in one of your inboxes and if you have a corresponding line in your .decxmailcheck file then that folder will be highlighted in dxmail to show new mail. The second will put an incoming email directly into the mail folder but won't notify you. The third line will put all unmatched patterns into your new inbox and the 4th line is a safety line in case your $home/maildir gets trashed. I really recomend the the MH & XMH book from O'Reilly. Charlie PS I hope that this helps. Honestly, I did not really have the time to write it!!!! -- *********************************************************************** * Charles Richmond Integrated International Systems Corporation * * cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net * * UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W * * One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 * * (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 * ***********************************************************************