diff options
author | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2004-08-01 01:04:57 +0000 |
---|---|---|
committer | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2004-08-01 01:04:57 +0000 |
commit | 6b3455a7665208c366849f0b2b3bc916fb97516e (patch) | |
tree | 7aca7168c7ebd7706eb881e54393aa774eee6862 /contrib/sendmail/mail.local | |
parent | cd78d8bd021f2b2f5d371392fa319201560f786a (diff) | |
parent | e92d3f3ffe83a6ed7eaafac70da9cf4fafe13243 (diff) | |
download | src-6b3455a7665208c366849f0b2b3bc916fb97516e.tar.gz src-6b3455a7665208c366849f0b2b3bc916fb97516e.zip |
Notes
Diffstat (limited to 'contrib/sendmail/mail.local')
-rw-r--r-- | contrib/sendmail/mail.local/Makefile.m4 | 2 | ||||
-rw-r--r-- | contrib/sendmail/mail.local/README | 27 |
2 files changed, 27 insertions, 2 deletions
diff --git a/contrib/sendmail/mail.local/Makefile.m4 b/contrib/sendmail/mail.local/Makefile.m4 index 63c14e0dfac3..3a06a3b44b80 100644 --- a/contrib/sendmail/mail.local/Makefile.m4 +++ b/contrib/sendmail/mail.local/Makefile.m4 @@ -1,4 +1,4 @@ -dnl $Id: Makefile.m4,v 8.49.2.1 2002/06/21 21:58:36 ca Exp $ +dnl $Id: Makefile.m4,v 8.50 2002/06/21 22:01:39 ca Exp $ include(confBUILDTOOLSDIR`/M4/switch.m4') define(`confREQUIRE_LIBSM', `true') diff --git a/contrib/sendmail/mail.local/README b/contrib/sendmail/mail.local/README index 651de4bc9113..2ab9dbc4af97 100644 --- a/contrib/sendmail/mail.local/README +++ b/contrib/sendmail/mail.local/README @@ -36,4 +36,29 @@ delivery agent without LMTP mode, use: in the .mc file. -$Revision: 8.10 $, Last updated $Date: 2001/09/08 01:21:04 $ +Defining HASHSPOOL (-DHASHSPOOL) will build a mail.local which supports +delivering to subdirectories of the mail spool, based on a hash of the +username (i.e., a hash depth of 2 and a username of "user" will result in +/var/spool/mail/u/s/user). If the hash depth is greater than the length +of the username, "_" will be used. The necessary subdirectories must +exist; mail.local will not create them. Use the "-H" option to set the +hash type and depth (like "-H u2" for a username hash two levels deep). + +The HASHSPOOL option also adds two other options: "-p path" to specify +an alternate mail spool path (i.e., "-p /local/mail") and "-n" to specify +that mail.local should not strip the @domain part of recipient addresses +in LMTP mode. + +In addition to HASHSPOOL, defining HASHSPOOLMD5 and linking against +libcrypto from OpenSSL like: + + APPENDDEF(`conf_mail_local_ENVDEF', `-DHASHSPOOL -DHASHSPOOLMD5') + APPENDDEF(`conf_mail_local_LIBS', `-lcrypto') + +will offer an alternate hash, using a base64 encoding (changing / to _) +of an MD5 hash of the username. This results in a more balanced +subdirectory tree. The subdirectories will be named with A-Z, a-z, 0-9, ++, and _. The hash type is "m", so use "-H m3" to get a three level MD5 +based hash. + +$Revision: 8.11 $, Last updated $Date: 2003/10/20 20:19:13 $ |