Uffe Jakobsen
2011-Apr-19 10:23 UTC
[Dovecot] Running mailfront under dovecot2.x service supervision
Hello, I'm trying to run mailfront SMTP (http://untroubled.org/mailfront/) under Dovecot 2.x process/service supervision My intention was to utilize the fact that dovecot2.x seems to have some kind of generic process/service supervision as well as builtin ssl support. But I cannot get the most simple generic service setup (without ssl) to work. Currently running dovecot 2.0.11 on FreeBSD 8.1 service smtp-auth { executable = /usr/local/bin/smtpfront-qmail inet_listener smtp-auth { port = 587 ssl = no } } I have added the above to dovecot.conf Once I start dovecot everything seems fine - no errors in the log But at the first attempt to telnet to localhost port 587 - I instantly get the indication of never ending forks in the dovecot log (see below) - neither do I get the SMTP prompt that I expected in my telnet session - it just hangs. Apr 19 10:05:34 smtp-auth: Error: mailfront[43539]: bytes in: 0 bytes out: 29 Apr 19 10:05:34 smtp-auth: Error: mailfront[43541]: bytes in: 0 bytes out: 29 Apr 19 10:05:34 smtp-auth: Error: mailfront[43543]: bytes in: 0 bytes out: 29 Apr 19 10:05:34 smtp-auth: Error: mailfront[43545]: bytes in: 0 bytes out: 29 Question is if I've misconfigured something or if it is impossible to utilize dovecot2.x this way ? PS: Now I know that I could use daemontools or such for this task - but I like the dovecot ssl handling and would like to end up by wrapping this smtp service inside same dovecot ssl that I use for IMAPS. Any feedback is more than welcome - I'm stuck Thanks in advance Uffe -- View this message in context: http://old.nabble.com/Running-mailfront-under-dovecot2.x-service-supervision-tp31431267p31431267.html Sent from the Dovecot mailing list archive at Nabble.com.
Robert Schetterer
2011-Apr-19 11:48 UTC
[Dovecot] Running mailfront under dovecot2.x service supervision
Am 19.04.2011 12:23, schrieb Uffe Jakobsen:> > Hello, > > I'm trying to run mailfront SMTP (http://untroubled.org/mailfront/) under > Dovecot 2.x process/service supervision > > My intention was to utilize the fact that dovecot2.x seems to have some kind > of generic process/service supervision as well as builtin ssl support. > But I cannot get the most simple generic service setup (without ssl) to > work. > > Currently running dovecot 2.0.11 on FreeBSD 8.1 > > > service smtp-auth { > executable = /usr/local/bin/smtpfront-qmail > inet_listener smtp-auth { > port = 587 > ssl = no > } > } > > I have added the above to dovecot.conf > > Once I start dovecot everything seems fine - no errors in the log > But at the first attempt to telnet to localhost port 587 - I instantly get > the indication of never ending forks in the dovecot log (see below) - > neither do I get the SMTP prompt that I expected in my telnet session - it > just hangs. > > Apr 19 10:05:34 smtp-auth: Error: mailfront[43539]: bytes in: 0 bytes out: > 29 > Apr 19 10:05:34 smtp-auth: Error: mailfront[43541]: bytes in: 0 bytes out: > 29 > Apr 19 10:05:34 smtp-auth: Error: mailfront[43543]: bytes in: 0 bytes out: > 29 > Apr 19 10:05:34 smtp-auth: Error: mailfront[43545]: bytes in: 0 bytes out: > 29 > > Question is if I've misconfigured something or if it is impossible to > utilize dovecot2.x this way ? > > PS: Now I know that I could use daemontools or such for this task - but I > like the dovecot ssl handling and would like to end up by wrapping this smtp > service inside same dovecot ssl that I use for IMAPS. > > Any feedback is more than welcome - I'm stuck > > Thanks in advance Uffe >i ve got confused, dovecot is no smtp server what are you trying to goal ? -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
Uffe Jakobsen
2011-Apr-19 12:19 UTC
[Dovecot] Running mailfront under dovecot2.x service supervision
Robert Schetterer wrote:> > i ve got confused, dovecot is no smtp server > what are you trying to goal ? >Correct dovecot is not an smtp server. My goal is what I wrote in the initial email - but I try to explain in other words. Dovecot2.0.x has the ability to setup somewhat generic supervised services ala daemontools services if you know that tool. Dovecot uses these services internally to wrap an ordinary imap session into an ssl session. And that is exactly what I would like to do with my mailfront session - wrap it into a ssl session using the generic service setup present in dovecot 2.0.x As far as I can see - the services that you define inside dovecot.conf does not have to relate to imap at all and since smtp and imap go hand in hand in order to have a fully working email setup - then why not have dovecot control all the services ? /Uffe -- View this message in context: http://old.nabble.com/Running-mailfront-under-dovecot2.x-service-supervision-tp31431267p31432027.html Sent from the Dovecot mailing list archive at Nabble.com.
Robert Schetterer
2011-Apr-19 17:04 UTC
[Dovecot] Running mailfront under dovecot2.x service supervision
Am 19.04.2011 14:19, schrieb Uffe Jakobsen:> > > > Robert Schetterer wrote: >> >> i ve got confused, dovecot is no smtp server >> what are you trying to goal ? >> > > Correct dovecot is not an smtp server. > My goal is what I wrote in the initial email - but I try to explain in other > words. > > Dovecot2.0.x has the ability to setup somewhat generic supervised services > ala daemontools services if you know that tool. > Dovecot uses these services internally to wrap an ordinary imap session into > an ssl session. > And that is exactly what I would like to do with my mailfront session - wrap > it into a ssl session using the generic service setup present in dovecot > 2.0.x > > As far as I can see - the services that you define inside dovecot.conf does > not have to relate to imap at all and since smtp and imap go hand in hand in > order to have a fully working email setup - then why not have dovecot > control all the services ? > > /Uffe >understand , but this is a "must Timo response" i guess -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
Uffe Jakobsen
2011-Apr-19 17:19 UTC
[Dovecot] Running mailfront under dovecot2.x service supervision
Robert Schetterer wrote:> > Am 19.04.2011 14:19, schrieb Uffe Jakobsen: > > understand , but this is a "must Timo response" i guess > >I agree with you :-) -- View this message in context: http://old.nabble.com/Running-mailfront-under-dovecot2.x-service-supervision-tp31431267p31434577.html Sent from the Dovecot mailing list archive at Nabble.com.
Timo Sirainen
2011-Apr-20 15:08 UTC
[Dovecot] Running mailfront under dovecot2.x service supervision
On Tue, 2011-04-19 at 03:23 -0700, Uffe Jakobsen wrote:> I'm trying to run mailfront SMTP (http://untroubled.org/mailfront/) under > Dovecot 2.x process/service supervision > > My intention was to utilize the fact that dovecot2.x seems to have some kind > of generic process/service supervision as well as builtin ssl support. > But I cannot get the most simple generic service setup (without ssl) to > work. > > service smtp-auth { > executable = /usr/local/bin/smtpfront-qmailThe services have to be written explicitly for Dovecot, using Dovecot's lib-master library. Is smtpfront-qmail trying to use inetd-style execution? Maybe Dovecot could some day support that, but it's not really in my near future plans.> PS: Now I know that I could use daemontools or such for this task - but I > like the dovecot ssl handling and would like to end up by wrapping this smtp > service inside same dovecot ssl that I use for IMAPS.Also the service is supposed to do the SSL itself internally, so you really can't do any of this.
Possibly Parallel Threads
- What is the recommended way to move a message from one mailbox to another using CLI
- What is the recommended way to delete a message from a mailbox ?
- $MAIL environment variable to override mail_location works in v1.2.16 but not in v2.0.7 for /usr/libexec/dovecot/imap
- courier-imap to dovecot-imap migration: missing TLS_TRUSTCERTS feature
- inetd/xinetd/tcpserver support