Connection refused (61)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
50 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Connection refused (61)

Teno Deuter
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
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Larry Rosenman
What mail port are you expecting it connect to on 127.0.0.1?

Here's my config.
$ grep -v "^//" config.inc.php
<?php

/* Local configuration for Roundcube Webmail */

$config['mime_types'] = '/usr/local/etc/apache22/mime.types';
$config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';

$config['default_host'] = 'tls://thebighonker.lerctr.org';

$config['imap_timeout'] = 3600;
$config['imap_vendor'] = 'dovecot';

$config['smtp_server'] = 'tls://thebighonker.lerctr.org';

$config['smtp_port'] = 587;

$config['smtp_user'] = '%u';

$config['smtp_pass'] = '%p';

$config['support_url'] = 'mailto<elided>';

$config['log_dir'] = 'logs/';

$config['temp_dir'] = 'temp/';

$config['login_lc'] = 0;

$config['session_domain'] = '.<elided>.org';

$config['des_key'] = '<elided>';

$config['product_name'] = '<elided>';

$config['http_received_header'] = true;

$config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');

$config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');

$config['mime_param_folding'] = 0;

$config['display_next'] = false;

$config['default_font'] = '';

$config['message_cache_lifetime'] = '10d';

$

--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640             E-Mail: [hidden email]
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:

    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
   
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Teno Deuter
sorry forgot to mention the port in the roundcube config file!

$config['smtp_port'] = 587;

On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:

> What mail port are you expecting it connect to on 127.0.0.1?
>
> Here's my config.
> $ grep -v "^//" config.inc.php
> <?php
>
> /* Local configuration for Roundcube Webmail */
>
> $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
> $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
>
> $config['default_host'] = 'tls://thebighonker.lerctr.org';
>
> $config['imap_timeout'] = 3600;
> $config['imap_vendor'] = 'dovecot';
>
> $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
>
> $config['smtp_port'] = 587;
>
> $config['smtp_user'] = '%u';
>
> $config['smtp_pass'] = '%p';
>
> $config['support_url'] = 'mailto<elided>';
>
> $config['log_dir'] = 'logs/';
>
> $config['temp_dir'] = 'temp/';
>
> $config['login_lc'] = 0;
>
> $config['session_domain'] = '.<elided>.org';
>
> $config['des_key'] = '<elided>';
>
> $config['product_name'] = '<elided>';
>
> $config['http_received_header'] = true;
>
> $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
>
> $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
>
> $config['mime_param_folding'] = 0;
>
> $config['display_next'] = false;
>
> $config['default_font'] = '';
>
> $config['message_cache_lifetime'] = '10d';
>
> $
>
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 214-642-9640             E-Mail: [hidden email]
> US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>
> On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
>
>     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
>
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Larry Rosenman
What happens if you telnet 127.0.0.1 587?

--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640             E-Mail: [hidden email]
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:

    sorry forgot to mention the port in the roundcube config file!
   
    $config['smtp_port'] = 587;
   
    On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
    > What mail port are you expecting it connect to on 127.0.0.1?
    >
    > Here's my config.
    > $ grep -v "^//" config.inc.php
    > <?php
    >
    > /* Local configuration for Roundcube Webmail */
    >
    > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
    > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
    >
    > $config['default_host'] = 'tls://thebighonker.lerctr.org';
    >
    > $config['imap_timeout'] = 3600;
    > $config['imap_vendor'] = 'dovecot';
    >
    > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
    >
    > $config['smtp_port'] = 587;
    >
    > $config['smtp_user'] = '%u';
    >
    > $config['smtp_pass'] = '%p';
    >
    > $config['support_url'] = 'mailto<elided>';
    >
    > $config['log_dir'] = 'logs/';
    >
    > $config['temp_dir'] = 'temp/';
    >
    > $config['login_lc'] = 0;
    >
    > $config['session_domain'] = '.<elided>.org';
    >
    > $config['des_key'] = '<elided>';
    >
    > $config['product_name'] = '<elided>';
    >
    > $config['http_received_header'] = true;
    >
    > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
    >
    > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
    >
    > $config['mime_param_folding'] = 0;
    >
    > $config['display_next'] = false;
    >
    > $config['default_font'] = '';
    >
    > $config['message_cache_lifetime'] = '10d';
    >
    > $
    >
    > --
    > Larry Rosenman                     http://www.lerctr.org/~ler
    > Phone: +1 214-642-9640             E-Mail: [hidden email]
    > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >
    > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
    >
    >     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
    >
   
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Teno Deuter
connection refused! But why?

On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:

> What happens if you telnet 127.0.0.1 587?
>
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 214-642-9640             E-Mail: [hidden email]
> US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>
> On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
>
>     sorry forgot to mention the port in the roundcube config file!
>
>     $config['smtp_port'] = 587;
>
>     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
>     > What mail port are you expecting it connect to on 127.0.0.1?
>     >
>     > Here's my config.
>     > $ grep -v "^//" config.inc.php
>     > <?php
>     >
>     > /* Local configuration for Roundcube Webmail */
>     >
>     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
>     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
>     >
>     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
>     >
>     > $config['imap_timeout'] = 3600;
>     > $config['imap_vendor'] = 'dovecot';
>     >
>     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
>     >
>     > $config['smtp_port'] = 587;
>     >
>     > $config['smtp_user'] = '%u';
>     >
>     > $config['smtp_pass'] = '%p';
>     >
>     > $config['support_url'] = 'mailto<elided>';
>     >
>     > $config['log_dir'] = 'logs/';
>     >
>     > $config['temp_dir'] = 'temp/';
>     >
>     > $config['login_lc'] = 0;
>     >
>     > $config['session_domain'] = '.<elided>.org';
>     >
>     > $config['des_key'] = '<elided>';
>     >
>     > $config['product_name'] = '<elided>';
>     >
>     > $config['http_received_header'] = true;
>     >
>     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
>     >
>     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
>     >
>     > $config['mime_param_folding'] = 0;
>     >
>     > $config['display_next'] = false;
>     >
>     > $config['default_font'] = '';
>     >
>     > $config['message_cache_lifetime'] = '10d';
>     >
>     > $
>     >
>     > --
>     > Larry Rosenman                     http://www.lerctr.org/~ler
>     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >
>     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
>     >
>     >     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
>     >
>
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Larry Rosenman
Your smtp server isn't listening.

Is it running, and binding to 127.0.0.1?


--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640             E-Mail: [hidden email]
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

On 7/11/18, 4:44 PM, "Teno Deuter" <[hidden email]> wrote:

    connection refused! But why?
   
    On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:
    > What happens if you telnet 127.0.0.1 587?
    >
    > --
    > Larry Rosenman                     http://www.lerctr.org/~ler
    > Phone: +1 214-642-9640             E-Mail: [hidden email]
    > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >
    > On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
    >
    >     sorry forgot to mention the port in the roundcube config file!
    >
    >     $config['smtp_port'] = 587;
    >
    >     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
    >     > What mail port are you expecting it connect to on 127.0.0.1?
    >     >
    >     > Here's my config.
    >     > $ grep -v "^//" config.inc.php
    >     > <?php
    >     >
    >     > /* Local configuration for Roundcube Webmail */
    >     >
    >     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
    >     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
    >     >
    >     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
    >     >
    >     > $config['imap_timeout'] = 3600;
    >     > $config['imap_vendor'] = 'dovecot';
    >     >
    >     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
    >     >
    >     > $config['smtp_port'] = 587;
    >     >
    >     > $config['smtp_user'] = '%u';
    >     >
    >     > $config['smtp_pass'] = '%p';
    >     >
    >     > $config['support_url'] = 'mailto<elided>';
    >     >
    >     > $config['log_dir'] = 'logs/';
    >     >
    >     > $config['temp_dir'] = 'temp/';
    >     >
    >     > $config['login_lc'] = 0;
    >     >
    >     > $config['session_domain'] = '.<elided>.org';
    >     >
    >     > $config['des_key'] = '<elided>';
    >     >
    >     > $config['product_name'] = '<elided>';
    >     >
    >     > $config['http_received_header'] = true;
    >     >
    >     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
    >     >
    >     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
    >     >
    >     > $config['mime_param_folding'] = 0;
    >     >
    >     > $config['display_next'] = false;
    >     >
    >     > $config['default_font'] = '';
    >     >
    >     > $config['message_cache_lifetime'] = '10d';
    >     >
    >     > $
    >     >
    >     > --
    >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >
    >     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
    >     >
    >     >     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
    >     >
    >
   
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Teno Deuter
when using neomutt for the same system user, I can send and receive
emails to everywhere

Also, when installing roundcube, the test email function did succeed!

So my SMTP server should be fine?


On Wed, Jul 11, 2018 at 11:45 PM, Larry Rosenman <[hidden email]> wrote:

> Your smtp server isn't listening.
>
> Is it running, and binding to 127.0.0.1?
>
>
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 214-642-9640             E-Mail: [hidden email]
> US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>
> On 7/11/18, 4:44 PM, "Teno Deuter" <[hidden email]> wrote:
>
>     connection refused! But why?
>
>     On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:
>     > What happens if you telnet 127.0.0.1 587?
>     >
>     > --
>     > Larry Rosenman                     http://www.lerctr.org/~ler
>     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >
>     > On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
>     >
>     >     sorry forgot to mention the port in the roundcube config file!
>     >
>     >     $config['smtp_port'] = 587;
>     >
>     >     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
>     >     > What mail port are you expecting it connect to on 127.0.0.1?
>     >     >
>     >     > Here's my config.
>     >     > $ grep -v "^//" config.inc.php
>     >     > <?php
>     >     >
>     >     > /* Local configuration for Roundcube Webmail */
>     >     >
>     >     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
>     >     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
>     >     >
>     >     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
>     >     >
>     >     > $config['imap_timeout'] = 3600;
>     >     > $config['imap_vendor'] = 'dovecot';
>     >     >
>     >     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
>     >     >
>     >     > $config['smtp_port'] = 587;
>     >     >
>     >     > $config['smtp_user'] = '%u';
>     >     >
>     >     > $config['smtp_pass'] = '%p';
>     >     >
>     >     > $config['support_url'] = 'mailto<elided>';
>     >     >
>     >     > $config['log_dir'] = 'logs/';
>     >     >
>     >     > $config['temp_dir'] = 'temp/';
>     >     >
>     >     > $config['login_lc'] = 0;
>     >     >
>     >     > $config['session_domain'] = '.<elided>.org';
>     >     >
>     >     > $config['des_key'] = '<elided>';
>     >     >
>     >     > $config['product_name'] = '<elided>';
>     >     >
>     >     > $config['http_received_header'] = true;
>     >     >
>     >     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
>     >     >
>     >     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
>     >     >
>     >     > $config['mime_param_folding'] = 0;
>     >     >
>     >     > $config['display_next'] = false;
>     >     >
>     >     > $config['default_font'] = '';
>     >     >
>     >     > $config['message_cache_lifetime'] = '10d';
>     >     >
>     >     > $
>     >     >
>     >     > --
>     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >
>     >     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
>     >     >
>     >     >     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
>     >     >
>     >
>
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Larry Rosenman
What's your neomutt connecting to?

For smtp?

--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640             E-Mail: [hidden email]
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

On 7/11/18, 4:47 PM, "Teno Deuter" <[hidden email]> wrote:

    when using neomutt for the same system user, I can send and receive
    emails to everywhere
   
    Also, when installing roundcube, the test email function did succeed!
   
    So my SMTP server should be fine?
   
   
    On Wed, Jul 11, 2018 at 11:45 PM, Larry Rosenman <[hidden email]> wrote:
    > Your smtp server isn't listening.
    >
    > Is it running, and binding to 127.0.0.1?
    >
    >
    > --
    > Larry Rosenman                     http://www.lerctr.org/~ler
    > Phone: +1 214-642-9640             E-Mail: [hidden email]
    > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >
    > On 7/11/18, 4:44 PM, "Teno Deuter" <[hidden email]> wrote:
    >
    >     connection refused! But why?
    >
    >     On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:
    >     > What happens if you telnet 127.0.0.1 587?
    >     >
    >     > --
    >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >
    >     > On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
    >     >
    >     >     sorry forgot to mention the port in the roundcube config file!
    >     >
    >     >     $config['smtp_port'] = 587;
    >     >
    >     >     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
    >     >     > What mail port are you expecting it connect to on 127.0.0.1?
    >     >     >
    >     >     > Here's my config.
    >     >     > $ grep -v "^//" config.inc.php
    >     >     > <?php
    >     >     >
    >     >     > /* Local configuration for Roundcube Webmail */
    >     >     >
    >     >     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
    >     >     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
    >     >     >
    >     >     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
    >     >     >
    >     >     > $config['imap_timeout'] = 3600;
    >     >     > $config['imap_vendor'] = 'dovecot';
    >     >     >
    >     >     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
    >     >     >
    >     >     > $config['smtp_port'] = 587;
    >     >     >
    >     >     > $config['smtp_user'] = '%u';
    >     >     >
    >     >     > $config['smtp_pass'] = '%p';
    >     >     >
    >     >     > $config['support_url'] = 'mailto<elided>';
    >     >     >
    >     >     > $config['log_dir'] = 'logs/';
    >     >     >
    >     >     > $config['temp_dir'] = 'temp/';
    >     >     >
    >     >     > $config['login_lc'] = 0;
    >     >     >
    >     >     > $config['session_domain'] = '.<elided>.org';
    >     >     >
    >     >     > $config['des_key'] = '<elided>';
    >     >     >
    >     >     > $config['product_name'] = '<elided>';
    >     >     >
    >     >     > $config['http_received_header'] = true;
    >     >     >
    >     >     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
    >     >     >
    >     >     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
    >     >     >
    >     >     > $config['mime_param_folding'] = 0;
    >     >     >
    >     >     > $config['display_next'] = false;
    >     >     >
    >     >     > $config['default_font'] = '';
    >     >     >
    >     >     > $config['message_cache_lifetime'] = '10d';
    >     >     >
    >     >     > $
    >     >     >
    >     >     > --
    >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >     >
    >     >     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
    >     >     >
    >     >     >     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
    >     >     >
    >     >
    >
   
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Teno Deuter
I am using OpenSMTPD. The OpenBSD 6.3 default one.

Also, when telnet to 127.0.0.1 25 I get a response! So must be
something with 587?

On Wed, Jul 11, 2018 at 11:47 PM, Larry Rosenman <[hidden email]> wrote:

> What's your neomutt connecting to?
>
> For smtp?
>
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 214-642-9640             E-Mail: [hidden email]
> US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>
> On 7/11/18, 4:47 PM, "Teno Deuter" <[hidden email]> wrote:
>
>     when using neomutt for the same system user, I can send and receive
>     emails to everywhere
>
>     Also, when installing roundcube, the test email function did succeed!
>
>     So my SMTP server should be fine?
>
>
>     On Wed, Jul 11, 2018 at 11:45 PM, Larry Rosenman <[hidden email]> wrote:
>     > Your smtp server isn't listening.
>     >
>     > Is it running, and binding to 127.0.0.1?
>     >
>     >
>     > --
>     > Larry Rosenman                     http://www.lerctr.org/~ler
>     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >
>     > On 7/11/18, 4:44 PM, "Teno Deuter" <[hidden email]> wrote:
>     >
>     >     connection refused! But why?
>     >
>     >     On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:
>     >     > What happens if you telnet 127.0.0.1 587?
>     >     >
>     >     > --
>     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >
>     >     > On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
>     >     >
>     >     >     sorry forgot to mention the port in the roundcube config file!
>     >     >
>     >     >     $config['smtp_port'] = 587;
>     >     >
>     >     >     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
>     >     >     > What mail port are you expecting it connect to on 127.0.0.1?
>     >     >     >
>     >     >     > Here's my config.
>     >     >     > $ grep -v "^//" config.inc.php
>     >     >     > <?php
>     >     >     >
>     >     >     > /* Local configuration for Roundcube Webmail */
>     >     >     >
>     >     >     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
>     >     >     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
>     >     >     >
>     >     >     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
>     >     >     >
>     >     >     > $config['imap_timeout'] = 3600;
>     >     >     > $config['imap_vendor'] = 'dovecot';
>     >     >     >
>     >     >     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
>     >     >     >
>     >     >     > $config['smtp_port'] = 587;
>     >     >     >
>     >     >     > $config['smtp_user'] = '%u';
>     >     >     >
>     >     >     > $config['smtp_pass'] = '%p';
>     >     >     >
>     >     >     > $config['support_url'] = 'mailto<elided>';
>     >     >     >
>     >     >     > $config['log_dir'] = 'logs/';
>     >     >     >
>     >     >     > $config['temp_dir'] = 'temp/';
>     >     >     >
>     >     >     > $config['login_lc'] = 0;
>     >     >     >
>     >     >     > $config['session_domain'] = '.<elided>.org';
>     >     >     >
>     >     >     > $config['des_key'] = '<elided>';
>     >     >     >
>     >     >     > $config['product_name'] = '<elided>';
>     >     >     >
>     >     >     > $config['http_received_header'] = true;
>     >     >     >
>     >     >     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
>     >     >     >
>     >     >     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
>     >     >     >
>     >     >     > $config['mime_param_folding'] = 0;
>     >     >     >
>     >     >     > $config['display_next'] = false;
>     >     >     >
>     >     >     > $config['default_font'] = '';
>     >     >     >
>     >     >     > $config['message_cache_lifetime'] = '10d';
>     >     >     >
>     >     >     > $
>     >     >     >
>     >     >     > --
>     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >     >
>     >     >     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
>     >     >     >
>     >     >     >     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
>     >     >     >
>     >     >
>     >
>
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Larry Rosenman
Yep, you (probably) need to configure openSMTPD to listen on 587

(I run exim, so I can't help with that).

--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640             E-Mail: [hidden email]
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

On 7/11/18, 4:50 PM, "Teno Deuter" <[hidden email]> wrote:

    I am using OpenSMTPD. The OpenBSD 6.3 default one.
   
    Also, when telnet to 127.0.0.1 25 I get a response! So must be
    something with 587?
   
    On Wed, Jul 11, 2018 at 11:47 PM, Larry Rosenman <[hidden email]> wrote:
    > What's your neomutt connecting to?
    >
    > For smtp?
    >
    > --
    > Larry Rosenman                     http://www.lerctr.org/~ler
    > Phone: +1 214-642-9640             E-Mail: [hidden email]
    > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >
    > On 7/11/18, 4:47 PM, "Teno Deuter" <[hidden email]> wrote:
    >
    >     when using neomutt for the same system user, I can send and receive
    >     emails to everywhere
    >
    >     Also, when installing roundcube, the test email function did succeed!
    >
    >     So my SMTP server should be fine?
    >
    >
    >     On Wed, Jul 11, 2018 at 11:45 PM, Larry Rosenman <[hidden email]> wrote:
    >     > Your smtp server isn't listening.
    >     >
    >     > Is it running, and binding to 127.0.0.1?
    >     >
    >     >
    >     > --
    >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >
    >     > On 7/11/18, 4:44 PM, "Teno Deuter" <[hidden email]> wrote:
    >     >
    >     >     connection refused! But why?
    >     >
    >     >     On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:
    >     >     > What happens if you telnet 127.0.0.1 587?
    >     >     >
    >     >     > --
    >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >     >
    >     >     > On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
    >     >     >
    >     >     >     sorry forgot to mention the port in the roundcube config file!
    >     >     >
    >     >     >     $config['smtp_port'] = 587;
    >     >     >
    >     >     >     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
    >     >     >     > What mail port are you expecting it connect to on 127.0.0.1?
    >     >     >     >
    >     >     >     > Here's my config.
    >     >     >     > $ grep -v "^//" config.inc.php
    >     >     >     > <?php
    >     >     >     >
    >     >     >     > /* Local configuration for Roundcube Webmail */
    >     >     >     >
    >     >     >     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
    >     >     >     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
    >     >     >     >
    >     >     >     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
    >     >     >     >
    >     >     >     > $config['imap_timeout'] = 3600;
    >     >     >     > $config['imap_vendor'] = 'dovecot';
    >     >     >     >
    >     >     >     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
    >     >     >     >
    >     >     >     > $config['smtp_port'] = 587;
    >     >     >     >
    >     >     >     > $config['smtp_user'] = '%u';
    >     >     >     >
    >     >     >     > $config['smtp_pass'] = '%p';
    >     >     >     >
    >     >     >     > $config['support_url'] = 'mailto<elided>';
    >     >     >     >
    >     >     >     > $config['log_dir'] = 'logs/';
    >     >     >     >
    >     >     >     > $config['temp_dir'] = 'temp/';
    >     >     >     >
    >     >     >     > $config['login_lc'] = 0;
    >     >     >     >
    >     >     >     > $config['session_domain'] = '.<elided>.org';
    >     >     >     >
    >     >     >     > $config['des_key'] = '<elided>';
    >     >     >     >
    >     >     >     > $config['product_name'] = '<elided>';
    >     >     >     >
    >     >     >     > $config['http_received_header'] = true;
    >     >     >     >
    >     >     >     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
    >     >     >     >
    >     >     >     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
    >     >     >     >
    >     >     >     > $config['mime_param_folding'] = 0;
    >     >     >     >
    >     >     >     > $config['display_next'] = false;
    >     >     >     >
    >     >     >     > $config['default_font'] = '';
    >     >     >     >
    >     >     >     > $config['message_cache_lifetime'] = '10d';
    >     >     >     >
    >     >     >     > $
    >     >     >     >
    >     >     >     > --
    >     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >     >     >
    >     >     >     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
    >     >     >     >
    >     >     >     >     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
    >     >     >     >
    >     >     >
    >     >
    >
   
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Teno Deuter
Thank you very much for your help

On Wed, Jul 11, 2018 at 11:51 PM, Larry Rosenman <[hidden email]> wrote:

> Yep, you (probably) need to configure openSMTPD to listen on 587
>
> (I run exim, so I can't help with that).
>
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 214-642-9640             E-Mail: [hidden email]
> US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>
> On 7/11/18, 4:50 PM, "Teno Deuter" <[hidden email]> wrote:
>
>     I am using OpenSMTPD. The OpenBSD 6.3 default one.
>
>     Also, when telnet to 127.0.0.1 25 I get a response! So must be
>     something with 587?
>
>     On Wed, Jul 11, 2018 at 11:47 PM, Larry Rosenman <[hidden email]> wrote:
>     > What's your neomutt connecting to?
>     >
>     > For smtp?
>     >
>     > --
>     > Larry Rosenman                     http://www.lerctr.org/~ler
>     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >
>     > On 7/11/18, 4:47 PM, "Teno Deuter" <[hidden email]> wrote:
>     >
>     >     when using neomutt for the same system user, I can send and receive
>     >     emails to everywhere
>     >
>     >     Also, when installing roundcube, the test email function did succeed!
>     >
>     >     So my SMTP server should be fine?
>     >
>     >
>     >     On Wed, Jul 11, 2018 at 11:45 PM, Larry Rosenman <[hidden email]> wrote:
>     >     > Your smtp server isn't listening.
>     >     >
>     >     > Is it running, and binding to 127.0.0.1?
>     >     >
>     >     >
>     >     > --
>     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >
>     >     > On 7/11/18, 4:44 PM, "Teno Deuter" <[hidden email]> wrote:
>     >     >
>     >     >     connection refused! But why?
>     >     >
>     >     >     On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:
>     >     >     > What happens if you telnet 127.0.0.1 587?
>     >     >     >
>     >     >     > --
>     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >     >
>     >     >     > On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
>     >     >     >
>     >     >     >     sorry forgot to mention the port in the roundcube config file!
>     >     >     >
>     >     >     >     $config['smtp_port'] = 587;
>     >     >     >
>     >     >     >     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
>     >     >     >     > What mail port are you expecting it connect to on 127.0.0.1?
>     >     >     >     >
>     >     >     >     > Here's my config.
>     >     >     >     > $ grep -v "^//" config.inc.php
>     >     >     >     > <?php
>     >     >     >     >
>     >     >     >     > /* Local configuration for Roundcube Webmail */
>     >     >     >     >
>     >     >     >     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
>     >     >     >     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
>     >     >     >     >
>     >     >     >     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
>     >     >     >     >
>     >     >     >     > $config['imap_timeout'] = 3600;
>     >     >     >     > $config['imap_vendor'] = 'dovecot';
>     >     >     >     >
>     >     >     >     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
>     >     >     >     >
>     >     >     >     > $config['smtp_port'] = 587;
>     >     >     >     >
>     >     >     >     > $config['smtp_user'] = '%u';
>     >     >     >     >
>     >     >     >     > $config['smtp_pass'] = '%p';
>     >     >     >     >
>     >     >     >     > $config['support_url'] = 'mailto<elided>';
>     >     >     >     >
>     >     >     >     > $config['log_dir'] = 'logs/';
>     >     >     >     >
>     >     >     >     > $config['temp_dir'] = 'temp/';
>     >     >     >     >
>     >     >     >     > $config['login_lc'] = 0;
>     >     >     >     >
>     >     >     >     > $config['session_domain'] = '.<elided>.org';
>     >     >     >     >
>     >     >     >     > $config['des_key'] = '<elided>';
>     >     >     >     >
>     >     >     >     > $config['product_name'] = '<elided>';
>     >     >     >     >
>     >     >     >     > $config['http_received_header'] = true;
>     >     >     >     >
>     >     >     >     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
>     >     >     >     >
>     >     >     >     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
>     >     >     >     >
>     >     >     >     > $config['mime_param_folding'] = 0;
>     >     >     >     >
>     >     >     >     > $config['display_next'] = false;
>     >     >     >     >
>     >     >     >     > $config['default_font'] = '';
>     >     >     >     >
>     >     >     >     > $config['message_cache_lifetime'] = '10d';
>     >     >     >     >
>     >     >     >     > $
>     >     >     >     >
>     >     >     >     > --
>     >     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >     >     >
>     >     >     >     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
>     >     >     >     >
>     >     >     >     >     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
>     >     >     >     >
>     >     >     >
>     >     >
>     >
>
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Richard-376
In reply to this post by Larry Rosenman
what does the output of:

    netstat -n | grep :587

run as root, show you? the -p will give the program and pid.



> Date: Wednesday, July 11, 2018 21:51:09 +0000
> From: Larry Rosenman <[hidden email]>
>
> Yep, you (probably) need to configure openSMTPD to listen on 587
>
> (I run exim, so I can't help with that).


Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Larry Rosenman
He's getting connection refused, ergo, nothing is listening on 587.

--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640             E-Mail: [hidden email]
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

On 7/11/18, 4:57 PM, "dovecot on behalf of Richard" <[hidden email] on behalf of [hidden email]> wrote:

    what does the output of:
   
        netstat -n | grep :587
   
    run as root, show you? the -p will give the program and pid.
   
   
   
    > Date: Wednesday, July 11, 2018 21:51:09 +0000
    > From: Larry Rosenman <[hidden email]>
    >
    > Yep, you (probably) need to configure openSMTPD to listen on 587
    >
    > (I run exim, so I can't help with that).
   
   
   
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Teno Deuter
In reply to this post by Larry Rosenman
forgot to also ask about the maildir set up I have:

mail_location = maildir:~/var/mail/%u:LAYOUT=fs

for the following structure:

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

but should be wrong cause when I log in into roundcube I can't see the
stored emails. If I completely skip 'mail_location' then it does show
the mails which are already in!

Thank you

On Wed, Jul 11, 2018 at 11:51 PM, Larry Rosenman <[hidden email]> wrote:

> Yep, you (probably) need to configure openSMTPD to listen on 587
>
> (I run exim, so I can't help with that).
>
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 214-642-9640             E-Mail: [hidden email]
> US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>
> On 7/11/18, 4:50 PM, "Teno Deuter" <[hidden email]> wrote:
>
>     I am using OpenSMTPD. The OpenBSD 6.3 default one.
>
>     Also, when telnet to 127.0.0.1 25 I get a response! So must be
>     something with 587?
>
>     On Wed, Jul 11, 2018 at 11:47 PM, Larry Rosenman <[hidden email]> wrote:
>     > What's your neomutt connecting to?
>     >
>     > For smtp?
>     >
>     > --
>     > Larry Rosenman                     http://www.lerctr.org/~ler
>     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >
>     > On 7/11/18, 4:47 PM, "Teno Deuter" <[hidden email]> wrote:
>     >
>     >     when using neomutt for the same system user, I can send and receive
>     >     emails to everywhere
>     >
>     >     Also, when installing roundcube, the test email function did succeed!
>     >
>     >     So my SMTP server should be fine?
>     >
>     >
>     >     On Wed, Jul 11, 2018 at 11:45 PM, Larry Rosenman <[hidden email]> wrote:
>     >     > Your smtp server isn't listening.
>     >     >
>     >     > Is it running, and binding to 127.0.0.1?
>     >     >
>     >     >
>     >     > --
>     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >
>     >     > On 7/11/18, 4:44 PM, "Teno Deuter" <[hidden email]> wrote:
>     >     >
>     >     >     connection refused! But why?
>     >     >
>     >     >     On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:
>     >     >     > What happens if you telnet 127.0.0.1 587?
>     >     >     >
>     >     >     > --
>     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >     >
>     >     >     > On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
>     >     >     >
>     >     >     >     sorry forgot to mention the port in the roundcube config file!
>     >     >     >
>     >     >     >     $config['smtp_port'] = 587;
>     >     >     >
>     >     >     >     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
>     >     >     >     > What mail port are you expecting it connect to on 127.0.0.1?
>     >     >     >     >
>     >     >     >     > Here's my config.
>     >     >     >     > $ grep -v "^//" config.inc.php
>     >     >     >     > <?php
>     >     >     >     >
>     >     >     >     > /* Local configuration for Roundcube Webmail */
>     >     >     >     >
>     >     >     >     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
>     >     >     >     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
>     >     >     >     >
>     >     >     >     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
>     >     >     >     >
>     >     >     >     > $config['imap_timeout'] = 3600;
>     >     >     >     > $config['imap_vendor'] = 'dovecot';
>     >     >     >     >
>     >     >     >     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
>     >     >     >     >
>     >     >     >     > $config['smtp_port'] = 587;
>     >     >     >     >
>     >     >     >     > $config['smtp_user'] = '%u';
>     >     >     >     >
>     >     >     >     > $config['smtp_pass'] = '%p';
>     >     >     >     >
>     >     >     >     > $config['support_url'] = 'mailto<elided>';
>     >     >     >     >
>     >     >     >     > $config['log_dir'] = 'logs/';
>     >     >     >     >
>     >     >     >     > $config['temp_dir'] = 'temp/';
>     >     >     >     >
>     >     >     >     > $config['login_lc'] = 0;
>     >     >     >     >
>     >     >     >     > $config['session_domain'] = '.<elided>.org';
>     >     >     >     >
>     >     >     >     > $config['des_key'] = '<elided>';
>     >     >     >     >
>     >     >     >     > $config['product_name'] = '<elided>';
>     >     >     >     >
>     >     >     >     > $config['http_received_header'] = true;
>     >     >     >     >
>     >     >     >     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
>     >     >     >     >
>     >     >     >     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
>     >     >     >     >
>     >     >     >     > $config['mime_param_folding'] = 0;
>     >     >     >     >
>     >     >     >     > $config['display_next'] = false;
>     >     >     >     >
>     >     >     >     > $config['default_font'] = '';
>     >     >     >     >
>     >     >     >     > $config['message_cache_lifetime'] = '10d';
>     >     >     >     >
>     >     >     >     > $
>     >     >     >     >
>     >     >     >     > --
>     >     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >     >     >
>     >     >     >     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
>     >     >     >     >
>     >     >     >     >     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
>     >     >     >     >
>     >     >     >
>     >     >
>     >
>
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Richard-376
In reply to this post by Teno Deuter
obvious correction ... sorry.

  netstat -np | grep :587


> Date: Wednesday, July 11, 2018 21:57:31 +0000
> From: Richard <[hidden email]>

> what does the output of:
>
>     netstat -n | grep :587
>
> run as root, show you? the -p will give the program and pid.
>
>
>
>> Date: Wednesday, July 11, 2018 21:51:09 +0000
>> From: Larry Rosenman <[hidden email]>
>>
>> Yep, you (probably) need to configure openSMTPD to listen on 587
>>
>> (I run exim, so I can't help with that).
>
>

 
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Larry Rosenman
In reply to this post by Teno Deuter
What does an ls -lr of /var/mail/<user> look like?


--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640             E-Mail: [hidden email]
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

On 7/11/18, 4:58 PM, "Teno Deuter" <[hidden email]> wrote:

    forgot to also ask about the maildir set up I have:
   
    mail_location = maildir:~/var/mail/%u:LAYOUT=fs
   
    for the following structure:
   
    /var/mail/[user]/Drafts
                           Inbox
                           Sent
                           Spam
                           Trash
   
    but should be wrong cause when I log in into roundcube I can't see the
    stored emails. If I completely skip 'mail_location' then it does show
    the mails which are already in!
   
    Thank you
   
    On Wed, Jul 11, 2018 at 11:51 PM, Larry Rosenman <[hidden email]> wrote:
    > Yep, you (probably) need to configure openSMTPD to listen on 587
    >
    > (I run exim, so I can't help with that).
    >
    > --
    > Larry Rosenman                     http://www.lerctr.org/~ler
    > Phone: +1 214-642-9640             E-Mail: [hidden email]
    > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >
    > On 7/11/18, 4:50 PM, "Teno Deuter" <[hidden email]> wrote:
    >
    >     I am using OpenSMTPD. The OpenBSD 6.3 default one.
    >
    >     Also, when telnet to 127.0.0.1 25 I get a response! So must be
    >     something with 587?
    >
    >     On Wed, Jul 11, 2018 at 11:47 PM, Larry Rosenman <[hidden email]> wrote:
    >     > What's your neomutt connecting to?
    >     >
    >     > For smtp?
    >     >
    >     > --
    >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >
    >     > On 7/11/18, 4:47 PM, "Teno Deuter" <[hidden email]> wrote:
    >     >
    >     >     when using neomutt for the same system user, I can send and receive
    >     >     emails to everywhere
    >     >
    >     >     Also, when installing roundcube, the test email function did succeed!
    >     >
    >     >     So my SMTP server should be fine?
    >     >
    >     >
    >     >     On Wed, Jul 11, 2018 at 11:45 PM, Larry Rosenman <[hidden email]> wrote:
    >     >     > Your smtp server isn't listening.
    >     >     >
    >     >     > Is it running, and binding to 127.0.0.1?
    >     >     >
    >     >     >
    >     >     > --
    >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >     >
    >     >     > On 7/11/18, 4:44 PM, "Teno Deuter" <[hidden email]> wrote:
    >     >     >
    >     >     >     connection refused! But why?
    >     >     >
    >     >     >     On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:
    >     >     >     > What happens if you telnet 127.0.0.1 587?
    >     >     >     >
    >     >     >     > --
    >     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >     >     >
    >     >     >     > On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
    >     >     >     >
    >     >     >     >     sorry forgot to mention the port in the roundcube config file!
    >     >     >     >
    >     >     >     >     $config['smtp_port'] = 587;
    >     >     >     >
    >     >     >     >     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
    >     >     >     >     > What mail port are you expecting it connect to on 127.0.0.1?
    >     >     >     >     >
    >     >     >     >     > Here's my config.
    >     >     >     >     > $ grep -v "^//" config.inc.php
    >     >     >     >     > <?php
    >     >     >     >     >
    >     >     >     >     > /* Local configuration for Roundcube Webmail */
    >     >     >     >     >
    >     >     >     >     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
    >     >     >     >     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
    >     >     >     >     >
    >     >     >     >     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
    >     >     >     >     >
    >     >     >     >     > $config['imap_timeout'] = 3600;
    >     >     >     >     > $config['imap_vendor'] = 'dovecot';
    >     >     >     >     >
    >     >     >     >     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
    >     >     >     >     >
    >     >     >     >     > $config['smtp_port'] = 587;
    >     >     >     >     >
    >     >     >     >     > $config['smtp_user'] = '%u';
    >     >     >     >     >
    >     >     >     >     > $config['smtp_pass'] = '%p';
    >     >     >     >     >
    >     >     >     >     > $config['support_url'] = 'mailto<elided>';
    >     >     >     >     >
    >     >     >     >     > $config['log_dir'] = 'logs/';
    >     >     >     >     >
    >     >     >     >     > $config['temp_dir'] = 'temp/';
    >     >     >     >     >
    >     >     >     >     > $config['login_lc'] = 0;
    >     >     >     >     >
    >     >     >     >     > $config['session_domain'] = '.<elided>.org';
    >     >     >     >     >
    >     >     >     >     > $config['des_key'] = '<elided>';
    >     >     >     >     >
    >     >     >     >     > $config['product_name'] = '<elided>';
    >     >     >     >     >
    >     >     >     >     > $config['http_received_header'] = true;
    >     >     >     >     >
    >     >     >     >     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
    >     >     >     >     >
    >     >     >     >     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
    >     >     >     >     >
    >     >     >     >     > $config['mime_param_folding'] = 0;
    >     >     >     >     >
    >     >     >     >     > $config['display_next'] = false;
    >     >     >     >     >
    >     >     >     >     > $config['default_font'] = '';
    >     >     >     >     >
    >     >     >     >     > $config['message_cache_lifetime'] = '10d';
    >     >     >     >     >
    >     >     >     >     > $
    >     >     >     >     >
    >     >     >     >     > --
    >     >     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     >     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     >     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >     >     >     >
    >     >     >     >     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
    >     >     >     >     >
    >     >     >     >     >     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
    >     >     >     >     >
    >     >     >     >
    >     >     >
    >     >
    >
   
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Teno Deuter
In reply to this post by Richard-376
produces an empty result!

On Wed, Jul 11, 2018 at 11:57 PM, Richard
<[hidden email]> wrote:

> what does the output of:
>
>     netstat -n | grep :587
>
> run as root, show you? the -p will give the program and pid.
>
>
>
>> Date: Wednesday, July 11, 2018 21:51:09 +0000
>> From: Larry Rosenman <[hidden email]>
>>
>> Yep, you (probably) need to configure openSMTPD to listen on 587
>>
>> (I run exim, so I can't help with that).
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Larry Rosenman
In reply to this post by Richard-376
See previous comment from me.  He's getting connection refused from a telnet localhost 587 , ergo, there is NOTHING listening on 587.

He needs to configure openSMTPD to listen on 587.



--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640             E-Mail: [hidden email]
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

On 7/11/18, 5:00 PM, "dovecot on behalf of Richard" <[hidden email] on behalf of [hidden email]> wrote:

    obvious correction ... sorry.
   
      netstat -np | grep :587
   
   
    > Date: Wednesday, July 11, 2018 21:57:31 +0000
    > From: Richard <[hidden email]>
   
    > what does the output of:
    >
    >     netstat -n | grep :587
    >
    > run as root, show you? the -p will give the program and pid.
    >
    >
    >
    >> Date: Wednesday, July 11, 2018 21:51:09 +0000
    >> From: Larry Rosenman <[hidden email]>
    >>
    >> Yep, you (probably) need to configure openSMTPD to listen on 587
    >>
    >> (I run exim, so I can't help with that).
    >
    >
   
     
   
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Teno Deuter
In reply to this post by Larry Rosenman
drwxr-xr-x  5   512 Jun 26 21:41 Trash
drwxr-xr-x  5   512 Jun 26 21:41 Spam
drwxr-xr-x  5   512 Jun 26 21:41 Sent
drwx------  6   512 Jul  7 00:23 Inbox
drwxr-xr-x  5   512 Jun 26 21:41 Drafts

On Thu, Jul 12, 2018 at 12:00 AM, Larry Rosenman <[hidden email]> wrote:

> What does an ls -lr of /var/mail/<user> look like?
>
>
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 214-642-9640             E-Mail: [hidden email]
> US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>
> On 7/11/18, 4:58 PM, "Teno Deuter" <[hidden email]> wrote:
>
>     forgot to also ask about the maildir set up I have:
>
>     mail_location = maildir:~/var/mail/%u:LAYOUT=fs
>
>     for the following structure:
>
>     /var/mail/[user]/Drafts
>                            Inbox
>                            Sent
>                            Spam
>                            Trash
>
>     but should be wrong cause when I log in into roundcube I can't see the
>     stored emails. If I completely skip 'mail_location' then it does show
>     the mails which are already in!
>
>     Thank you
>
>     On Wed, Jul 11, 2018 at 11:51 PM, Larry Rosenman <[hidden email]> wrote:
>     > Yep, you (probably) need to configure openSMTPD to listen on 587
>     >
>     > (I run exim, so I can't help with that).
>     >
>     > --
>     > Larry Rosenman                     http://www.lerctr.org/~ler
>     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >
>     > On 7/11/18, 4:50 PM, "Teno Deuter" <[hidden email]> wrote:
>     >
>     >     I am using OpenSMTPD. The OpenBSD 6.3 default one.
>     >
>     >     Also, when telnet to 127.0.0.1 25 I get a response! So must be
>     >     something with 587?
>     >
>     >     On Wed, Jul 11, 2018 at 11:47 PM, Larry Rosenman <[hidden email]> wrote:
>     >     > What's your neomutt connecting to?
>     >     >
>     >     > For smtp?
>     >     >
>     >     > --
>     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >
>     >     > On 7/11/18, 4:47 PM, "Teno Deuter" <[hidden email]> wrote:
>     >     >
>     >     >     when using neomutt for the same system user, I can send and receive
>     >     >     emails to everywhere
>     >     >
>     >     >     Also, when installing roundcube, the test email function did succeed!
>     >     >
>     >     >     So my SMTP server should be fine?
>     >     >
>     >     >
>     >     >     On Wed, Jul 11, 2018 at 11:45 PM, Larry Rosenman <[hidden email]> wrote:
>     >     >     > Your smtp server isn't listening.
>     >     >     >
>     >     >     > Is it running, and binding to 127.0.0.1?
>     >     >     >
>     >     >     >
>     >     >     > --
>     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >     >
>     >     >     > On 7/11/18, 4:44 PM, "Teno Deuter" <[hidden email]> wrote:
>     >     >     >
>     >     >     >     connection refused! But why?
>     >     >     >
>     >     >     >     On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:
>     >     >     >     > What happens if you telnet 127.0.0.1 587?
>     >     >     >     >
>     >     >     >     > --
>     >     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >     >     >
>     >     >     >     > On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
>     >     >     >     >
>     >     >     >     >     sorry forgot to mention the port in the roundcube config file!
>     >     >     >     >
>     >     >     >     >     $config['smtp_port'] = 587;
>     >     >     >     >
>     >     >     >     >     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
>     >     >     >     >     > What mail port are you expecting it connect to on 127.0.0.1?
>     >     >     >     >     >
>     >     >     >     >     > Here's my config.
>     >     >     >     >     > $ grep -v "^//" config.inc.php
>     >     >     >     >     > <?php
>     >     >     >     >     >
>     >     >     >     >     > /* Local configuration for Roundcube Webmail */
>     >     >     >     >     >
>     >     >     >     >     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
>     >     >     >     >     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
>     >     >     >     >     >
>     >     >     >     >     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
>     >     >     >     >     >
>     >     >     >     >     > $config['imap_timeout'] = 3600;
>     >     >     >     >     > $config['imap_vendor'] = 'dovecot';
>     >     >     >     >     >
>     >     >     >     >     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
>     >     >     >     >     >
>     >     >     >     >     > $config['smtp_port'] = 587;
>     >     >     >     >     >
>     >     >     >     >     > $config['smtp_user'] = '%u';
>     >     >     >     >     >
>     >     >     >     >     > $config['smtp_pass'] = '%p';
>     >     >     >     >     >
>     >     >     >     >     > $config['support_url'] = 'mailto<elided>';
>     >     >     >     >     >
>     >     >     >     >     > $config['log_dir'] = 'logs/';
>     >     >     >     >     >
>     >     >     >     >     > $config['temp_dir'] = 'temp/';
>     >     >     >     >     >
>     >     >     >     >     > $config['login_lc'] = 0;
>     >     >     >     >     >
>     >     >     >     >     > $config['session_domain'] = '.<elided>.org';
>     >     >     >     >     >
>     >     >     >     >     > $config['des_key'] = '<elided>';
>     >     >     >     >     >
>     >     >     >     >     > $config['product_name'] = '<elided>';
>     >     >     >     >     >
>     >     >     >     >     > $config['http_received_header'] = true;
>     >     >     >     >     >
>     >     >     >     >     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
>     >     >     >     >     >
>     >     >     >     >     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
>     >     >     >     >     >
>     >     >     >     >     > $config['mime_param_folding'] = 0;
>     >     >     >     >     >
>     >     >     >     >     > $config['display_next'] = false;
>     >     >     >     >     >
>     >     >     >     >     > $config['default_font'] = '';
>     >     >     >     >     >
>     >     >     >     >     > $config['message_cache_lifetime'] = '10d';
>     >     >     >     >     >
>     >     >     >     >     > $
>     >     >     >     >     >
>     >     >     >     >     > --
>     >     >     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
>     >     >     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
>     >     >     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
>     >     >     >     >     >
>     >     >     >     >     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
>     >     >     >     >     >
>     >     >     >     >     >     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
>     >     >     >     >     >
>     >     >     >     >
>     >     >     >
>     >     >
>     >
>
Reply | Threaded
Open this post in threaded view
|

Re: Connection refused (61)

Larry Rosenman
I don't see the expected new / cur / tmp dirs..
Or that didn't do the recursive.



--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640             E-Mail: [hidden email]
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

On 7/11/18, 5:02 PM, "Teno Deuter" <[hidden email]> wrote:

    drwxr-xr-x  5   512 Jun 26 21:41 Trash
    drwxr-xr-x  5   512 Jun 26 21:41 Spam
    drwxr-xr-x  5   512 Jun 26 21:41 Sent
    drwx------  6   512 Jul  7 00:23 Inbox
    drwxr-xr-x  5   512 Jun 26 21:41 Drafts
   
    On Thu, Jul 12, 2018 at 12:00 AM, Larry Rosenman <[hidden email]> wrote:
    > What does an ls -lr of /var/mail/<user> look like?
    >
    >
    > --
    > Larry Rosenman                     http://www.lerctr.org/~ler
    > Phone: +1 214-642-9640             E-Mail: [hidden email]
    > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >
    > On 7/11/18, 4:58 PM, "Teno Deuter" <[hidden email]> wrote:
    >
    >     forgot to also ask about the maildir set up I have:
    >
    >     mail_location = maildir:~/var/mail/%u:LAYOUT=fs
    >
    >     for the following structure:
    >
    >     /var/mail/[user]/Drafts
    >                            Inbox
    >                            Sent
    >                            Spam
    >                            Trash
    >
    >     but should be wrong cause when I log in into roundcube I can't see the
    >     stored emails. If I completely skip 'mail_location' then it does show
    >     the mails which are already in!
    >
    >     Thank you
    >
    >     On Wed, Jul 11, 2018 at 11:51 PM, Larry Rosenman <[hidden email]> wrote:
    >     > Yep, you (probably) need to configure openSMTPD to listen on 587
    >     >
    >     > (I run exim, so I can't help with that).
    >     >
    >     > --
    >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >
    >     > On 7/11/18, 4:50 PM, "Teno Deuter" <[hidden email]> wrote:
    >     >
    >     >     I am using OpenSMTPD. The OpenBSD 6.3 default one.
    >     >
    >     >     Also, when telnet to 127.0.0.1 25 I get a response! So must be
    >     >     something with 587?
    >     >
    >     >     On Wed, Jul 11, 2018 at 11:47 PM, Larry Rosenman <[hidden email]> wrote:
    >     >     > What's your neomutt connecting to?
    >     >     >
    >     >     > For smtp?
    >     >     >
    >     >     > --
    >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >     >
    >     >     > On 7/11/18, 4:47 PM, "Teno Deuter" <[hidden email]> wrote:
    >     >     >
    >     >     >     when using neomutt for the same system user, I can send and receive
    >     >     >     emails to everywhere
    >     >     >
    >     >     >     Also, when installing roundcube, the test email function did succeed!
    >     >     >
    >     >     >     So my SMTP server should be fine?
    >     >     >
    >     >     >
    >     >     >     On Wed, Jul 11, 2018 at 11:45 PM, Larry Rosenman <[hidden email]> wrote:
    >     >     >     > Your smtp server isn't listening.
    >     >     >     >
    >     >     >     > Is it running, and binding to 127.0.0.1?
    >     >     >     >
    >     >     >     >
    >     >     >     > --
    >     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >     >     >
    >     >     >     > On 7/11/18, 4:44 PM, "Teno Deuter" <[hidden email]> wrote:
    >     >     >     >
    >     >     >     >     connection refused! But why?
    >     >     >     >
    >     >     >     >     On Wed, Jul 11, 2018 at 11:40 PM, Larry Rosenman <[hidden email]> wrote:
    >     >     >     >     > What happens if you telnet 127.0.0.1 587?
    >     >     >     >     >
    >     >     >     >     > --
    >     >     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     >     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     >     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >     >     >     >
    >     >     >     >     > On 7/11/18, 4:39 PM, "Teno Deuter" <[hidden email]> wrote:
    >     >     >     >     >
    >     >     >     >     >     sorry forgot to mention the port in the roundcube config file!
    >     >     >     >     >
    >     >     >     >     >     $config['smtp_port'] = 587;
    >     >     >     >     >
    >     >     >     >     >     On Wed, Jul 11, 2018 at 11:36 PM, Larry Rosenman <[hidden email]> wrote:
    >     >     >     >     >     > What mail port are you expecting it connect to on 127.0.0.1?
    >     >     >     >     >     >
    >     >     >     >     >     > Here's my config.
    >     >     >     >     >     > $ grep -v "^//" config.inc.php
    >     >     >     >     >     > <?php
    >     >     >     >     >     >
    >     >     >     >     >     > /* Local configuration for Roundcube Webmail */
    >     >     >     >     >     >
    >     >     >     >     >     > $config['mime_types'] = '/usr/local/etc/apache22/mime.types';
    >     >     >     >     >     > $config['db_dsnw'] = 'pgsql://roundcube:<elided>@localhost/roundcubemail';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['default_host'] = 'tls://thebighonker.lerctr.org';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['imap_timeout'] = 3600;
    >     >     >     >     >     > $config['imap_vendor'] = 'dovecot';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['smtp_server'] = 'tls://thebighonker.lerctr.org';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['smtp_port'] = 587;
    >     >     >     >     >     >
    >     >     >     >     >     > $config['smtp_user'] = '%u';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['smtp_pass'] = '%p';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['support_url'] = 'mailto<elided>';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['log_dir'] = 'logs/';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['temp_dir'] = 'temp/';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['login_lc'] = 0;
    >     >     >     >     >     >
    >     >     >     >     >     > $config['session_domain'] = '.<elided>.org';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['des_key'] = '<elided>';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['product_name'] = '<elided>';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['http_received_header'] = true;
    >     >     >     >     >     >
    >     >     >     >     >     > $config['plugins'] = array('contextmenu','automatic_addressbook','thunderbird_labels','managesieve','jqueryui','attachment_reminder','hide_blockquote','markasjunk','vcard_attachments','enigma');
    >     >     >     >     >     >
    >     >     >     >     >     > $config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
    >     >     >     >     >     >
    >     >     >     >     >     > $config['mime_param_folding'] = 0;
    >     >     >     >     >     >
    >     >     >     >     >     > $config['display_next'] = false;
    >     >     >     >     >     >
    >     >     >     >     >     > $config['default_font'] = '';
    >     >     >     >     >     >
    >     >     >     >     >     > $config['message_cache_lifetime'] = '10d';
    >     >     >     >     >     >
    >     >     >     >     >     > $
    >     >     >     >     >     >
    >     >     >     >     >     > --
    >     >     >     >     >     > Larry Rosenman                     http://www.lerctr.org/~ler
    >     >     >     >     >     > Phone: +1 214-642-9640             E-Mail: [hidden email]
    >     >     >     >     >     > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
    >     >     >     >     >     >
    >     >     >     >     >     > On 7/11/18, 4:29 PM, "dovecot on behalf of Teno Deuter" <[hidden email] on behalf of [hidden email]> wrote:
    >     >     >     >     >     >
    >     >     >     >     >     >     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
    >     >     >     >     >     >
    >     >     >     >     >
    >     >     >     >
    >     >     >
    >     >
    >
   
123