At 02:15 AM 30/5/2001, Geoff Wyche wrote:

>I would like to use the cyrus delivery agent only for certain users who
>wish to use IMAP.  I would like to leave the rest of my sendmail
>configuration unchanged.  My approach would be to use a sendmail 'class'
>to specify which users want their mail delivered by cyrus 'deliver', then
>rewrite my sendmail rules to read and use the class.
>
>Does cyrus 'deliver' need to be the ONLY local delivery agent?


You can define multiple mailers in sendmail, and set the local mailer to use one of 
them.  I set up a LMTP delivery agent on the main mail server (Sendmail 11.3) as..

Mlmtp,  P=[IPC], F=sDFMnqA@/:|SmXz, E=\r\n,
        S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, 
        A=TCP $h 2003 


..then set up the "mailertable" as..

testmachine.my.fqdn  lmtp:[testmachine.my.fqdn]


..and set up an alias(or virtuser) for a user to be delivered to the 
testmachine.my.fqdn machine..

myname:   [EMAIL PROTECTED]


If you have sendmail configured to use mailertables, then it will deliver to machine 
called testmachine.my.fqdn using the mailer "lmtp".  The [brackets] tells it to not 
bother to get the MX record for that domain name and just deliver it.  This method 
makes the delivery occur on the other machine (IMAP server), but look like it was 
delivered locally (no addition of SMTP headers).

I can not see why you could not trick your sendmail, and use some name that routes it 
differently even to the local machine (instead of my method on delivery to another).  

I like your approach using the 'class' and rule rewrite - can you post them for us?


Kind regards,  Stuart.

Reply via email to