Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

localtable - using map to send some local adresses to cyrus

4 views
Skip to first unread message

Andrzej Filip

unread,
Apr 15, 2002, 10:58:00 AM4/15/02
to
Local Table

Abstract The posting describes how to modify your sendmail configuration
to allow selecting non default local mailer (e.g. cyrus) for some local
addresses.
It will make sendmail reject during smtp session delivewry attempt to
adresses handled
by no local mailer.

Usage localtable [/etc/mail/localtable]:
# local_address local_like_mailer:delivery_address
zyz cyrus:xyz
j23 cyrus:j23
007 cyrus:m5

It should send email for local adress xyz to cyrus xyz mailbox and
messages for local adress 007 to user m5 mailbox in cyrus

Single File Version

You can download cf/feature/localtable.m4 file and put it in
cf/feature/ directory of sendmail ditribution

It will allow you you get the functionality via single line in your
*.mc file
FEATURE(`localtable')

The feature should work with sendmail 8.11 and 8.12

Testing You can use commands given below for testing the feature:
"Normal" delivery test:
sendmail -bv xyz
sendmail -bv x...@localhost.localdomain
sendmail -bv 007
sendmail -bv root
sendmail -bv nosuchuser


Converting sasldb to localtable You can use sasldb2ltab.pl perl script
to convert sasldb to localtable.
[ tested on RH7.2 & cyrus-sasl.1.5.24 ]

localtable.db: localtable
makemap hash localtable < localtable

localtable: /etc/sasldb
sasldb2ltab.pl > localtable


P.S.
The solution will be published at
http://www.polbox.com/a/anfi/sendmail/localtab.html

--
Andrzej (Andrew) A. Filip an...@box43.pl http://www.polbox.com/a/anfi/
366A 5DD7 7707 379C 9251 32AE C948 0BD2 7D99 688A expires: 2003-01-25

localtable.m4
sasldb2ltab.pl
0 new messages