Connection refused (61)

Teno Deuter
Wed, 11 Jul 2018 21:28:55 -0000

Dear list,

in a box with the following setup:

openbsd 6.3
opensmtpd
dovecot 2.2.34
roundcubemail 1.3.5
httpd web server

when a system user is authenticated via roundcubemail and tries to
send an email, the following errors pops in the roundcube log file:


Connection refused (61)
Failed to connect socket: Connection refused ()

here is my roundcube config file:

$config['default_host'] = '127.0.0.1';
$config['smtp_server'] = 'tls://127.0.0.1';
$config['smtp_server'] = 'tls://127.0.0.1';
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';

and the dovecot config:

mail_location = maildir:~/var/mail/%u:LAYOUT=fs
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
ssl = yes
ssl_cert = </etc/ssl/server.crt
ssl_key = </etc/ssl/server.key

the system users emails are in maildir format and follow the below structure:

/var/mail/[user]/Drafts
                       Inbox
                       Sent
                       Spam
                       Trash

Thank you for your help