dovecot auth Problem kann keine Mailboxen anlegen

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
hcx23
Beiträge: 39
Registriert: 28.02.2017 16:55:44

dovecot auth Problem kann keine Mailboxen anlegen

Beitrag von hcx23 » 01.03.2017 15:48:36

Hallo Sysadmins, und Mailserverprofis,


ich bräuchte mal euere Hilfe


Problem: Ich habe postfix mit dovecot unter debian am laufen so far do good.

Versuche ich nun mittes doveadm eine neue mailbox anzulegen

Code: Alles auswählen

" doveadm mailbox create -u info@domain.de INBOX...."

bekomme ich folgende Fehlermeldung :

Code: Alles auswählen

" master: Error: service(auth): command startup failed, throttling for 2
secs
root@mail1:/etc/dovecot# doveadm mailbox create -u info@tld.de INBOX
doveadm(info@tld.de): Error: userdb lookup(info@tld.de):
Disconnected unexpectedly
doveadm(info@tld.de): Error: User lookup failed: Internal error
occurred. Refer to server log for more information "
mail.err zeigt mir dann dies:

Code: Alles auswählen

" tail -10 /var/log/mail.err
Feb 27 17:46:11 mail1 amavis[28172]: (28172-01) (!!)TROUBLE in
process_request: connect_to_sql: unable to connect to any dataset at
(eval 110) line 252.
Feb 27 17:46:11 mail1 amavis[28173]: (28173-01) (!!)TROUBLE in
process_request: connect_to_sql: unable to connect to any dataset at
(eval 110) line 252.
Feb 27 17:46:12 mail1 amavis[28174]: (28174-01) (!!)TROUBLE in
process_request: connect_to_sql: unable to connect to any dataset at
(eval 110) line 252.
Feb 27 17:46:12 mail1 amavis[28175]: (28175-01) (!!)TROUBLE in
process_request: connect_to_sql: unable to connect to any dataset at
(eval 110) line 252.
Feb 27 17:46:12 mail1 amavis[28176]: (28176-01) (!!)TROUBLE in
process_request: connect_to_sql: unable to connect to any dataset at
(eval 110) line 252.
Feb 27 17:46:12 mail1 amavis[28177]: (28177-01) (!!)TROUBLE in
process_request: connect_to_sql: unable to connect to any dataset at
(eval 110) line 252.
Feb 27 17:46:12 mail1 amavis[28178]: (28178-01) (!!)TROUBLE in
process_request: connect_to_sql: unable to connect to any dataset at
(eval 110) line 252.
Feb 27 17:50:02 mail1 amavis[28179]: (28179-01) (!!)TROUBLE in
process_request: connect_to_sql: unable to connect to any dataset at
(eval 110) line 252.
Feb 27 17:50:20 mail1 dovecot: auth: Fatal: sql
/etc/dovecot/dovecot-sql.conf: Error in configuration file
/etc/dovecot/dovecot-sql.conf line 18: Expecting '='"
Also gschwind die dovecot-sql.conf gecheckt und siehe in Zeile 18 steht

Code: Alles auswählen

#" CREATE TABLE users (  "
#
#.......
Auch nach langer Suche finde ich den Fehler nicht, wo hier ein = fehlen
soll, zumal ich die Datei nicht händisch editiert habe.

Code: Alles auswählen

telnet localhost 143
Trying ::1...
Connected to localhost.
Escape character is '^]'.
* BYE Disconnected: Auth process broken

Da ich den Fehler einfach nicht finde,

hier auchmal meine dovecot.conf:

Code: Alles auswählen

> # 2.2.devel (53a4f7f): /etc/dovecot/dovecot.conf
> # Pigeonhole version 0.4.devel (356dcd4)
> # OS: Linux 3.16.0-4-amd64 x86_64 Debian 9.0
> auth_mechanisms = plain login
> disable_plaintext_auth = no
> listen = *,[::]
> log_timestamp = "%Y-%m-%d %H:%M:%S "
> mail_max_userip_connections = 100
> mail_privileged_group = vmail
> managesieve_notify_capability = mailto
> managesieve_sieve_capability = fileinto reject envelope
> encoded-character vacation subaddress comparator-i;ascii-numeric rel
> ational regex imap4flags copy include variables body enotify
> environment mailbox date index ihave duplicate mime foreverypar
> t extracttext
> passdb {
>   args = /etc/dovecot/dovecot-sql.conf
>   driver = sql
> }
> plugin {
>   quota = dict:user::file:/var/vmail/%d/%n/.quotausage
>   sieve = /var/vmail/%d/%n/.sieve
>   sieve_max_redirects = 25
> }
> postmaster_address = postmaster@mail.tld.de
> protocols = imap
> service auth {
>   unix_listener /var/spool/postfix/private/auth {
>     group = postfix
>     mode = 0660
>     user = postfix
>   }
>   unix_listener auth-userdb {
>     group = vmail
>     mode = 0600
>     user = vmail
>   }
>   user = root
> }
> service imap-login {
>   client_limit = 1000
>   process_limit = 512
> }
> service lmtp {
>   unix_listener /var/spool/postfix/private/dovecot-lmtp {
>     group = postfix

> mode = 0600
>     user = postfix
>   }
> }
> ssl_cert = </etc/postfix/smtpd.cert
> ssl_key =  # hidden, use -P to show it
> ssl_protocols = !SSLv2 !SSLv3
> userdb {
>   driver = prefetch
> }
> userdb {
>   args = /etc/dovecot/dovecot-sql.conf
>   driver = sql
> }
> protocol imap {
>   mail_plugins = quota imap_quota
> }
> protocol lda {
>   mail_plugins = sieve quota
>   postmaster_address = webmaster@localhost
> }
> protocol lmtp {
>   mail_plugins = quota sieve
>   postmaster_address = webmaster@localhost
> }
----------------------------------------------------------------------------------------------------------------------------




Danke schonmal für eure Tipps undHilfe


Gruss aus Leonberg bei Stuttgart


Uli

hec_tech
Beiträge: 1093
Registriert: 28.06.2007 21:49:36
Wohnort: Wien
Kontaktdaten:

Re: dovecot auth Problem kann keine Mailboxen anlegen

Beitrag von hec_tech » 01.03.2017 20:19:00

Poste doch bitte die komplette /etc/dovecot/dovecot-sql.conf da ist der Fehler begraben.

rendegast
Beiträge: 15041
Registriert: 27.02.2006 16:50:33
Lizenz eigener Beiträge: MIT Lizenz

Re: dovecot auth Problem kann keine Mailboxen anlegen

Beitrag von rendegast » 01.03.2017 22:06:04

Muß vielleicht erst der Benutzer angelegt werden, passdb / userdb?
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")

Antworten