[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.log> Feb 03 18:06:09 lmtp(8386, webmaster@silviosiefke.com): Error: user webmaster@silviosiefke.com: Initialization failed: namespace configuration error: Duplicate namespace prefix: ""
<dovecot-debug.log> Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: Effective uid=5000, gid=5000, home=/var/vmail/silviosiefke.de/webmaster Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl: No acl_shared_dict setting - shared mailbox listing is disabled Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/maildir Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: maildir++: root=/var/vmail/silviosiefke.de/webmaster/maildir, index=, indexpvt=, control=, inbox=/var/vmail/silviosiefke.de/webmaster/maildir, alt= Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl: initializing backend with data: vfile:/var/vmail/conf.d/silviosiefke.de/acls:cache_secs=300 Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl: acl username = webmaster@silviosiefke.de Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl: owner = 1 Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl vfile: Global ACL directory: /var/vmail/conf.d/silviosiefke.de/acls Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: Namespace : type=public, prefix=Public/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no location=maildir:/var/vmail/public:LAYOUT=fs:INDEX=~/public Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: fs: root=/var/vmail/public, index=/var/vmail/silviosiefke.de/webmaster/public, indexpvt=, control=, inbox=, alt= Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl: initializing backend with data: vfile:/var/vmail/conf.d/silviosiefke.de/acls:cache_secs=300 Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl: acl username = webmaster@silviosiefke.de Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl: owner = 0 Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl vfile: Global ACL directory: /var/vmail/conf.d/silviosiefke.de/acls Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=no, hidden=no, list=yes, subscriptions=yes location=maildir:~/maildir Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: maildir++: root=/var/vmail/silviosiefke.de/webmaster/maildir, index=, indexpvt=, control=, inbox=, alt= Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl: initializing backend with data: vfile:/var/vmail/conf.d/silviosiefke.de/acls:cache_secs=300 Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl: acl username = webmaster@silviosiefke.de Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl: owner = 1 Feb 03 18:06:09 lmtp(8389, webmaster@silviosiefke.de): Debug: acl vfile: Global ACL directory: /var/vmail/conf.d/silviosiefke.de/acls
<mail.log> Feb 3 18:06:09 ks3374456 postfix/lmtp[8384]: E529E2452CC: to=<webmaster@silviosiefke.com>, relay=ks3374456.kimsufi.com[private/dovecot-lmtp], delay=350, delays=350/0.02/0.06/0.02, dsn=4.3.0, status=deferred (host ks3374456.kimsufi.com[private/dovecot-lmtp] said: 451 4.3.0 <webmaster@silviosiefke.com> Temporary internal error (in reply to end of DATA command)) Feb 3 18:06:09 ks3374456 postfix/lmtp[8385]: 7F6A12452C5: to=<webmaster@silviosiefke.de>, relay=ks3374456.kimsufi.com[private/dovecot-lmtp], delay=408, delays=408/0.02/0.05/0.02, dsn=4.3.0, status=deferred (host ks3374456.kimsufi.com[private/dovecot-lmtp] said: 451 4.3.0 <webmaster@silviosiefke.de> Temporary internal error (in reply to end of DATA command)) Feb 3 18:06:23 ks3374456 postfix/smtpd[8393]: connect from mail156.grifadder.com[85.187.97.156] Feb 3 18:06:23 ks3374456 postfix/smtpd[8393]: NOQUEUE: reject: RCPT from mail156.grifadder.com[85.187.97.156]: 450 4.1.1 <info@silviosiefke.de>: Recipient address rejected: unverified address: host ks3374456.kimsufi.com[private/dovecot-lmtp] said: 550 5.1.1 <info@silviosiefke.de> User doesn't exist: info@silviosiefke.de (in reply to RCPT TO command); from=<bounce-2696-15045860-2900-248@hausgif.com> to=<info@silviosiefke.de> proto=ESMTP helo=<mail156.grifadder.com> Feb 3 18:06:23 ks3374456 postfix/smtpd[8393]: disconnect from mail156.grifadder.com[85.187.97.156]
# 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 = </etc/ssl/dovecot/server.pem ssl_key = </etc/ssl/dovecot/server.key userdb { args = username_format=%u /var/vmail/auth.d/%d/passwd driver = passwd-file } verbose_proctitle = yes protocol lmtp { mail_plugins = acl sieve postmaster_address = webmaster@silviosiefke.com } protocol lda { mail_plugins = sieve } protocol imap { mail_plugins = acl imap_acl mail_log notify
Thank you for help & Nice Day Silvio
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 3 Feb 2014, Silvio Siefke wrote:
<dovecot.log> 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 = </etc/ssl/dovecot/server.pem ssl_key = </etc/ssl/dovecot/server.key userdb { args = username_format=%u /var/vmail/auth.d/%d/passwd driver = passwd-file } verbose_proctitle = yes protocol lmtp { mail_plugins = acl sieve postmaster_address = webmaster@silviosiefke.com } protocol lda { mail_plugins = sieve } protocol imap { mail_plugins = acl imap_acl mail_log notify }
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 = </etc/ssl/dovecot/server.pem ssl_key = </etc/ssl/dovecot/server.key userdb { args = username_format=%u /var/vmail/auth.d/%d/passwd driver = passwd-file } verbose_proctitle = yes protocol lmtp { mail_plugins = acl sieve postmaster_address = webmaster@silviosiefke.com } protocol lda { mail_plugins = sieve } protocol imap { mail_plugins = acl imap_acl mail_log notify }
Thank you for help & Nice Day Silvio
participants (3)
-
Silvio Siefke
-
Steffen Kaiser
-
Urban Loesch