Mailing List Archive

(bug?) dbmail-3.2.0 cannot listen only tls
Hi,

if I commented out port= settings neither pop3d nor imapd listen
anything.

I guess problem is somewhere in server.c near

evsock = g_new0(struct event *, total);
for (i = 0; i < conf->socketcount; i++) {
TRACE(TRACE_DEBUG, "Adding event for plain socket [%d] [%d/%d]", conf->listenSockets[i], i+1, total);
evsock[i] = event_new(evbase, conf->listenSockets[i], EV_READ, server_sock_cb, NULL);
event_assign(evsock[i], evbase, conf->listenSockets[i], EV_READ, server_sock_cb, evsock[i]);
event_add(evsock[i], NULL);
}
k = i+1;
for (k = i, i = 0; i < conf->ssl_socketcount; i++, k++) {
TRACE(TRACE_DEBUG, "Adding event for ssl socket [%d] [%d/%d]", conf->ssl_listenSockets[i], k+1, total);
evsock[k] = event_new(evbase, conf->ssl_listenSockets[i], EV_READ, server_sock_ssl_cb, NULL);
event_assign(evsock[k], evbase, conf->ssl_listenSockets[i], EV_READ, server_sock_ssl_cb, evsock[k]);
event_add(evsock[k], NULL);
}

total should be 1, because of only 1 ssl socket created, but in 2nd
loop k = 1.

Not sure if I am right, did not check it...

Anyway, steps to reproduce are comment out port and leave tls_port in
pop3d or imapd. Restart pop3d or imapd, check netstat -tlnp output.
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev
Re: (bug?) dbmail-3.2.0 cannot listen only tls [ In reply to ]
At Tue, 02 Sep 2014 17:06:08 +0400,
Sergej Pupykin <ml@sergej.pp.ru> wrote:
>
>
> Hi,
>
> if I commented out port= settings neither pop3d nor imapd listen
> anything.

There is also another strange bug: imapd and pop3d can hang in futex
wait forever until I kill them with -9. Did not investigate this issue
yet. Made workaround using xinetd. Just note, that there is some kind
of deadlock somewhere.
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev
Re: [PATCH] dbmail-3.2.0 cannot listen only tls [ In reply to ]
At Tue, 02 Sep 2014 17:06:08 +0400,
Sergej Pupykin <ml@sergej.pp.ru> wrote:
>
> Hi,
>
> if I commented out port= settings neither pop3d nor imapd listen
> anything.

Here is the patch
Re: [PATCH] dbmail-3.2.0 cannot listen only tls [ In reply to ]
patch accepted. thanks.



On 03-09-14 11:27, Sergej Pupykin wrote:
>
> At Tue, 02 Sep 2014 17:06:08 +0400,
> Sergej Pupykin <ml@sergej.pp.ru> wrote:
>>
>> Hi,
>>
>> if I commented out port= settings neither pop3d nor imapd listen
>> anything.
>
> Here is the patch
>
>
>
> _______________________________________________
> Dbmail-dev mailing list
> Dbmail-dev@dbmail.org
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev
>

--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, github, linkedin
www.nfg.nl/info@nfg.nl/+31.85.877.99.97
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev