Getting Dovecot On Ubuntu server & Working With TBird & RoundCube

1,240 views
Skip to first unread message

Dan Kierson

unread,
Jun 12, 2024, 12:53:35 PM6/12/24
to ILUG
I have been having a problem with getting dovecot to work with Thunderbird email client & RoundCube web mail client.

Is there any such thing as a Ubuntu/Linux consultant in the Limerick/Midwest region ?

Ray O'Donnell

unread,
Jun 12, 2024, 12:56:21 PM6/12/24
to Dan Kierson, ILUG
No idea about consultants, but I have that set-up working on Debian....
feel free to email me off-list and I'll help if I can.

Ray.


--
Raymond O'Donnell :: Galway :: Ireland
r...@rodonnell.org

Martina Ferrari

unread,
Jun 12, 2024, 5:45:03 PM6/12/24
to Dan Kierson, ILUG
Hi Dan,

On 12/06/2024 17:53, Dan Kierson wrote:
I have a small consulting business specialising in systems
administration and programming. And while I normally work remotely, I am
located in Clonmel, not far from Limerick.

Feel free to contact me privately if you would like to have a chat and
see if I can help you.

Tina.

--
Martina Ferrari

Dan Kierson

unread,
Jun 21, 2024, 5:34:33 PM6/21/24
to ILUG, Martina Ferrari, Dan Kierson
Hi Ray & Tina,

Just got the damn thing working via these Linuxbabe procedures for Post-Dovecot mail servers:


I'm after doing Parts I and 2. I'm passing emails via Thunderbird to an OVH mail host on to my VPS "mailserver"
and back down to Thunderbird. Reverse path too.
But this is just for a mail account associated with a given Ubuntu server user account.
Next Part 3 is about setting up virtual mailboxes and that will have plenty for me to fall over.
At least I have the filters working so parts 4 & 5 need only be skimmed.

Thanking you for your support offers which I really appreciate.

DK.

================================================================================

Ray O'Donnell

unread,
Jun 25, 2024, 7:59:11 AM6/25/24
to Dan Kierson, ILUG, Martina Ferrari
Hi Dan,

Sorry for the slow reply.... Glad you got it working. Email isn't easy
to get right, and all too easy to get wrong!

A useful tool, in case you haven't heard of it, is swaks ("Swiss Army
knife for SMTP"):

https://www.jetmore.org/john/code/swaks

I think most Linux distributions have it in their repositories. It lets
you see exactly what's going on in the SMTP conversation - really handy
for debugging.

Best of luck with the virtual-domain setup.... This is what I run, and
if I can help I'll be glad to.

Best,

Ray.
> --
> Irish Linux Users Group
> ---
> You received this message because you are subscribed to the Google
> Groups "ILUG" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ilug+uns...@linux.ie <mailto:ilug+uns...@linux.ie>.
> To view this discussion on the web, visit
> https://groups.google.com/a/linux.ie/d/msgid/ilug/021b421d-6c1f-4da8-848f-d926aee9ee93n%40linux.ie <https://groups.google.com/a/linux.ie/d/msgid/ilug/021b421d-6c1f-4da8-848f-d926aee9ee93n%40linux.ie?utm_medium=email&utm_source=footer>.

Dan Kierson

unread,
Jun 27, 2024, 7:10:41 PM6/27/24
to Ray O'Donnell, ILUG, Martina Ferrari
I am stuck on a login page to the PostfixAdmin interface.

The setup password and superadmin account have been entered. 
But when I go to the https://postfixadmin.mysite.com.login.php page and enter the superadmin name and password, all I get is the message:

Your email address or password is not correct. See screenshot below . . . 

Screenshot from 2024-06-27 23-13-22.png

This phrase is associated with a pLogin_error when I search for the string among the PostfixAdmin files.

I have done it and redone it over and over again. I tried versions 3.3.11 and 3.3.13 of PostfixAdmin but it's always the same.

I am wondering about the creation of a superadmin account. In the "Setup password" field I put the plain password, not its 
generated hash. Is this okay ? Also I followed the instructions and applied an email address on the mail domain even though 
virtual users hadn't yet been set up in PostfixAdmin. Is this okay ?

Screenshot from 2024-06-28 00-04-52.png

LOGS
=====

/var/log/apache2/postfixadmin_error.log
                                                                                        
[Thu Jun 27 22:53:33.160642 2024] [php:notice] [pid 5271] [client 80.233.56.66:6083] Failed to read password from /usr/bin/doveadm pw -r 5 ... stderr: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf\ndoveconf: Warning: Obsolete setting in /etc/dovecot/conf.d/10-ssl.conf:64: ssl_protocols has been replaced by ssl_min_protocol\n, password: {ARGON2I}$argon2i$v=19$m=32768,t=5,p=1$IWSWDRiyOAgsfifE+e7JVw$5l3gHLsBcmd5dHjJ2ijB/rm4VEGGxWJrqE3O6Zqzmuw\n
[Thu Jun 27 23:02:54.625372 2024] [php:notice] [pid 5366] [client 80.233.56.66:6085] Failed to read password from /usr/bin/doveadm pw -r 5 ... stderr: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf\ndoveconf: Warning: Obsolete setting in /etc/dovecot/conf.d/10-ssl.conf:64: ssl_protocols has been replaced by ssl_min_protocol\n, password: {ARGON2I}$argon2i$v=19$m=32768,t=5,p=1$Ypn/Cmq7JZhIqTIGgjtv6g$QNlnmzeKeWeNVDNiLJGIwekVk7rY0vzaR9PcyUXNA8U\n , referer: https://postfixadmin.sandbarsoftware.ie/setup.php
[Thu Jun 27 23:05:10.491121 2024] [php:notice] [pid 5363] [client 80.233.56.66:6083] Failed to read password from /usr/bin/doveadm pw -r 5 ... stderr: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf\ndoveconf: Warning: Obsolete setting in /etc/dovecot/conf.d/10-ssl.conf:64: ssl_protocols has been replaced by ssl_min_protocol\n, password: {ARGON2I}$argon2i$v=19$m=32768,t=5,p=1$IQKl++zNcSrnQN9VuH2w8A$zIhUjQZp2QiPB5xWJKnyxaK7hAQUzXbsq6DABYZ5+J0\n , referer: https://postfixadmin.sandbarsoftware.ie/setup.php
[Thu Jun 27 23:10:36.046262 2024] [php:notice] [pid 5366] [client 80.233.56.66:6082] Failed to read password from /usr/bin/doveadm pw -r 5 ... stderr: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf\ndoveconf: Warning: Obsolete setting in /etc/dovecot/conf.d/10-ssl.conf:64: ssl_protocols has been replaced by ssl_min_protocol\n, password: {ARGON2I}$argon2i$v=19$m=32768,t=5,p=1$ZGamIlqtd8jQ+Id18a3z5A$hk+ZRh3whw6zE6z3sl4dQ5Yfp4CheUOTmYhHeSHi6E0\n , referer: https://postfixadmin.sandbarsoftware.ie/setup.php
[Thu Jun 27 23:10:36.230184 2024] [php:notice] [pid 5366] [client 80.233.56.66:6082] Failed to read password from /usr/bin/doveadm pw -r 5 ... stderr: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf\ndoveconf: Warning: Obsolete setting in /etc/dovecot/conf.d/10-ssl.conf:64: ssl_protocols has been replaced by ssl_min_protocol\n, password: {ARGON2I}$argon2i$v=19$m=32768,t=5,p=1$YuT7P1Su/VmJpcz76Su4WQ$J8iSg5wzlF8tos9y0CODm/t43O4UZ6EAshuGRFkNOzA\n , referer: https://postfixadmin.sandbarsoftware.ie/setup.php
[Thu Jun 27 23:10:36.230420 2024] [php:error] [pid 5366] [client 80.233.56.66:6082] PHP Fatal error:  Uncaught Exception: /usr/bin/doveadm pw -r 5 failed, see error log for details in /var/www/postfixadmin/functions.inc.php:1066\nStack trace:\n#0 /var/www/postfixadmin/functions.inc.php(1281): _pacrypt_dovecot()\n#1 /var/www/postfixadmin/model/PFAHandler.php(563): pacrypt()\n#2 /var/www/postfixadmin/public/setup.php(543): PFAHandler->save()\n#3 /var/www/postfixadmin/public/setup.php(389): create_admin()\n#4 {main}\n  thrown in /var/www/postfixadmin/functions.inc.php on line 1066, referer: https://postfixadmin.sandbarsoftware.ie/setup.php
[Thu Jun 27 23:12:05.057489 2024] [php:notice] [pid 5365] [client 80.233.56.66:6083] Failed to read password from /usr/bin/doveadm pw -r 5 ... stderr: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf\ndoveconf: Warning: Obsolete setting in /etc/dovecot/conf.d/10-ssl.conf:64: ssl_protocols has been replaced by ssl_min_protocol\nFatal: Missing {scheme} prefix from hash\n, password:  , referer: https://postfixadmin.sandbarsoftware.ie/login.php
[Thu Jun 27 23:12:05.057637 2024] [php:notice] [pid 5365] [client 80.233.56.66:6083] Error trying to call pacrypt(), referer: https://postfixadmin.sandbarsoftware.ie/login.php
[Thu Jun 27 23:12:05.057667 2024] [php:notice] [pid 5365] [client 80.233.56.66:6083] Exception: /usr/bin/doveadm pw -r 5 failed, see error log for details in /var/www/postfixadmin/functions.inc.php:1066\nStack trace:\n#0 /var/www/postfixadmin/functions.inc.php(1281): _pacrypt_dovecot()\n#1 /var/www/postfixadmin/model/Login.php(49): pacrypt()\n#2 /var/www/postfixadmin/public/login.php(63): Login->login()\n#3 {main}, referer: https://postfixadmin.sandbarsoftware.ie/login.php
[Thu Jun 27 23:12:05.057694 2024] [php:notice] [pid 5365] [client 80.233.56.66:6083] PostfixAdmin admin login failed (username: sand...@sandbarsoftware.ie, ip_address: 80.233.56.66), referer: https://postfixadmin.sandbarsoftware.ie/login.php

Any ideas are welcome with this mess.

DK.

==================================================================================================================================



==============================================================================================================================================================================================

Dan Kierson

unread,
Jun 28, 2024, 8:29:30 AM6/28/24
to Ray O'Donnell, ILUG, Martina Ferrari
Above login.php problem solved.

The cause was the "warning" about an obsolete setting in /etc/dovecot/conf.d/10-ssl.conf which had 
 . . . .
. . . . 

# Dovecot also recognizes values ANY and LATEST. ANY matches with any protocol
# version, and LATEST matches with the latest version supported by library.
ssl_min_protocol = TLSv1.2
ssl_protocols = !SSLv3 !TLSv1 !TLSv1.1
. . . . 
. . . . 

Apparently the ssl_min_protocols setting makes obsolete the ssl_protocols one so it had to be commented out.

Far more than a warning really - it's a show-stopping ERROR !

For now,

DK

================================================================================== 
Reply all
Reply to author
Forward
0 new messages