OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: LMTP -- how to do alias expansion + LMTP delivery
From: Rupa Schomaker (rupa-list+postfixrupa.com)
Date: Mon May 22 2000 - 23:55:04 CDT


The LMTP patches prior to official merging allows for two ways to do
LMTP. One is via tcpip using a transport to set the next hop and the
other is to directly give the command to execute in the master.cf.

The adoption of the LMTP patches have preserved only the first
method. On the surface this makes perfect sense, and was the final
goal even for the original patches.

The problem:

I need alias expansion on the local box. root needs to go to the
right person. Simple lists need to be expanded. And I need command
execution for stuff like mailing lists.

Currently, the only way to get those working is to use the local
mailer with the mailbox_transport set the lmtp transport.

This works fine if you use the now unsupported way of using LMTP. How
can it be done with the transport method? I want to generically pass
everything to local, and only stuff that cannot be delivered by local
should be passed to the lmtp transport. In order to enable lmtp now,
the destination host needs to be put in the transport table. This
immediately short-circuits the local delivery and thus aliases aren't
processed.

So, what should I do? (simple is better of course)

-- 
-rupa