Mathias Koerber schrieb am Tue, Apr 23, 2002 at 09:47:19AM +0800: > Hi all, > > I am planning to install Cyrus IMAPs on my main mailbox server. The SMTP > server > accepting mail from the outside world will be a different system running > postfix. > I am considering using lmtp for local transport to the mailbox server from > postfix. > However, I'd like to be able to use procmail delivery on the mailbox server, > and > would like to solicit suggestions how this is best done. > Will lmtpd honor a .forward file calling procmail, or is there a way to > always use procmail for local delivery from lmtpd?
Use the simplest way to do this, use cyrus' deliver(8). In short, deliver _is_ just an LMTP client. Your advantage: sendmail can give the mail to procmail, which can hand it over to deliver after processing, which in turn will hand it to the underlying lmtpd. AFAIK you cannot instruct Sendmail to use LMTP _and_ procmail at the same time. This is because a) If procmail has the mail, it has the mail. Sendmail has no further control of the mail delivery process and thus cannot stuff it into cyrus' lmtpd afterwards b) Procmail does not speak LMTP, it has to invoke external commands for delivery (such as deliver(8)) Regards, Birger