Re: [Dovecot] Samba4 and user auth
Hi Pavel Thankx for your explanations. Also in my scenario Samba, Postfix and Dovecot are running on the same machine. I will try your config and then see if it works. But again kind regards and thankx to you and all others who came back to me with suggestions how to find the right config. --- Mit freundlichem Gruß Carsten Laun-De Lellis Hauptstrasse 13 D-67705 Trippstadt Phone: +49 6306 992140 Fax: +49 6306 992142 Mobile: +49 151 27530865 email: carsten.delel...@delellis.net http://www.linkedin.com/in/carstenlaundelellis [1] Am 2013-07-01 13:05, schrieb Pavel Herrmann: Hi On Monday 01 July 2013 12:36:39 Carsten Laun-De Lellis wrote: Hi Pavel Thankx for your reply. When you were setting up your ldap query what kind of password crypto did you specify plain ntlm gssapi or anything else? The password field in your query is userPassword or am I wrong here? the password field is hidden (only the user can see it) by default, and not stored as a unix-friendly value (anything a crypt() would understand) what I use is auth_bind (which uses user-supplied password to bind to the LDAP directory). what it means is that on every login there are 2 lookups (first one using your service DN to find the user DN, second one with your user DN to check the password) that also means that you need a password format that your LDAP can understand (mostly a plaintext password, or NTLM if your mail server is a Samba domain member). As long as you only offer IMAP/SSL I dont think plaintext (as in auth_mechanisms = plain) is an issue, security wise. as far as the service account (the one that is used to look up users) goes, I am using the default option (setting dn and dnpass variables), which I think is a simple bind. it is possible that it only works because Samba4 and dovecot run on the same machine. Pavel Herrmann I will try it again. --- Mit freundlichem Gruß Carsten Laun-De Lellis Hauptstrasse 13 D-67705 Trippstadt Phone: +49 6306 992140 Fax: +49 6306 992142 Mobile: +49 151 27530865 email: carsten.delel...@delellis.net http://www.linkedin.com/in/carstenlaundelellis [1][1] Am 2013-07-01 11:24, schrieb Pavel Herrmann: Hi On Friday 28 June 2013 07:17:39 Carsten Laun-De Lellis wrote: Hi all I am trying to set up an email Server with a Samba4 AD as user Directory. Does anybody know a good how-to to setup user auth against AD ? Or could anyone tell me how to do it? I am having an email Server up and running with openldap but want to change to Samba4 AD, because of the openchange Integration. I would appreciate any help on this topic. I have an AD/Samba4 auth for dovecot, it works the same as any LDAP would (with authenticated lookups and auth_bind) I would suggest you try it, and ask if there are any issues. Pavel Herrmann Links: -- [1] http://www.linkedin.com/in/carstenlaundelellis [1] Links: -- [1] http://www.linkedin.com/in/carstenlaundelellis
[Dovecot] Samba4 and user auth
Hi all I am trying to set up an email Server with a Samba4 AD as user Directory. Does anybody know a good how-to to setup user auth against AD ? Or could anyone tell me how to do it? I am having an email Server up and running with openldap but want to change to Samba4 AD, because of the openchange Integration. I would appreciate any help on this topic. -- Mit freundlichem Gruß Carsten Laun-De Lellis Hauptstrasse 13 D-67705 Trippstadt Phone: +49 6306 992140 Fax: +49 6306 992142 Mobile: +49 151 27530865 email: carsten.delel...@delellis.net http://www.linkedin.com/in/carstenlaundelellis [1] Links: -- [1] http://www.linkedin.com/in/carstenlaundelellis
[Dovecot] problems with sieve
Hi all I am running a simple mail server on ubuntu 12.04LTS with postfix 2.9.3 and dovecot 2.1.10. Since this morning sieve doesn't work anymore. I changed the sieve script forth and back but sieve is not working. I also replaced the sieve file with the backup, but no success. But I can't any error messages in the log files indicating any problem with sieve. The only thing I found is: Jan 10 00:03:26 vmd187 dovecot: lda(carsten.delel...@delellis.net): sieve: msgid=12155505.mmailer335539...@fritz.box: stored mail into mailbox 'Fritz!Box' -- with working sieve Jan 10 13:52:29 vmd187 dovecot: lda(carsten.delel...@delellis.net): msgid=1898328495.2554803.1357821905269.javamail@ela4-app2316.prod: saved mail to INBOX -- with sieve not working As you can see that after dovecot: lda(carsten.delel...@delellis.net): the sieve tag is missing. I have also attached my settings from 90-sieve.conf from dovecot configuration. ## ## Settings for the Sieve interpreter ## # Do not forget to enable the Sieve plugin in 15-lda.conf and 20-lmtp.conf # by adding it to the respective mail_plugins= settings. plugin { # The path to the user's main active script. # sieve = ~/.dovecot.sieve sieve = /vmail/%d/%n/dovecot.sieve # A path to a global sieve script file, which gets executed ONLY # if user's private Sieve script doesn't exist. Be sure to # pre-compile this script manually using the sievec command line # tool. sieve_global_path = /var/lib/dovecot/sieve/default.sieve # Directory for :personal include scripts for the include extension. # sieve_dir = ~/sieve sieve_dir = /vmail/%d/%n # Directory for :global include scripts for the include extension. sieve_global_dir = /var/lib/dovecot/sieve # Which Sieve language extensions are available to users. By default, # all supported extensions are available, except for deprecated # extensions or those that are still under development. Some system # administrators may want to disable certain Sieve extensions or # enable those that are not available by default. This setting can # use '+' and '-' to specify differences relative to the default. # For example `sieve_extensions = +imapflags' will enable the # deprecated imapflags extension in addition to all extensions # enabled by default. #sieve_extensions = +notify +imapflags # The separator that is expected between the :user and :detail # address parts introduced by the subaddress extension. This may # also be a sequence of characters (e.g. '--'). The current # implementation looks for the separator from the left of the # localpart and uses the first one encountered. The :user part is # left of the separator and the :detail part is right. This setting # is also used by Dovecot's LMTP service. recipient_delimiter = + # The maximum size of a Sieve script. The compiler will refuse to # compile any script larger than this limit. #sieve_max_script_size = 1M # The maximum number of actions that can be performed during a single # script execution. #sieve_max_actions = 32 # The maximum number of redirect actions that can be performed during # a single script execution. #sieve_max_redirects = 4 # The maximum number of personal Sieve scripts a single user can have. # (Currently only relevant for ManageSieve) #sieve_quota_max_scripts = 0 # The maximum amount of disk storage a single user's scripts may occupy. # (Currently only relevant for ManageSieve) #sieve_quota_max_storage = 0 } And also you can see that sieve is listening on port 4190 and managesieve on 2000 lsof -i :4190 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dovecot 2503 root 15u IPv4 14101 0t0 TCP *:sieve (LISTEN) dovecot 2503 root 16u IPv6 14102 0t0 TCP *:sieve (LISTEN) lsof -i :2000 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dovecot 2503 root 17u IPv4 14103 0t0 TCP *:cisco-sccp (LISTEN) dovecot 2503 root 18u IPv6 14104 0t0 TCP *:cisco-sccp (LISTEN) I would appreciate any hints. Regards, Carsten Laun-De Lellis Hauptstrasse 13 D-67705 Trippstadt Phone: +49 6306 992140 Fax: +49 6306 992142 Mobile: +49 151 27530865 email: carsten.delel...@delellis.net http://www.linkedin.com/in/carstenlaundelellis
[Dovecot] dovecot auth against AD on samba4
Hi group I am currently running a mail server on ubuntu 11.04 with postfix 2.8.5, dovecot dovecot 2.0.13 and openldap 2.4.23. I have now read about sogo and I am thinking about installing it because of it's native outlook support capabilities. The ZEG appliance wouldn't be an option for me because I use a virtual server from a provider where I can't install my own vm or even an iso. When I go thru the documentation there is a part with installing OpenChange based on samba4. As far as I understood the OpenChange authentication is against the samba4 AD. Actually there is no support in syncing the AD against an OpenLdap Server and I would have to change the OpenLdap port because the AD is listening on port 389. To change the port wouldn't be a big deal, but what i was thinking about to run the dovecot auth also against the samba 4 AD. I searched around on the internet but didn't find a doc yet how to do that. Does anyone here could provide me with a link or a how-to ? Thanks very much in advance. Regards, Carsten Laun-De Lellis Hauptstrasse 13 D-67705 Trippstadt Phone: +49 6306 992140 Fax: +49 6306 992142 Mobile: +49 151 27530865 email: carsten.delel...@delellis.net
Re: [Dovecot] dovecot auth against AD on samba4
Dear Bob Thankx for your hint. I tried with jxplorer to connect to the AD ldap and I am pretty sure that I will get it up and running like I did with the openldap server. Carsten -Original Message- From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On Behalf Of Bob Miller Sent: Mittwoch, 24. Oktober 2012 18:05 To: dovecot@dovecot.org Subject: Re: [Dovecot] dovecot auth against AD on samba4 I don't have it in production yet because there are other things I am still trying to add to samba4, but my test server has dovecot authenticating against samba4. Without openchange or any other non-native mechanism. Dovecot supports authenticating against ldap, the settings are in your auth-ldap.conf file. Samba4/Active Directory is just another ldap implementation. between the config files and the wiki, I believe all the documentation you need is there... -- Computerisms Bob Miller 867-334-7117 / 867-633-3760 http://computerisms.ca On Wed, 2012-10-24 at 11:48 +0200, Carsten Laun-De Lellis wrote: Hi group I am currently running a mail server on ubuntu 11.04 with postfix 2.8.5, dovecot dovecot 2.0.13 and openldap 2.4.23. I have now read about sogo and I am thinking about installing it because of it's native outlook support capabilities. The ZEG appliance wouldn't be an option for me because I use a virtual server from a provider where I can't install my own vm or even an iso. When I go thru the documentation there is a part with installing OpenChange based on samba4. As far as I understood the OpenChange authentication is against the samba4 AD. Actually there is no support in syncing the AD against an OpenLdap Server and I would have to change the OpenLdap port because the AD is listening on port 389. To change the port wouldn't be a big deal, but what i was thinking about to run the dovecot auth also against the samba 4 AD. I searched around on the internet but didn't find a doc yet how to do that. Does anyone here could provide me with a link or a how-to ? Thanks very much in advance. Regards, Carsten Laun-De Lellis Hauptstrasse 13 D-67705 Trippstadt Phone: +49 6306 992140 Fax: +49 6306 992142 Mobile: +49 151 27530865 email: carsten.delel...@delellis.net
[Dovecot] Error: User doesn't have home dir set, disabling duplicate database
Hi all I receive the following error in my mail.log. Does anybody know how to configure dovecot to get rid of this ? I have one server up and running with postfix, dovecot and a mysql backend. The error above happens on another server with postfix, dovecot and a ldap backend. Any hints ? Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 Fax: +49 (6306) 992142 email:mailto:carsten.delel...@delellis.net carsten.delel...@delellis.net
Re: [Dovecot] Error: User doesn't have home dir set, disabling duplicate database
Hi First of all thank you for helping me to fix the problem. I am trying out ldap to get used to it. As I wrote I have a mysql setup up and running. Here's the output of doveconf -n: # 2.1.9: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.18-028stab099.3 x86_64 Ubuntu 11.04 vzfs auth_mechanisms = plain login disable_plaintext_auth = no hostname = smtp.example.com mail_location = maildir:/vmail/%d/%n managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave namespace { inbox = yes location = maildir:/vmail/%d/%n prefix = separator = / subscriptions = yes type = private } passdb { args = /scripts/ldap/mail/auth.ldap driver = ldap } plugin { recipient_delimiter = + sieve = /vmail/%d/%n/dovecot.sieve sieve_dir = /vmail/%d/%n sieve_global_dir = /var/lib/dovecot/sieve sieve_global_path = /var/lib/dovecot/sieve/default.sieve } postmaster_address = r...@example.com protocols = imap sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { mode = 0660 user = vmail } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } process_min_avail = 0 service_count = 1 vsz_limit = 64 M } ssl_cert = /certs/mail/mailpublic.pem ssl_key = /certs/mail/mailkey.pem userdb { args = /scripts/ldap/mail/auth.ldap driver = ldap } protocol lda { mail_plugins = sieve } protocol sieve { mail_max_userip_connections = 10 managesieve_implementation_string = Dovecot Pigeonhole managesieve_logout_format = bytes=%i/%o managesieve_max_line_length = 65536 And here is also my auth ldap file: uris = ldap://smtp.example.com dn = cn=admin, dc=example, dc=com dnpass = secret tls = no base = ou=mailuser,dc=example,dc=com ldap_version = 3 user_attrs = home=/vmail/%d/%n,=uid=5000,=gid=5000 user_filter = ((objectClass=PFMailAccount)(pfMail=%u)) pass_attrs = pfClearPassword=password pass_filter = ((objectClass=PFMailAccount)(pfMail=%u)) default_pass_scheme = PLAIN Again thank you very much for any help. Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 Fax: +49 (6306) 992142 email: carsten.delel...@delellis.net -Original Message- From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On Behalf Of Noel Butler Sent: Sonntag, 16. September 2012 13:34 To: dovecot@dovecot.org Subject: Re: [Dovecot] Error: User doesn't have home dir set, disabling duplicate database Hi, On Sun, 2012-09-16 at 12:48 +0200, Carsten Laun-De Lellis wrote: Hi all I receive the following error in my mail.log. Dont use ldap, but, you should supply the output of dovecot -n it might help those familiar with ldap setups assist you Does anybody know how to configure dovecot to get rid of this ? I have one server up and running with postfix, dovecot and a mysql backend. The error above happens on another server with postfix, dovecot and a ldap backend. should use mysql :)
[Dovecot] Couldn't drop privileges: User is missing UID (see mail_uid setting)
Hi all I hope anyone could help me out with my problem regarding the user_id settings. I am running my mail servers just for fun and I am not a professional mail admin. After I am using postfix and dovecot for my mail servers with a mysql backend for the last 2 years I have tried to set up an installation with a ldap backend. I followed the how-to from the Postfix Book and now I have always the following error message: Couldn't drop privileges: User is missing UID (see mail_uid setting) This error message occurs whenever I try to connect via a mail client. System emails were delivered the way I expected. So I assume postfix is working fine. The ldap search I use for user authentication is as follows: uris = ldap://myserver.com dn = cn=admin, dc=mydomain, dc=com dnpass = secure tls = no base = ou=mailuser,dc=mydomain,dc=com ldap_version = 3 user_attrs = pfMailMessageStore=home user_filter = ((objectClass=PFMailAccount)(pfMail=%u)) pass_attrs = pfClearPassword=password,pfMailMessageStore=userdb_home pass_filter = ((objectClass=PFMailAccount)(pfMail=%u)) default_pass_scheme = PLAIN user_global_uid = 5000 user_global_gid = 5000 I am using dovecot 2.1.9, postfix 2.8.5 and openldap 2.4.23 I would appreciate any help or tipps. ~ Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 Fax: +49 (6306) 992142 email:mailto:carsten.delel...@delellis.net carsten.delel...@delellis.net
[Dovecot] sieve logging
Hi all I have installed dovecot 2.0.8 and sieve. Everything works fine, but I wonder how can I log sieve actions? Any help? Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email:mailto:carsten.delel...@delellis.net carsten.delel...@delellis.net
[Dovecot] Seperator
Hi all I hope to get some help on the separator. I am sure that I hava a wrong understanding what the separator is. I thaught the separator is the delimiter within the imap folder structure. For example: Imap folder structure: folder Flights, subfolder Lufthansa If the delimiter is . the ls a command should result: .Flights .Flights.Lufthansa If delimiter is / Flights Flights/Lufthansa I tried several delimiters but only the . Works. My dovecot.conf file: mail_location = maildir:/vmail/%d/%n namespace { type = private separator = / location = maildir:/vmail/%d/%n inbox = yes subscriptions = yes } I would appreciate any help Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email:mailto:carsten.laun-delel...@delellis.net carsten.laun-delel...@delellis.net
[Dovecot] Error message with static userdb
Hi all I am trying to migrate to dovecot 2.0.9 Dovecot starts without warnings but when I try to connect with a client I always got this error message in the log file: Feb 10 12:57:36 v37143 dovecot: master: Dovecot v2.0.9 starting up (core dumps disabled) Feb 10 12:57:56 v37143 dovecot: auth: Fatal: static userdb: Empty key (=) Feb 10 12:57:56 v37143 dovecot: master: Error: service(auth): command startup failed, throttling Feb 10 12:58:31 v37143 dovecot: imap-login: Error: Timeout waiting for handshake from auth server. my pid=17537, input bytes=0 Feb 10 12:58:56 v37143 dovecot: auth: Fatal: static userdb: Empty key (=) Feb 10 12:58:56 v37143 dovecot: master: Error: service(auth): command startup failed, throttling Feb 10 12:59:26 v37143 dovecot: imap-login: Error: Timeout waiting for handshake from auth server. my pid=17537, input bytes=0 Feb 10 12:59:26 v37143 dovecot: imap-login: Disconnected (no auth attempts): rip=217.91.177.10, lip=89.202.2.143 This is the output of dovecot n: # 2.0.9: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.18-028stab070.14 x86_64 Ubuntu 10.04.1 LTS reiserfs auth_mechanisms = plain login disable_plaintext_auth = no hostname = v37143.1blu.de mail_location = maildir:/vmail/%d/%n managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date namespace { inbox = yes location = maildir:/vmail/%d/%n prefix = separator = / type = private } passdb { args = /scripts/sql/dovecot/user_auth.sql driver = sql } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_global_dir = /var/lib/dovecot/sieve/global sieve_global_path = /var/lib/dovecot/sieve/default.sieve } postmaster_address = r...@delellis.net protocols = imap service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { mode = 0660 user = vmail } } ssl_cert = /certs/mail/mailpublic.pem ssl_key = /certs/mail/mailkey.pem userdb { args = uid=vmail gid=vmail home=/var/vmail/%d/%n allow_all_users = yes driver = static } protocol lda { mail_plugins = sieve } Any ideas ? Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email:mailto:carsten.laun-delel...@delellis.net carsten.laun-delel...@delellis.net
Re: [Dovecot] dovecot 2.08 start script
Hi Daniel Thank you for your hint. I will try that. Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.laun-delel...@delellis.net Daniel Senie If you look in the sources you unpacked, under doc you'll find dovecot-initrd.sh I copied that into /etc/init.d/dovecot and it worked well in my CentOS/RedHat environment. On Dec 20, 2010, at 11:33 PM, Carsten Laun-De Lellis wrote: Hi Could anyone provide me with a start script for dovecot 2.08 that could be placed in /etc/init.d ? I did an installation from the sources and followed the documentation at dovecot.org. Thankx in advance. Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email:mailto:carsten.laun-delel...@delellis.net carsten.laun-delel...@delellis.net
[Dovecot] dovecot 2.08 start script
Hi Could anyone provide me with a start script for dovecot 2.08 that could be placed in /etc/init.d ? I did an installation from the sources and followed the documentation at dovecot.org. Thankx in advance. Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email:mailto:carsten.laun-delel...@delellis.net carsten.laun-delel...@delellis.net
[Dovecot] migration to dovecot 2.0
Hi everyone I am not the dovecot guru and i would appreciate if anyone could help me on my problems. I am running a mail server on dovecot 1.2 and want to migrate to dovecot 2. I have edited the conf file and now using the new keywords and got everything fixed but the following error message still exists, when i try to start dovecot. doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/dovecot.conf line 1036: Unknown setting: auth_socket doveconf: Error: managesieve-login: dump-capability process returned 89 doveconf: Fatal: Error in configuration file ./dovecot.conf line 1036: Unknown setting: auth_socket My conf file looks like auth_socket listen { master { # Master socket provides access to userdb information. It's typically # used to give Dovecot's local delivery agent access to userdb so it # can find mailbox locations. path = /var/run/dovecot/auth-master mode = 0600 # Default user/group is the one who started dovecot-auth (root) user = vmail #group = } client { # The client socket is generally safe to export to everyone. Typical use # is to export it to your SMTP server so it can do SMTP AUTH lookups # using it. path = /var/spool/postfix/private/auth # path = /var/run/dovecot/auth-client mode = 0660 user = postfix group = postfix } } I would appreciate any hints and help. Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.laun-delel...@delellis.net
Re: [Dovecot] migration to dovecot 2.0
Hi Thomas Thank you very much for your hints, but they didn't help me out. I fixed the problem by replacing the auth_master in the 1.2 config with service auth { unix_listener /var/spool/postfix/private/auth { group = vmail mode = 0666 user = vmail } unix_listener auth-master { mode = 0666 } } for the 2.0 config. But again thank you very much. Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.laun-delel...@delellis.net Thomas Leuxner Am 26.08.2010 um 14:21 schrieb Carsten Laun-De Lellis: doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/dovecot.conf line 1036: Unknown setting: auth_socket doveconf: Error: managesieve-login: dump-capability process returned 89 doveconf: Fatal: Error in configuration file ./dovecot.conf line 1036: Unknown setting: auth_socket My conf file looks like Hi Carsten, there are two threads, one day old, dealing with similar migration issues around changed settings: http://www.dovecot.org/list/dovecot/2010-August/052137.html http://www.dovecot.org/list/dovecot/2010-August/052125.html And this one from the release notes: http://wiki2.dovecot.org/Upgrading/2.0 Regards Thomas
[Dovecot] New problem with migration to 2.0
Hi guys After fixing my master_auth problem i have one error message left and i don't know what to do. The message from dovecot -n is: service auth { unix_listener /var/spool/postfix/private/auth { group = vmail mode = 0666 user = vmail } unix_listener auth-master { mode = 0666 } } My conf file looks like userdb { driver=static args = uid=1 gid=1 home=/mail/%d/%n allow_all_users=yes } As you can see pretty simple, but for me it looks like that the driver=static won't be accepted. Does anyone know which driver to use here ? Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.laun-delel...@delellis.net
Re: [Dovecot] New problem with migration to 2.0
Sorry In my first email i posted the wrong output from dovecot -n. Here it comes again: userdb { args = uid=1 gid=1 home=/mail/%d/%n allow_all_users=yes } verbose_ssl = yes doveconf: Error: userdb is missing driver doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/dovecot.conf: userdb is missing driver Sorry again. Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.laun-delel...@delellis.net Carsten Laun-De Lellis Hi guys After fixing my master_auth problem i have one error message left and i don't know what to do. The message from dovecot -n is: service auth { unix_listener /var/spool/postfix/private/auth { group = vmail mode = 0666 user = vmail } unix_listener auth-master { mode = 0666 } } My conf file looks like userdb { driver=static args = uid=1 gid=1 home=/mail/%d/%n allow_all_users=yes } As you can see pretty simple, but for me it looks like that the driver=static won't be accepted. Does anyone know which driver to use here ? Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.laun-delel...@delellis.net
Re: [Dovecot] New problem with migration to 2.0
Hi Thomas Thank you very much. To wrap the lines does the trick. But as always my dovecot -n is now: r...@s04:/usr/local/etc/dovecot# dovecot -n # 2.0.0: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-24-generic i686 Ubuntu 10.04.1 LTS auth_mechanisms = plain login disable_plaintext_auth = no log_timestamp = %Y-%m-%d %H:%M:%S mail_location = maildir:/mail/%d/%n/Maildir mail_privileged_group = mail managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date spamtest spamtestplus virustest namespace { inbox = yes location = prefix = INBOX. separator = . } passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf driver = sql } protocols = imap service auth { unix_listener /var/spool/postfix/private/auth { group = vmail mode = 0666 user = vmail }o unix_listener auth-master { mode = 0666 } } ssl_cert = /keys/mail.pem ssl_key = /keys/mail.pem userdb { args = uid=1 gid=1 home=/mail/%d/%n allow_all_users=yes driver = static } verbose_ssl = yes protocol lda { auth_socket_path = /var/run/dovecot/auth-master log_path = /var/log/mail.log postmaster_address = postmas...@delellis.net } No more errors ! But when i try to start dovecot the following message appears: r...@s04:/usr/local/etc/dovecot# /etc/init.d/dovecot start Starting DovecotFatal: service(imap-login) User doesn't exist: dovenull But i am never using a user like dovenull. Any ideas ?? Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.laun-delel...@delellis.net Thomas Leuxner Am 26.08.2010 um 15:45 schrieb Carsten Laun-De Lellis: verbose_ssl = yes doveconf: Error: userdb is missing driver doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/dovecot.conf: userdb is missing driver See except from ' /etc/dovecot/conf.d/auth-static.conf.ext' #userdb { # driver = static # args = uid=vmail gid=vmail home=/home/%u #} Not sure why it is not applied, as 'doveconf -n' gives parsed output, so it seems it does not understand the syntax used below: userdb { driver=static args = uid=1 gid=1 home=/mail/%d/%n allow_all_users=yes } Maybe wrap it to a new line like: userdb { driver = static args = uid=1 gid=1 home=/mail/%d/%n allow_all_users=yes }
[Dovecot] Sieve Installation
Hallo Versuche unter OpenSuse11.2, 64bit sieve zu installieren. Konfig: OpensSuse 11.2, dovecot 1.2.9, postfix , spamassassin, amavis, mysql Wenn ich versucht dovecot sieve zu übersetzen bekomme ich immer folgende Fehlermeldung: Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.laun-delel...@delellis.net
[Dovecot] Sieve Installation
Hallo Ich habe ein Problem bei der Installation von Sieve: Konfiguration: Opensuse 11.2 64bit, dovecot 1.2.9, postfix, amavis, spamassassin. Wenn ich versucht dovecot sieve zu übersetzen bekomme ich immer folgende Fehlermeldung. Making all in libsieve make[1]: Entering directory `/download/dovecot-sieve-1.1.8/src/libsieve' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I -I/src/lib -I../../src -g -O2 -DENABLE_REGEX -MT addr.lo -MD -MP -MF .deps/addr.Tpo -c -o addr.lo addr.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I -I/src/lib -I../../src -g -O2 -DENABLE_REGEX -MT addr.lo -MD -MP -MF .deps/addr.Tpo -c addr.c -fPIC -DPIC -o .libs/addr.o In file included from addr.y:35: ../../src/xmalloc.h:19:17: error: lib.h: No such file or directory make[1]: *** [addr.lo] Error 1 make[1]: Leaving directory `/download/dovecot-sieve-1.1.8/src/libsieve' make: *** [all-recursive] Error 1 Wäre echt toll, wenn mir jemand einen Tipp geben könnte. Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.laun-delel...@delellis.net
[Dovecot] How to install sieve
Hi all I do have a problem. I have an installation on opensuse 11.2 with postfix, amavis, spamassassin and dovecot 1.2.9 with a mysql authtentication backend. Everything works fine. I want now to install sieve, but i failed all the time. I downloaded dovecot-1.2-sieve-0.1.17 and followed the installation how-to. First when i tried to ./configure the installation i was always asked for dovecot-config. I managed this problem with a symlink. But when i try to run make i always got the following error message. I would appreciate any help. Kind regards, Carsten Laun-De Lellis ../../sieve-result.h:143: error: expected declaration specifiers or â...â before âboolâ In file included from cmd-vacation.c:27: ../../sieve-message.h:18: warning: empty declaration ../../sieve-message.h:27: error: expected declaration specifiers before âpool_tâ In file included from cmd-vacation.c:29: ext-vacation-common.h:13: error: storage class specified for parameter âvacation_commandâ ext-vacation-common.h:19: error: storage class specified for parameter âvacation_operationâ ext-vacation-common.h:23: error: storage class specified for parameter âvacation_extensionâ cmd-vacation.c:37: error: storage class specified for parameter âvacation_days_tagâ cmd-vacation.c:38: error: storage class specified for parameter âvacation_subject_tagâ cmd-vacation.c:39: error: storage class specified for parameter âvacation_from_tagâ cmd-vacation.c:40: error: storage class specified for parameter âvacation_addresses_tagâ cmd-vacation.c:41: error: storage class specified for parameter âvacation_mime_tagâ cmd-vacation.c:42: error: storage class specified for parameter âvacation_handle_tagâ cmd-vacation.c:53: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âcmd_vacation_registeredâ cmd-vacation.c:56: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âcmd_vacation_pre_validateâ cmd-vacation.c:58: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âcmd_vacation_validateâ cmd-vacation.c:60: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âcmd_vacation_generateâ cmd-vacation.c:63: error: parameter âvacation_commandâ is initialized cmd-vacation.c:63: error: redefinition of parameter âvacation_commandâ ext-vacation-common.h:13: note: previous definition of âvacation_commandâ was here cmd-vacation.c:66: error: âFALSEâ undeclared (first use in this function) cmd-vacation.c:66: error: (Each undeclared identifier is reported only once cmd-vacation.c:66: error: for each function it appears in.) cmd-vacation.c:66: warning: excess elements in struct initializer cmd-vacation.c:66: warning: (near initialization for âvacation_commandâ) cmd-vacation.c:66: warning: excess elements in struct initializer cmd-vacation.c:66: warning: (near initialization for âvacation_commandâ) cmd-vacation.c:67: error: âcmd_vacation_registeredâ undeclared (first use in this function) cmd-vacation.c:67: warning: excess elements in struct initializer cmd-vacation.c:67: warning: (near initialization for âvacation_commandâ) cmd-vacation.c:68: error: âcmd_vacation_pre_validateâ undeclared (first use in this function) cmd-vacation.c:68: warning: excess elements in struct initializer cmd-vacation.c:68: warning: (near initialization for âvacation_commandâ) cmd-vacation.c:69: error: âcmd_vacation_validateâ undeclared (first use in this function) cmd-vacation.c:69: warning: excess elements in struct initializer cmd-vacation.c:69: warning: (near initialization for âvacation_commandâ) cmd-vacation.c:70: error: âcmd_vacation_generateâ undeclared (first use in this function) cmd-vacation.c:70: warning: excess elements in struct initializer cmd-vacation.c:70: warning: (near initialization for âvacation_commandâ) cmd-vacation.c:72: warning: excess elements in struct initializer cmd-vacation.c:72: warning: (near initialization for âvacation_commandâ) cmd-vacation.c:80: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âcmd_vacation_validate_number_tagâ cmd-vacation.c:83: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âcmd_vacation_validate_string_tagâ cmd-vacation.c:86: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âcmd_vacation_validate_stringlist_tagâ cmd-vacation.c:89: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âcmd_vacation_validate_mime_tagâ cmd-vacation.c:95: error: storage class specified for parameter âvacation_days_tagâ cmd-vacation.c:95: error: parameter âvacation_days_tagâ is initialized cmd-vacation.c:95: error: redefinition of parameter âvacation_days_tagâ cmd-vacation.c:37: note: previous definition of âvacation_days_tagâ was here cmd-vacation.c:97: warning: excess elements in struct initializer cmd-vacation.c:97: warning: (near initialization for âvacation_days_tagâ) cmd-vacation.c:98: error: âcmd_vacation_validate_number_tagâ undeclared (first use in this function) cmd-vacation.c:98: warning: excess elements in struct initializer cmd-vacation.c:98: warning: (near
Re: [Dovecot] A dovecot book ?
Am 03.03.2010 23:55, schrieb Curtis Maloney: On 03/04/10 09:10, Noel Butler wrote: There is only one authoritative source who should be writing it if a book is to be written and we all know who that author should be. I disagree. In the time I've been watching/using Dovecot (since the 0.99 series) Timo has had many cases of improving Dovecot [even if it's just a config option name] because of the points of view of other people. For many reasons, I thinks it would be better if someone else [preferably someone with a long history with Dovecot, of course] were to write the book, and Timo signed off on it. But for what version, as 1.x is in wide usage and will be for a long time, 2.0 is almost upon us, much of 1.x is not applicable to 2.x , so should Timo be writing 2 books? One excessively big book? Where is he to find time to write this whilst developing dovecot, and heaven forbid, enjoy the outside world with a real life :) Given a sizable portion of understanding Dovecot is understanding email in general, I wonder just how much of the book would bifurcate for covering the differing versions... -- Curtis Maloney Hi all I have never thought on so many comments to my question and i am surely surprised about the direction how this discussion went. I totally agree with the one of you who mentioned the online documentation and the wiki. I know that it exists and i used it for setting up my mail server, but ... as i said, i am old fashioned and i can better work with books. It's just a personal preferrence. Well, i also know that many developers are still working on dovecot, especially Timo and that always new features, configuration options and so on are added, but ... it's the same with other applications in the community (e.g. postfix, apache, OpenLDAP, samba ) and for all those applications books are available, and that was the reason, why i asked for a book. And to be honest. When i go thru the documentation part, most of the documents were not changed for at least 6 months. I am sure that between the writing and the publishing of a book new dovecot features will be introduced and not covered in the book. But everyone working with books knows that they can't be up to date, but they are a real good basis for me to start with the fundamentals and then add this information by new data from the web. And guys just to mention one big advantage of a book is, you can read it offline easily!! But there is one thing i want to mention at this point. Even if you agree with me about having a book or not. What i really like is the discussion about and the chance to do so, because dovecot is opensource. And for me this is in the end the result behind the idea of open source. Everyone has the chance to contribute, either by code, by suggestions, by comments . And that for me is more important than to have a book or not. Thank you all for your comments. Regards, -- Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.delel...@delellis.net
[Dovecot] A dovecot book ?
Hi all I am using dovecot at home for privat use and i found a lot of documentation here on the web. But you know, i am an old fashion guy and i like books. Is there a book on the market that will help me with understanding dovecot more and the configuration options ? Thanks in advance for any suggestions. -- Regards, Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.delel...@delellis.net
Re: [Dovecot] A dovecot book ?
Am 03.03.2010 11:39, schrieb Stan Hoeppner: Carsten Laun-De Lellis put forth on 3/3/2010 4:09 AM: Hi all I am using dovecot at home for privat use and i found a lot of documentation here on the web. But you know, i am an old fashion guy and i like books. Is there a book on the market that will help me with understanding dovecot more and the configuration options ? This book apparently covers some of Dovecot: http://www.amazon.com/Pro-Open-Source-Mail-Enterprise/dp/159059598X It's geared toward building a complete mail server solution, so it's not dedicated to Dovecot. How much of Dovecot it covers I don't know, as I've not read it. It was apparently published in Sept 2006, 3.5 years ago. Standard caution applies: some/much of the technical information may now be incorrect as things have changed in the software over the 4+ year period since the author put pen to paper, so to speak. This is the most recent book I could find that covers a little bit of Dovecot. There doesn't appear to be a Book of Dovecot. Dovecot is covered a bit in The Book of Postfix, but it was published in 2005, so it will be even farther out of date. The book linked above may be worth the read for general architectural setup. Thank you for your quick reply. I already have two postfix books one published in 2007 another one in 2009. Both covers dovecot in examples how to set up a mail server for enterprises, but this is not what i am looking for. I am looking for an equivalent to the courier and cyrus books on the market. But again thank you for your reply. Regards, Carsten -- Mit freundlichem Gruß Carsten Laun-De Lellis Dipl.-Ing. Elektrotechnik Certified Information Systems Auditor (CISA) Hauptstrasse 13 D-67705 Trippstadt Phone: +49 (6306) 992140 Mobile: +49 (151) 27530865 email: carsten.delel...@delellis.net