Sendmail Question.
Douglas Willis
ddw at BAS.AC.UK
Mon Jun 14 12:07:02 IST 2004
I've got the aliases in the LDAP database but the expansion occurs after
the LDAP lookup.
The LDAP lookup is made using the following query to return the
mailRoutingAddress value.
(&(objectClass=inetLocalMailRecipient)(mailLocalAddress=%0))
If this lookup does not suceed then an error `user unknown' is generated
and sendmail passes the delivery to the error handler rather than the
local mailer. The mailer is the thing that does the alias expansion
before delivery. I've tried the F=A option on the mailers but because
of the error thay never get the option to do the lookups.
The solution seems to be to addd the inetLocalMailRecipient object to
the alias entry. Then add the mailRoutingAddress value pointing to
alias at mail.nerc-bas.ac.uk with the mailLoaclAddress equal to
alias at bas.ac.uk. This is a little messy as the sendmail schema for maps
allows each to be tailered to either a cluster and/or a host specific
entry while the LDAP mail routing is not targeted in the same way.
The LDIF entry would look like this.
# Entry 1: cn=admin,ou=Aliases,dc=nerc-bas,dc=ac,dc=uk
dn:cn=admin,ou=Aliases,dc=nerc-bas,dc=ac,dc=uk
objectClass: top
objectClass: sendmailMTA
objectClass: sendmailMTAAlias
objectClass: sendmailMTAAliasObject
objectClass: inetLocalMailRecipient
sendmailMTAAliasGrouping: aliases
sendmailMTACluster: Servers
sendmailMTAKey: admin
sendmailMTAAliasValue: unixadmin
mailRoutingAddress: admin at mail.nerc-bas.ac.uk
mailLocalAddress: admin at bas.ac.uk
William Burns wrote:
> Douglas:
>
> In my location, we enter all the aliases into the LDAP database.
>
> -Bill
>
> Douglas Willis wrote:
>
>> The problem I have is when I setup sendmail with
>> FEATURE('ldap_routing,,,bounce) it will only accept mail for users in
>> the LDAP database and does not do the alias expansion.
>>
>> Is there a way to get the alias expansion done before the LDAP lookup?
>>
--
Douglas Willis (ddw at nerc-bas.ac.uk)
British Antarctic Survey
High Cross, Madingley Road
Cambridge, CB3 0ET, United Kingdom
tel: +44 1223 221400, fax: +44 1223 362616
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list