[Dovecot] Namespace Mistake
Hello,
i try to setup the Dovecot Tutorial on
http://wiki2.dovecot.org/HowTo/VirtualUserFlatFilesPostfix
But when send message i become the follow error message:
# dovecot -n # 2.2.9: /etc/dovecot/dovecot.conf # OS: Linux 3.10.23-xxxx-std-ipv6-64 x86_64 Gentoo Base System release 2.2 debug_log_path = /var/log/dovecot-debug.log info_log_path = /var/log/dovecot-info.log log_path = /var/log/dovecot.log mail_debug = yes mail_location = maildir:~/maildir mail_plugins = acl 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 { hidden = no inbox = yes location = prefix = separator = / type = private } namespace { list = yes location = maildir:/var/vmail/public:LAYOUT=fs:INDEX=~/public prefix = Public/ separator = / subscriptions = no type = public } namespace inbox { location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { args = username_format=%u /var/vmail/auth.d/%d/passwd driver = passwd-file } plugin { acl = vfile:/var/vmail/conf.d/%d/acls:cache_secs=300 sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_global_dir = /var/vmail/conf.d/%d/sieve } protocols = imap lmtp service auth-worker { user = dovecot } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } user = dovecot } service imap-login { inet_listener imap { address = 37.187.103.194 port = 143 } inet_listener imaps { port = 0 } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0666 user = postfix } } ssl_cert =
Thank you for help & Nice Day Silvio
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 3 Feb 2014, Silvio Siefke wrote:
Feb 03 18:06:09 lmtp(8386, webmaster@silviosiefke.com): Error: user webmaster@silviosiefke.com: Initialization failed: namespace configuration error: Duplicate namespace prefix: ""
Those two namespaces should have the same name, because the prefix is the same:
namespace { hidden = no inbox = yes location = prefix = separator = / type = private }
namespace inbox { location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = }
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUvCTTHD1/YhP6VMHAQIlJQgAs9odls12Rplx6v4O4ctk+uTr4VmlxqG3 EVvCqaWYMmG/9HtCEulEztbaZCrR6h5mWe8Yv2Pi07DfIgqMrkOCIRsGA0xEOg2L a3whIzM74d+kSjXZF3DVCT/gaIhbrP/HYXIZ/fLJlywK4mAgBsGN5TiXTMqoQBCM s0iYnZKzQ5B17OkLn8dcDHZApNOrpXghCr6CQE+5vUdyDStB+GpwJ0bLojxbwctk u5HhpF0MA+NoiRmv1UYAEdUtwGKcQEZJ2bxtnuaIcKmXelS3UobaOeIvXh5w8c0u 96ZTsKcPP6AWD+uBF8uSUtUA6Nx01GPMJ9ls+CpH5jemqtJ0gqRtxg== =BWmA -----END PGP SIGNATURE-----
Hello,
On Tue, 4 Feb 2014 08:14:20 +0100 (CET) Steffen Kaiser skdovecot@smail.inf.fh-brs.de wrote:
Those two namespaces should have the same name, because the prefix is the same:
Yes that's it. Thank you for help. Can i ask one question then im happy.
I try to connect with email client, but nothing happen. Sylpheed say only can not build the box. I has activate the auth_debug but in the logs i find no mistake.
ks3374456 log # cat dovecot-debug.log Feb 04 16:25:40 auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Feb 04 16:25:40 auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat Feb 04 16:25:40 auth: Debug: auth client connected (pid=15214)
ks3374456 log # cat dovecot-info.log Feb 04 16:22:58 master: Info: Dovecot v2.2.9 starting up (core dumps disabled) Feb 04 16:23:18 imap-login: Info: Aborted login (no auth attempts in 0 secs): user=<>, rip=176.3.32.140, lip=37.187.103.194, session=<MEpKOJbxAgCwAyCM> Feb 04 16:25:28 master: Info: Dovecot v2.2.9 starting up (core dumps disabled) Feb 04 16:25:41 imap-login: Info: Aborted login (no auth attempts in 1 secs): user=<>, rip=176.3.32.140, lip=37.187.103.194, session=<lBTMQJbxCQCwAyCM>
ks3374456 log # cat dovecot.log Feb 04 16:25:28 master: Warning: Killed with signal 15 (by pid=15178 uid=0 code=kill)
the config: ks3374456 log # dovecot -n # 2.2.9: /etc/dovecot/dovecot.conf # OS: Linux 3.10.23-xxxx-std-ipv6-64 x86_64 Gentoo Base System release 2.2 auth_debug = yes debug_log_path = /var/log/dovecot-debug.log info_log_path = /var/log/dovecot-info.log log_path = /var/log/dovecot.log mail_debug = yes mail_location = maildir:~/maildir mail_plugins = acl 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 { list = yes location = maildir:/var/vmail/public:LAYOUT=fs:INDEX=~/public prefix = Public/ separator = / subscriptions = no type = public } namespace inbox { hidden = no inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = separator = / type = private } passdb { args = username_format=%u /var/vmail/auth.d/%d/passwd driver = passwd-file } plugin { acl = vfile:/var/vmail/conf.d/%d/acls:cache_secs=300 sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_global_dir = /var/vmail/conf.d/%d/sieve } protocols = imap lmtp service auth-worker { user = dovecot } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } user = dovecot } service imap-login { inet_listener imap { address = 37.187.103.194 port = 143 } inet_listener imaps { port = 0 } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0666 user = postfix } } ssl_cert =
Thank you for help & Nice Day Silvio
Hi,
if I try a telnet to your IP I get the following:
telnet 37.187.103.194 143 Trying 37.187.103.194... Connected to 37.187.103.194. Escape character is '^]'.
- OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED] Dovecot ready. 1 logout
- BYE Logging out 1 OK Logout completed. Connection closed by foreign host.
You have "LOGINDISABLED" enabled. Which means that you can't login with plain text mechanism. See: http://archiveopteryx.org/imap/logindisabled
Is Sylpheed able to use another auth mechanism rather than PLAIN or LOGIN? Perhaps you should also use TLS to encrypt the hole traffic between client and server, as it is supported by dovecot (STARTTLS).
Regards Urban
Am 04.02.2014 16:26, schrieb Silvio Siefke:
Hello,
On Tue, 4 Feb 2014 08:14:20 +0100 (CET) Steffen Kaiser skdovecot@smail.inf.fh-brs.de wrote:
Those two namespaces should have the same name, because the prefix is the same:
Yes that's it. Thank you for help. Can i ask one question then im happy.
I try to connect with email client, but nothing happen. Sylpheed say only can not build the box. I has activate the auth_debug but in the logs i find no mistake.
ks3374456 log # cat dovecot-debug.log Feb 04 16:25:40 auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Feb 04 16:25:40 auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat Feb 04 16:25:40 auth: Debug: auth client connected (pid=15214)
ks3374456 log # cat dovecot-info.log Feb 04 16:22:58 master: Info: Dovecot v2.2.9 starting up (core dumps disabled) Feb 04 16:23:18 imap-login: Info: Aborted login (no auth attempts in 0 secs): user=<>, rip=176.3.32.140, lip=37.187.103.194, session=<MEpKOJbxAgCwAyCM> Feb 04 16:25:28 master: Info: Dovecot v2.2.9 starting up (core dumps disabled) Feb 04 16:25:41 imap-login: Info: Aborted login (no auth attempts in 1 secs): user=<>, rip=176.3.32.140, lip=37.187.103.194, session=<lBTMQJbxCQCwAyCM>
ks3374456 log # cat dovecot.log Feb 04 16:25:28 master: Warning: Killed with signal 15 (by pid=15178 uid=0 code=kill)
the config: ks3374456 log # dovecot -n # 2.2.9: /etc/dovecot/dovecot.conf # OS: Linux 3.10.23-xxxx-std-ipv6-64 x86_64 Gentoo Base System release 2.2 auth_debug = yes debug_log_path = /var/log/dovecot-debug.log info_log_path = /var/log/dovecot-info.log log_path = /var/log/dovecot.log mail_debug = yes mail_location = maildir:~/maildir mail_plugins = acl 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 { list = yes location = maildir:/var/vmail/public:LAYOUT=fs:INDEX=~/public prefix = Public/ separator = / subscriptions = no type = public } namespace inbox { hidden = no inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = separator = / type = private } passdb { args = username_format=%u /var/vmail/auth.d/%d/passwd driver = passwd-file } plugin { acl = vfile:/var/vmail/conf.d/%d/acls:cache_secs=300 sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_global_dir = /var/vmail/conf.d/%d/sieve } protocols = imap lmtp service auth-worker { user = dovecot } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } user = dovecot } service imap-login { inet_listener imap { address = 37.187.103.194 port = 143 } inet_listener imaps { port = 0 } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0666 user = postfix } } ssl_cert =
Thank you for help & Nice Day Silvio
participants (3)
-
Silvio Siefke
-
Steffen Kaiser
-
Urban Loesch