[Dovecot] deliver as LMTP server?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
One other question; has anybody considered writing a tool that
integrates Dovecot's deliver script and an LMTP server? I'm
architecting my system so that my internet facing SMTP is Postfix,
but the mail folders live on a different machine. Right now, I'm
considering putting a highly restricted Postfix on the internal
machine, which only accepts forwards from the external machine.
IWBNI I could eliminate that extra Postfix process by just letting
the external one deliver to an LMTP on the internal machine, which
was integrated with Dovecot's deliver.
Does anything like that exist? I have a reasonably robust Python
LMTP server in the current Mailman trunk. Would it be insane to try
to marry that with deliver? ;)
- -Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin)
iQCVAwUBRZC95XEjvBPtnXfVAQJgDQP+PxNPZ2453Bb8poBbwtgKAZjwmAJnX4L3 SzipzaoEE8/P8oj/sRwwRO19ViTPmXGZTgQQTF8ipqNL2YAL73QlyeLypzu0ZBBi WyplPkgFlgMeS5rnk9ibyejerO+JdsZt6zKnyKDqdhnhVsgTwvzMsNlu6MaWqtl8 fXPd5Gur6+M= =HGgh -----END PGP SIGNATURE-----
On 26.12.2006, at 8.15, Barry Warsaw wrote:
Does anything like that exist? I have a reasonably robust Python
LMTP server in the current Mailman trunk. Would it be insane to
try to marry that with deliver? ;)
I don't have plans to write LMTP server for Dovecot anytime soon, but
I don't see any problems with integrating deliver to another LMTP
server.. Of course the performance might not be as good as for a LMTP
server that doesn't need to fork()+exec()+do lots of initialization
for each delivery. But it won't be worse than Postfix+deliver :)
Le 3 janv. 07 à 22:52, Timo Sirainen a écrit :
On 26.12.2006, at 8.15, Barry Warsaw wrote:
Does anything like that exist? I have a reasonably robust Python
LMTP server in the current Mailman trunk. Would it be insane to
try to marry that with deliver? ;)I don't have plans to write LMTP server for Dovecot anytime soon,
but I don't see any problems with integrating deliver to another
LMTP server.. Of course the performance might not be as good as for
a LMTP server that doesn't need to fork()+exec()+do lots of
initialization for each delivery. But it won't be worse than Postfix +deliver :)
There is an alternative to Postfix + deliver... pll : it does lmtp
and it is really a nice piece of software...
/Xavier
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jan 3, 2007, at 5:25 PM, Xavier Beaudouin wrote:
There is an alternative to Postfix + deliver... pll : it does lmtp
and it is really a nice piece of software...
Thanks for the link! I'm happy enough now with my mail setup (and
frankly have mostly run out of time to hack on this ;) that I
probably won't investigate it, but if I ever get bugged by having to
run two Postfixes (one on the gateway box, one on the internal imap
server box) I'll look into that!
- -Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin)
iQCVAwUBRZ5fxHEjvBPtnXfVAQLZuAP/Xb+h07312ooH9vER52xB/bmsAckBpPbZ NB0hlvcJ4Dv1t7czOpXP9OtkyZNlS8TakUhNfyQmExZG+PJk25KfsElQn59MdCwJ qtrfV9Btbcl6p7cgkrETY+DWSe8orF/5G963Yc+qzRMjwPMwh26hsbuOn+T7FE7+ YuNbJBtuzqQ= =87F+ -----END PGP SIGNATURE-----
One other question; has anybody considered writing a tool that integrates Dovecot's deliver script and an LMTP server? I'm architecting my system so that my internet facing SMTP is Postfix, but the mail folders live on a different machine. Right now, I'm considering putting a highly restricted Postfix on the internal machine, which only accepts forwards from the external machine. IWBNI I could eliminate that extra Postfix process by just letting the external one deliver to an LMTP on the internal machine, which was integrated with Dovecot's deliver.
Does anything like that exist? I have a reasonably robust Python LMTP server in the current Mailman trunk. Would it be insane to try to marry that with deliver? ;)
-Barry
Dear Barry,
there is at least one interested in. Last days of November, I was searching some hints for an LMTP server, able to deliver like dovecot lda: http://www.dovecot.org/list/dovecot/2006-November/017848.html http://www.dovecot.org/list/dovecot/2006-November/017850.html http://www.dovecot.org/list/dovecot/2006-November/017854.html
As you can see, I've to setup a similar environment; in particular, the need of an lmtp server comes from hundreds of mailing-lists. Now I'm working only on a small lmtp server in C [not using inetd or similar like the one from pll] and calling deliver for each good mail, but it would be very interesting for my work trying also something different, and better.
Leonardo
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jan 5, 2007, at 12:07 PM, Leonardo Lanzi wrote:
there is at least one interested in. Last days of November, I was searching some hints for an LMTP server, able to deliver like dovecot lda: http://www.dovecot.org/list/dovecot/2006-November/017848.html http://www.dovecot.org/list/dovecot/2006-November/017850.html http://www.dovecot.org/list/dovecot/2006-November/017854.html
As you can see, I've to setup a similar environment; in particular,
the need of an lmtp server comes from hundreds of mailing-lists. Now I'm working only on a small lmtp server in C [not using inetd or similar like the one from pll] and calling deliver for each good mail, but it would be very interesting for my work trying also something different, and better.
Hi Leonardo,
One question I have is what deliver actually does over and above just
dropping the message in the right maildir. Depending on that answer,
what I'd try to do would be to recreate that functionality in Python,
either by implementing it in straight Python or by wrapping enough of
the deliver code in a Python extension module. The idea being, the
external machine's Postfix connects to the internal machine's Python-
based LMTP server, and the latter does whatever it is to make Dovecot
happy then puts the file in the maildir. That way you don't have to
run a full blown Postfix on the internal machine.
Other than supporting the Dovecot-specific extra magic that deliver
performs, I'd say the rest of the code is 99% there.
- -Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin)
iQCVAwUBRZ6IbXEjvBPtnXfVAQLOTgP/aoh6A6Iw8E2BzoDlC3BuD/heVawGGsux octYcDZJZYQ+KYQ34JCsNxYNjzJFxcMV8v6tH9+as3bptE4WxjzoqnSt1bGNKmir +y3dj5pSRPSs+zGaU3xENFFnUAzPDh6SxFknRFW6+0zGgeQWdNOZsHU2uO2A63C8 I8Bx+r01Op0= =N7GM -----END PGP SIGNATURE-----
participants (4)
-
Barry Warsaw
-
Leonardo Lanzi
-
Timo Sirainen
-
Xavier Beaudouin