1 (edited by jth27 2017-04-29 03:50:52)

Topic: RE: No SASL authentication mechansisms

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.8.7
- Linux/BSD distribution name and version: Debian 8.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No.
- Related log if you're reporting an issue:
====

Having issues with receiving mail to the server, I think its an issue with TLS. Not entirely sure but keep getting sasl authentication failed.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: RE: No SASL authentication mechansisms

Is Dovecot service running?

3

Re: RE: No SASL authentication mechansisms

ZhangHuangbin wrote:

Is Dovecot service running?

Yep it is. I've spent hours trying to fix this and don't understand what is going on.

"service dovecot status
● dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/lib/systemd/system/dovecot.service; enabled)
   Active: active (running) since Fri 2016-01-22 19:39:21 GMT; 1 weeks 2 days ago
Main PID: 2453 (dovecot)
   CGroup: /system.slice/dovecot.service
           ├─ 2453 /usr/sbin/dovecot -F
           ├─ 2480 dovecot/anvil
           ├─ 2481 dovecot/log
           ├─12268 dovecot/imap-login
           ├─12270 dovecot/imap
           ├─12271 dovecot/imap-login
           ├─12272 dovecot/imap
           ├─12274 dovecot/imap-login
           ├─12275 dovecot/imap-login
           ├─12277 dovecot/imap
           ├─12279 dovecot/imap
           ├─12593 dovecot/auth
           ├─12603 dovecot/auth -w
           ├─12605 dovecot/dict
           └─32314 dovecot/config

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable."

4

Re: RE: No SASL authentication mechansisms

jth27 wrote:

Jan 29 23:21:12 mail postfix/smtpd[3234]: warning: SASL: Connect to /var/spool/postfix/private/dovecot-auth failed: No such file or directory

Please show us output of "dovecot -n" and "postconf -n" command.

5 (edited by jth27 2017-04-29 03:51:37)

Re: RE: No SASL authentication mechansisms

[ Removed ]

6

Re: RE: No SASL authentication mechansisms

jth27 wrote:

smtpd_sasl_path = /var/spool/postfix/private/dovecot-auth

this path should be "private/dovecot-auth". Do you have /var/spool/postfix/private/dovecot-auth?

7 (edited by jth27 2016-02-02 23:34:53)

Re: RE: No SASL authentication mechansisms

ZhangHuangbin wrote:
jth27 wrote:

smtpd_sasl_path = /var/spool/postfix/private/dovecot-auth

this path should be "private/dovecot-auth". Do you have /var/spool/postfix/private/dovecot-auth?

I do have the file here yes.

root@mail:/var/spool/postfix/private# ls -al | grep dovecot-auth
srw-rw-rw-  1 postfix postfix    0 Jan 22 19:39 dovecot-auth

I read online to try this and it seems to authenticate, however inbound mail or outbound mail is not working.

root@mail:/var/spool/postfix/private# doveadm auth test xxx@xxxxxx.pw
Password:
passdb: xxx@xxxxx.pw auth succeeded
extra fields:
  user=xxx@xxxxxx.pw

Edit: I changed the line you mentioned and then reload'd postfix then dovecot and still seem to get error in mail.err log.

Feb  2 15:33:45 mail postfix/smtpd[10749]: fatal: no SASL authentication mechanisms

8

Re: RE: No SASL authentication mechansisms

Please turn on debug mode in Dovecot and try again, monitor its log file (/var/log/dovecot.log) to see why it failed.
Reference:
http://www.iredmail.org/docs/debug.dovecot.html

By the way, did you compile Postfix yourself? Or, modified any Postfix/Dovecot/... settings before this issue?