The trick is to tell your SMTP server to deliver to different LMTP sockets based on domain name...

Many thanks to Igor Brezac, Claus Assman, and Neil Rickert for all of their help! I couldn't have figured this one out without you!

I'm not a sendmail expert by any means, but this works for me...

Near the top of your (after OSTYPE and DOMAIN), add:
FEATURE(`mailertable',`hash /etc/mail/mailertable')dnl

Then at the bottom of add:

Mlmtp,          P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n,
                S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,
                A=FILE $h
Then make a mailertable in /etc/mail/mailertable that looks like this:		lmtp:/var/imap/		lmtp:/var/imap/
Now make your mailertable hash:
# makemap hash /etc/mail/mailertable < /etc/mail/mailertable

And make your
# m4 /etc/mail/ > /etc/mail/

NOTE: Creating may be different on your system. Two caveats I know of:
Restart sendmail:
#/etc/init.d/sendmail stop
#/etc/init.d/sendmail start

And that's it! Test it with:
# /usr/lib/sendmail -bt
> /parse
mailer lmtp, host /var/imap/, user phil
> ^D

If you see something like that, you're all set!

My friend has this working, and I'm waiting on his configs to post them. Stay tuned.

I may get to this one day, but this is low on the priority list.

Last Updated: 06/23/02

This page is © Phil Dibowitz 2001 - 2004