Author Topic: Need help with Postfix/Dovecot  (Read 443 times)

Offline ScopeBot

  • Newbie
  • *
  • Posts: 2
Need help with Postfix/Dovecot
« on: July 08, 2021, 09:04:58 AM »
Hello.
I have a Debian 9 server with Dovecot 2.2.27, Postfix 3.1.15, PHP 7.3.29 and mandb 2.7.6.1.
07/07/2021
Roundcube is in the www directory and in the check enviroment everything is green.
In the test config, IMAP works without problems but with SMTP I am desperate.
If I don't enter a password, the email is sent and I get an OK. But when I enter a password I get the following error message:
(Authentication failure: SMTP server does not support authentication (Code:))
I've already tried ssl: // and tls: //. with ssl I don't get a connection.

The connection works via Thunderbird

here the default.inc.php: https://pastebin.com/1qS5kUXU
here the config.inc.php: https://pastebin.com/2fQvMmFd

07/08/2021
I edit the default.inc.php
$ config ['smtp_user'] = '% u'; and
$ config ['smtp_pass'] = '% p';
commented out. but then I get the following error when I want to write an email:
SMTP error (250): The authentication failed
or when I use tls: //
SMTP error (220): The authentication failed

(If you send the email to yourself, you can do this without a password. But if you enter another email as the recipient, you need enter a password)

07/09/2021
The problem is Postfix.
So I tried to do the Postfix SMTP authentication via Dovecot with the following tutorial:
https://www.sbarjatiya.com/notes_wiki/index.php/Postfix_SMTP_authentication_using_dovecot

Postfix:
main.cf: https://pastebin.com/su3pNNnr
master.cf: https://pastebin.com/5zywYk45

Dovecot:
10-master.conf: https://pastebin.com/CXfNJQLf
10-auth.conf: https://pastebin.com/XurPvwTF

If I send an email to another email address via Thunderbird or an SMTP test tool,
He connects, but times out after a while.

Thanks in advance,
With best regards,
Jannis
« Last Edit: July 09, 2021, 03:59:36 AM by ScopeBot »