A
A
Alexander2018-04-12 13:57:47
Email
Alexander, 2018-04-12 13:57:47

Unable to configure mail server authorization?

I'm trying to set up mail according to the manual uraganltd.blogspot.com.tr/2017/10/postfix-dovecot -... ran into an
insurmountable problem smtp tries to connect for a long time, then resets mail logs with a timeout error

postfix/smtps/smtpd[9534]: fatal: connect #11 to subsystem private/proxymap: Connection refused
postfix/smtpd[9536]: fatal: connect #11 to subsystem private/proxymap: Connection refused

dovecot status
swears at the file, although it is in place and readable
service dovecot status
systemd[1]: dovecot.service: PID file /var/run/dovecot/master.pid not readable (yet?) after start: No such file or directory

dovecot logs when trying to test
here is a snag in this, it seems, but I can't figure out what's the catch
auth-worker(1963): Info: sql([email protected],81.214.216.114,): Requested DIGEST-MD5 scheme , but we have only CRYPT (input: UT76H40riWt7Q)
2018-04-12 13:17:46 master: Info: Dovecot v2.2.27 (c0f36b0) starting up for imap (core dumps disabled)
2018-04-12 13:19:53 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
2018-04-12 13:19:53 auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
2018-04-12 13:19:53 auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat
2018-04-12 13:19:53 auth: Debug: auth client connected (pid=1950)
2018-04-12 13:19:53 imap-login: Info: Disconnected (no auth attempts in 1 secs): user=<>, rip=81.214.216.114, lip=167.99.86.158, TLS, session=<p6uxGKRpWM9R1thy>
2018-04-12 13:20:43 auth: Debug: auth client connected (pid=1962)
2018-04-12 13:20:43 auth: Debug: client in: AUTH        1       DIGEST-MD5      service=imap    secured session=wQ2uG6RpZs9R1thy        lip=167.99.86.158       rip=81.214.216.114      lport=993       rport=53094     local_name=mail.my-domain.com
2018-04-12 13:20:43 auth: Debug: client passdb out: CONT        1       cmVhbG09IiIsbm9uY2U9IjZITE41MnR2dTRmZ2ZNRWtOcmNzcXc9PSIscW9wPSJhdXRoIixjaGFyc2V0PSJ1dGYtOCIsYWxnb3JpdGhtPSJtZDUtc2VzcyI=
2018-04-12 13:20:43 auth: Debug: client in: CONT        1       dXNlcm5hbWU9InRlc3QyIixyZWFsbT0iIixub25jZT0iNkhMTjUydHZ1NGZnZk1Fa05yY3Nxdz09Iixjbm9uY2U9IlloOSsycFhCbnZzPSIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0iaW1hcC9tYWlsLnRheGktaW4tbW9zY293LmNvbSIscmVzcG9uc2U9MjdhNjE5ODEyN$
2018-04-12 13:20:43 auth-worker(1963): Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
2018-04-12 13:20:43 auth-worker(1963): Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
2018-04-12 13:20:43 auth-worker(1963): Debug: sql(test2,81.214.216.114,<wQ2uG6RpZs9R1thy>): query: SELECT email AS user , password FROM users WHERE (user = 'test2') or (email = 'test2');
2018-04-12 13:20:43 auth-worker(1963): Debug: sql(test2,81.214.216.114,<wQ2uG6RpZs9R1thy>): username changed test2 -> [email protected]
2018-04-12 13:20:43 auth-worker(1963): Info: sql([email protected],81.214.216.114,<wQ2uG6RpZs9R1thy>): Requested DIGEST-MD5 scheme, but we have only CRYPT (input: UT76H40riWt7Q)
2018-04-12 13:20:45 auth: Debug: client passdb out: FAIL        1       user=test2

dovecot-n
# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (fed8554)
# OS: Linux 4.9.0-6-amd64 x86_64 Debian 9.4 ext4
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login digest-md5
auth_verbose = yes
disable_plaintext_auth = no
log_path = /var/log/dovecot.err
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_gid = 5000
mail_location = maildir:/var/spool/mail/%d/%n
mail_privileged_group = mail
mail_uid = 5000
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocols = " imap"
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-master {
    group = virtual
    mode = 0660
    user = virtual
  }
}
service imap-login {
  inet_listener imap {
    port = 0
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
ssl_cert = </etc/dovecot/taxi_com.cert
ssl_key =  # hidden, use -P to show it
valid_chroot_dirs = /var/spool/mail/
[email protected]:~# service rerstart dovecot
rerstart: unrecognized service
[email protected]:~# service restart dovecot
restart: unrecognized service
[email protected]:~# dovecot -n
# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (fed8554)
# OS: Linux 4.9.0-6-amd64 x86_64 Debian 9.4 ext4
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login digest-md5
auth_verbose = yes
disable_plaintext_auth = no
log_path = /var/log/dovecot.err
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_gid = 5000
mail_location = maildir:/var/spool/mail/%d/%n
mail_privileged_group = mail
mail_uid = 5000
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocols = " imap"
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-master {
    group = virtual
    mode = 0660
    user = virtual
  }
}
service imap-login {
  inet_listener imap {
    port = 0
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
ssl_cert = </etc/dovecot/taxi_com.cert
ssl_key =  # hidden, use -P to show it
valid_chroot_dirs = /var/spool/mail/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2018-04-12
@CityCat4

Look at the auth_mechanisms setting in 10-auth.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question