[Dovecot] no protocols inhibits dovecot --exec-mail
Hi,
Running the current debian unstable version (1.0.beta2) dovecot tells me: $ /usr/sbin/dovecot --exec-mail imap Error: No protocols given in configuration file
Could this be changed? I don't need dovecot listening on any ports but would still like to allow this usage... Or should I configure protocols but no listen addresses instead? [if so the debian package needs an update because it filters out the case of no protocols and doesn't start dovecot in that case]
johannes
On 2006-02-11 12:11:11 +0100, Johannes Berg wrote:
Running the current debian unstable version (1.0.beta2) dovecot tells me: $ /usr/sbin/dovecot --exec-mail imap Error: No protocols given in configuration file
Could this be changed? I don't need dovecot listening on any ports but would still like to allow this usage... Or should I configure protocols but no listen addresses instead? [if so the debian package needs an update because it filters out the case of no protocols and doesn't start dovecot in that case]
just create a proper configuration file but do not start the master process. than it wouldnt be listening anywhere. i dont think the maintainer of the package has to do anything there. just disable the init script (rcconf e.g. you will know the debian way)
just my 2 cents
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
On Sat, 2006-02-11 at 14:20 +0100, Marcus Rueckert wrote:
just create a proper configuration file but do not start the master process. than it wouldnt be listening anywhere.
sure.
i dont think the maintainer of the package has to do anything there. just disable the init script (rcconf e.g. you will know the debian way)
yeah but the maintainer must have followed some plan when making the package not start the master process when protocols is unset...
johannes
On 2006-02-11 14:44:25 +0100, Johannes Berg wrote:
just create a proper configuration file but do not start the master process. than it wouldnt be listening anywhere.
sure.
i dont think the maintainer of the package has to do anything there. just disable the init script (rcconf e.g. you will know the debian way)
yeah but the maintainer must have followed some plan when making the package not start the master process when protocols is unset...
err... you just reported that you _have_to_ set the protocols. so i dont get your point. if the service is disabled ... why should the debian init script care about the config at all? if you dont want any listening just dont start it. or do i miss anything here?
i just double checked it. with a valid config you dont need a running dovecot for using "/usr/sbin/dovecot --exec-mail imap". so why make it more complicated than needed?
hope this helps
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
On Sat, 2006-02-11 at 15:30 +0100, Marcus Rueckert wrote:
err... you just reported that you _have_to_ set the protocols. so i dont get your point. if the service is disabled ... why should the debian init script care about the config at all? if you dont want any listening just dont start it. or do i miss anything here?
right.
i just double checked it. with a valid config you dont need a running dovecot for using "/usr/sbin/dovecot --exec-mail imap". so why make it more complicated than needed?
right.
Ok see, the point is the following:
- debian implements not starting the service when protocols is empty
- I want to not start the service, and use --exec-mail
so my question here is: why is --exec-mail prohibited with protocols empty, when this doesn't stop anything anyway, since users could just as well start /path/to/imap with an appropriate environment?
The debian package implements not starting the service when protocols is empty for convenience... Sure, I could just inhibit starting the service manually, if there's a reason to prohibit --exec-mail with empty protocols. If there's no reason, well, I'd like to use debian's convenience facilities :)
johannes
Greetings,
I've been trying to configure Dovecot to work with Postgres following the directions located at http://wiki.dovecot.org/DovecotPostgresql. I'm receiving the error:
Starting mail server: dovecotFatal: Error in configuration file /etc/dovecot/dovecot.conf line 204: Expecting '='
The line in question (204) is the 'auth default {'
Below is a copy of the relative lines:
default_mail_env = maildir:/home/%u/Maildir auth default { passdb sql { args = /usr/local/etc/dovecot-pgsql.conf }
userdb sql {
args = /usr/local/etc/dovecot-pgsql.conf
}
}
Can anyone give insight as to what the issue is? Additionally, I did try downloading the latest version but the 'make' failed with:
../lib-sql/libsql.a(sql-drivers-register.o)(.text+0x9): In function
sql_drivers_register_all': /home/dkidd/dovecot-1.0.beta3/src/lib-sql/sql-drivers-register.c:6: undefined reference to
driver_yes_db'
I've been googling, searching archives, etc. No luck. Any ideas?
Thanks.
On Sat, 2006-02-11 at 10:12 -0800, Diona Kidd wrote:
Greetings,
I've been trying to configure Dovecot to work with Postgres following the directions located at http://wiki.dovecot.org/DovecotPostgresql. I'm receiving the error:
Starting mail server: dovecotFatal: Error in configuration file /etc/dovecot/dovecot.conf line 204: Expecting '='
The instructions are for 1.0betas, 0.99.x's configuration is quite different.
Can anyone give insight as to what the issue is? Additionally, I did try downloading the latest version but the 'make' failed with:
../lib-sql/libsql.a(sql-drivers-register.o)(.text+0x9): In function
sql_drivers_register_all': /home/dkidd/dovecot-1.0.beta3/src/lib-sql/sql-drivers-register.c:6: undefined reference to
driver_yes_db'
Don't give "--with-sql-drivers" to configure. I suppose I'll have to fix this though..
On 11.2.2006 16:55, "Johannes Berg" <johannes@sipsolutions.net> wrote:
so my question here is: why is --exec-mail prohibited with protocols empty, when this doesn't stop anything anyway, since users could just as well start /path/to/imap with an appropriate environment?
The error message is useful when starting dovecot without --exec-mail. I just hadn't thought of --exec-mail while writing that check. Fixed in CVS.
On Sat, 2006-02-11 at 22:40 +0200, Timo Sirainen wrote:
The error message is useful when starting dovecot without --exec-mail. I just hadn't thought of --exec-mail while writing that check. Fixed in CVS.
Hmm. I'm running rc2 from debian now, and if I have protocols = in my config file, dovecot --exec-mail imap segfaults.
johannes
On Tue, 2006-07-11 at 21:24 +0200, Johannes Berg wrote:
On Sat, 2006-02-11 at 22:40 +0200, Timo Sirainen wrote:
The error message is useful when starting dovecot without --exec-mail. I just hadn't thought of --exec-mail while writing that check. Fixed in CVS.
Hmm. I'm running rc2 from debian now, and if I have protocols = in my config file, dovecot --exec-mail imap segfaults.
Now really fixed in CVS.
On Sat, 11 Feb 2006, Johannes Berg wrote:
yeah but the maintainer must have followed some plan when making the package not start the master process when protocols is unset...
the reason is both the init script and the master dovecot binary are in the dovecot-common package while the imap and pop3 programs are in dovecot-imapd and dovecot-pop3d respectively. It is those packages which add the relevant bits to the protocols line.
If the protocols line is empty, it means neither dovecot-imapd or dovecot-pop3d are installed in which case you don't want dovecot to start.
I admit I hadn't thought about your use case.
-- Jaldhar H. Vyas <jaldhar@debian.org> La Salle Debain - http://www.braincells.com/debian/
participants (5)
-
Diona Kidd
-
Jaldhar H. Vyas
-
Johannes Berg
-
Marcus Rueckert
-
Timo Sirainen