⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mail500.8

📁 开放源码的ldap系统
💻 8
字号:
.TH MAIL500 8C "20 August 2000" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man8/mail500.8,v 1.3.12.2 2000/08/20 21:14:31 kurt Exp $.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply.  See COPYRIGHT/LICENSE..SH NAMEmail500 \- X.500 capable mailer.LPfax500 \- X.500 capable fax delivery agent.SH SYNOPSIS.B LIBEXECDIR/mail500 [\-d level] [\-f mailfrom].B [\-h hostname] [\-l ldaphost].B [\-m address] [\-v vacationhost].LP.B LIBEXECDIR/fax500 [\-d level] [\-f mailfrom].B [\-h hostname] [\-l ldaphost].B [\-m address].SH DESCRIPTION.B mail500is an LDAP/X.500-capable mailer, suitable to be invoked from amail delivery agent such as.BR sendmail (8).It supports mail to both individuals and groups..B fax500is an LDAP/X.500-capable facsimile delivery agent.  It utilizes theInternet remote-printing experiment (tpc.int).  For moreinformation on tpc.int, look in.B /mrose/tpcon.BR ftp.ics.uci.edu ,or send mail to.BR tpc-faq@town.hall.org ..SH OPTIONS.RB \- d levelTurn on debugging as defined by.I level.This option directs.B mail500/fax500to produce various debugging output via the.BR syslog (8)facility at the LOG_ALERT level..TP.BI \-f " mailfrom"This option tells.B mail500/fax500what to set the envelop from address to when (re)invoking sendmailto deliver mail..I mailfromshould be a valid email address.  Normally, this option is passedto.B mail500/fax500via the sendmail.cf(5) mailer definition, and is setto something like the $f macro..TP.BI \-l " ldaphost"Specify an alternate host on which the LDAP server is running..TP.BI \-m " address"If.I mail500/fax500produces a rejection message, this is the.I addressfrom which it will com.  Normally, this option is passed to.I mail500/fax500via the sendmail.cf(5) mailer definition, and is set to somethinglike $n@$w (typically, mailer-daemon@hostname)..TP.BI \-v " vacationhost"If the vacation facility is operative, this option specifies thehost to which the mail of users who are on vacation should be sent..SH HOW MAIL500 AND FAX500 WORKWhen mail500/fax500 gets invoked with one or more names to which todeliver mail, it searches for each name in X.500.  Where it searches,and what kind(s) of search(es) it does are compile-time configurableby changing the.B basearray in.BR main.c .For example, the configuration we use at U-M is like this:.LP.nfBase    base[] =	{ "ou=People, o=University of Michigan, c=US", 0		"uid=%s", "cn=%s", NULL,	  "ou=System Groups, ou=Groups, o=University of Michigan, c=US", 1		"(&(cn=%s)(associatedDomain=%h))", NULL, NULL,	  "ou=User Groups, ou=Groups, o=University of Michigan, c=US", 1		"(&(cn=%s)(associatedDomain=%h))", NULL, NULL,	  NULL	};.fi.LPwhich means that in delivering mail to "name@umich.edu".B mail500/fax500would do thethe following searches, stopping if it finds a match at any step:.LP.nfsubtree search of "ou=People, o=University of Michigan, c=US"	for (uid=name)subtree search of "ou=People, o=University of Michigan, c=US"	for (cn=name)subtree search of "ou=System Groups, ou=Groups, o=University of Michigan, c=US"	for (&(cn=name)(associatedDomain=umich.edu))subtree search of "ou=User Groups, ou=Groups, o=University of Michigan, c=US"	for (&(cn=name)(associatedDomain=umich.edu)).fi.LPNotice that when specifying a filter %s is replaced by the name,or user portion of the address while %h is replaced by whatever ispassed in to.B mail500/fax500via the.RB \- hoption (typically the host portion of the address)..LPYou can also specify whether you want search results that matchedbecause the entry's RDN matched the search to be given preferenceor not.  At U-M, we only give such preference in the mail groupportion of the searches.  Beware with this option:  the algorithmused to decide whether an entry's RDN matched the search is verysimple-minded, and may not always be correct..LPThere is currently no limit on the number of areas searched (the basearray can be as large as you want), and an arbitrary limit of 2 filtersfor each base.  If you want more than that, simply changing the 3 inthe typedef for Base should do the trick..SH X.500 SUPPORTIn X.500, there are several new attribute types and one new objectclass defined that.B mail500/fax500uses.  At its most basic, for normalentries.B mail500will deliver to the value(s) listed in the.B mailattribute of the entry, and.B fax500will attempt to deliver a fax to the telephone number listed in the.B facsimileTelephoneNumberattribute.  For example, at U-M my entry has the attribute.LP.nf	mail= tim@terminator.rs.itd.umich.edu.fi.LPSo mail sent to tim@umich.edu will be delivered via.B mail500to thataddress (assuming the.BR sendmail.cf (5)file is set up to call.B mail500for mail to somebody@umich.edu - see below).  If there were multiplevalues for the mail attribute, multiple copies of the mail would be sent..LPIn the case of.BR fax500 , if my entry has the attribute.LP.nf	facsimileTelephoneNumber= +1 313 764 5140.fi.LPA message sent to tim@fax.umich.edu (assuming the sendmail.cf fileis set up to pass mail @fax.umich.edu to.BR fax500 \-see below)will generate a message toremote-printer.Timothy_A_Howes@0.4.1.5.4.6.7.3.1.3.1.tpc.int..LPA new object class, rfc822MailGroup, and several new attributes havebeen defined to handle email groups/mailing lists.  To use this, youwill need to add this to your local.BR oidtable.oc :.LP.nf	# object class for representing rfc 822 mailgroups	rfc822MailGroup:        umichObjectClass.2 : \\		top : \\		cn : \\		rfc822Mailbox, member, memberOfGroup, owner, \\		errorsTo, rfc822ErrorsTo, requestsTo, rfc822RequestsTo, \\		joinable, associatedDomain, \\		description, multiLineDescription, \\		userPassword, krbName, \\		telecommunicationAttributeSet, postalAttributeSet.fi.LPAnd you will need to add these to your local oidtable.at:.LP.nf	# attrs for rfc822mailgroups	multiLineDescription:   umichAttributeType.2    : CaseIgnoreList	rfc822ErrorsTo:         umichAttributeType.26   : CaseIgnoreIA5String	rfc822RequestsTo:       umichAttributeType.27   : CaseIgnoreIA5String	joinable:               umichAttributeType.28   : Boolean	memberOfGroup:          umichAttributeType.29   : DN	errorsTo:               umichAttributeType.30   : DN	requestsTo:             umichAttributeType.31   : DN.fi.LPThe idea was to define a kind of hybrid mail group that could handlepeople who were in X.500 or not.  So, for example, members of a groupcan be specified via the member attribute (for X.500 members) or therfc822MailBox attribute (for non-X.500 members).  Similarly for theerrorsTo and rfc822ErrorsTo, and the requestsTo and rfc822RequestsToattributes..LPTo create a real mailing list, with a list maintainer, all you have todo is create an rfc822MailGroup and fill in the errorsTo orrfc822ErrorsTo attributes (or both).  That will cause any errorsencountered when delivering mail to the group to go to the addresseslisted (or X.500 entry via it's mail attribute)..LPIf you fill in the requestsTo or rfc822RequestsTo (or both) attributes,mail sent to groupname-request will be sent to the addresses listedthere.  If you fill in the owner attribute, mail sent togroupname-owner will be sent to the addresses listed there.  mail500does this automatically, so you don't have to explicitly add thegroupname-request or groupname-owner aliases to your group..LPTo allow users to join a group, there is the joinable flag.  If TRUE,mail500 will search for entries that have a memberOfGroup attributeequal to the DN of the group, using the same algorithm it used to findthe group in the first place (i.e. the DNs and filters listed in thebase array).  This allows people to join (or subscribe to) a groupwithout having to modify the group entry directly.  If joinable isFALSE, the search is not done..SH SENDMAIL CONFIGURATIONThe idea is that you might have a rule like this in your sendmail.cffile somewhere in rule set 0:.LP.nf        R$*<@umich.edu>$*       $#mail500$@umich.edu$:<$1>        R$*<@fax.umich.edu>$*	$#fax500$@fax.umich.edu$:<$1>.fi.LPThese rules say that any address that ends in @umich.edu will causethe mail500 mailer to be called to deliver the mail, and any addressthat ends in @fax.umich.edu will cause the fax500 mailer tobe called.  You probablyalso want to do something to prevent addresses like terminator!tim@umich.eduor tim%terminator.rs.itd.umich.edu@umich.edu from being passed to mail500.At U-M, we do this by adding rules like this to rule set 9 where westrip off our local names:.LP.nf	R<@umich.edu>$*:$*                 $>10<@>$1:$2	R$+%$+<@umich.edu>                 $>10$1%$2<@>	R$+!$+<@umich.edu>                 $>10$1!$2<@>.fi.LPOf course, you would substitute your domain name for umich.edu in theabove examples.  See the sample sendmail.cf file in the ldap sourcedirectory clients/mail500/ for more details..LPThe mail500 and fax500 mailers should be defined similar to this in thesendmail.cf file:.LP.nfMmail500, P=LIBEXECDIR/mail500, F=DFMSmnXuh, A=mail500 -f $f -h $h -m $n@$w $uMfax500, P=LIBEXECDIR/fax500, F=DFMSmnXuh, A=fax500 -f $f -h $h -m $n@$w $u.fi.LPThis defines how mail500/fax500 will be treated by sendmail and whatarguments it will have when it's called.  The various flags specifiedby the F=... parameter are explained in your local sendmail book (withany luck).  The arguments to mail500/fax500 are as defined under OPTIONSabove.  The final argument $u is used to stand for the addresses to whichto deliver the mail..SH NOTESThe default values for several #defines that control how mail500 and fax500 works are configured at compile time in the include/ldapconfig.h.edit include file.  You should edit this file to suit your site..SH BUGSmail500/fax500 should use the ldap_getfilter(3) facility, instead of compiling in the search filters to use.  This is shameful..LPThe support for joinable groups (searching to find members who haveset something in their own entry) is really a hack because we did nothave good enough access control to allow people to add and deletethemselves from the group itself..LPAt one point, mail500 and fax500 were exactly the same binary, andwould behave appropriately based on how they were invoked.  Unfortunately,several new features (e.g. vacation support) were added to mail500but not to fax500..SH "SEE ALSO".BR ldap(3),.BR sendmail.cf(5),.BR sendmail(8),.SH ACKNOWLEDGEMENTS.B	OpenLDAPis developed and maintained by The OpenLDAP Project (http://www.openldap.org/)..B	OpenLDAPis derived from University of Michigan LDAP 3.3 Release.  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -