A NOTE has been added to this issue.
======================================================================
http://dbmail.org/mantis/view.php?id=1054 ======================================================================
Reported By: PYO
Assigned To:
======================================================================
Project: DBMail
Issue ID: 1054
Category: POP3 daemon
Reproducibility: always
Severity: minor
Priority: normal
Status: new
target:
======================================================================
Date Submitted: 08-Sep-14 19:30 CEST
Last Modified: 09-Sep-14 12:43 CEST
======================================================================
Summary: Standalone pop3s
Description:
There is ver. 3.2.0 currently in FreeBSD ports. Don't know if it's
production ready, but I upgraded to this version from 3.1.7
I used pop3s only:
[POP]
#port = 110
tls_port = 995
But with new version this do not work anymore. DBMail do not listen to any
port.
This works as expected:
[POP]
#port = 110
tls_port = 995
======================================================================
----------------------------------------------------------------------
(0003666) PYO (reporter) - 09-Sep-14 11:48
http://dbmail.org/mantis/view.php?id=1054#c3666 ----------------------------------------------------------------------
sorry, typo in second configuration example:
[POP]
port = 110
tls_port = 995
listening to both ports
----------------------------------------------------------------------
(0003667) sergej (reporter) - 08-Sep-14 21:10
http://dbmail.org/mantis/view.php?id=1054#c3667 ----------------------------------------------------------------------
See also
http://www.mail-archive.com/dbmail-dev%40dbmail.org/msg14062.html ----------------------------------------------------------------------
(0003668) alan (reporter) - 08-Sep-14 22:21
http://dbmail.org/mantis/view.php?id=1054#c3668 ----------------------------------------------------------------------
I found that adding login_disabled to dbmail.conf everything started
working ok
login_disabled = no
I'm only using imap but all is well here with imapd listening on 143 &
993
When you say not listening is the daemon running, are there any error
messages in the dbmail log file, does netstat | grep 110 offer anything?
----------------------------------------------------------------------
(0003669) PYO (reporter) - 09-Sep-14 00:11
http://dbmail.org/mantis/view.php?id=1054#c3669 ----------------------------------------------------------------------
No, login_disabled doesn't change anything.
dbmail-pop3d starts:
root@torq1:/usr/local/etc # ps ax | grep dbmail
3310 ?? S 0:00,01 /usr/local/sbin/dbmail-pop3d
root@torq1:/usr/local/etc # netstat -na -f inet
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 *.587 *.* LISTEN
tcp4 0 0 *.465 *.* LISTEN
tcp4 0 0 *.25 *.* LISTEN
tcp4 0 0 *.22 *.* LISTEN
tcp4 0 0 *.443 *.* LISTEN
tcp4 0 0 *.80 *.* LISTEN
udp4 0 0 127.0.0.1.123 *.*
udp4 0 0 *.123 *.*
udp4 0 0 *.43501 *.*
udp4 0 0 *.514 *.*
----------------------------------------------------------------------
(0003670) PYO (reporter) - 09-Sep-14 00:34
http://dbmail.org/mantis/view.php?id=1054#c3670 ----------------------------------------------------------------------
Ok, tried this:
[POP]
port = 0
tls_port = 995
and result is interesting:
root@torq1:/usr/local/etc # netstat -na -f inet
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 *.995 *.* LISTEN
tcp4 0 0 *.23781 *.* LISTEN
tcp4 0 0 *.587 *.* LISTEN
tcp4 0 0 *.465 *.* LISTEN
tcp4 0 0 *.25 *.* LISTEN
tcp4 0 0 *.22 *.* LISTEN
tcp4 0 0 *.443 *.* LISTEN
tcp4 0 0 *.80 *.* LISTEN
udp4 0 0 127.0.0.1.123 *.*
udp4 0 0 *.123 *.*
udp4 0 0 *.43501 *.*
udp4 0 0 *.514 *.*
23781 is insecure pop3
----------------------------------------------------------------------
(0003671) alan (reporter) - 09-Sep-14 11:19
http://dbmail.org/mantis/view.php?id=1054#c3671 ----------------------------------------------------------------------
I'm struggling to find out why your daemon is not listening, my pop server
came up as expected. Although I'm running on 10.0 I didn't see anything
unusual in the test build logs for 8 or 9.
netstat -na | egrep '110|993'
tcp6 0 0 *.110 *.* LISTEN
tcp4 0 0 *.110 *.* LISTEN
tcp6 0 0 *.993 *.* LISTEN
tcp4 0 0 *.993 *.* LISTEN
telnet localhost 110 showed a working pop3 server
+OK DBMAIL pop3 server ready to rock
<edc9887e62710757ac49a17984ab9923@schnittke.p-o.co.uk>
Is your bindip set to something like 0.0.0.0,::
Could you set your logging level to something like 63, that should show
more of what is happening
file_logging_levels = 63
----------------------------------------------------------------------
(0003672) PYO (reporter) - 09-Sep-14 11:34
http://dbmail.org/mantis/view.php?id=1054#c3672 ----------------------------------------------------------------------
alan, you seems not understand.
I have no problem with:
[POP]
port = 110
tls_port = 995
But I want ONLY 995 (pop3s):
[POP]
#port = 110
tls_port = 995
This was working on previous dbmail version. Now stops.
----------------------------------------------------------------------
(0003673) alan (reporter) - 09-Sep-14 11:51
http://dbmail.org/mantis/view.php?id=1054#c3673 ----------------------------------------------------------------------
Just to confirm FreeBSD 10.0 dbmail 3.2.0 without 993/995 typo
[POP]
#port = 110
tls_port = 995
netstat -na | egrep '110|995'
tcp6 0 0 *.995 *.* LISTEN
tcp4 0 0 *.995 *.* LISTEN
[POP]
port = 110
tls_port = 995
netstat -na | egrep '110|995'
tcp6 0 0 *.995 *.* LISTEN
tcp4 0 0 *.995 *.* LISTEN
tcp6 0 0 *.110 *.* LISTEN
tcp4 0 0 *.110 *.* LISTEN
logfile = /var/log/dbmail/dbmail-pop.log
errorlog = /var/log/dbmail/dbmail-pop.err
file_logging_levels = 31
Although logging is enabled and the log files created, nothing appears to
be logged making debugging harder. Alas using dbmail-pop3d -Dv offers
nothing.
----------------------------------------------------------------------
(0003674) alan (reporter) - 09-Sep-14 12:03
http://dbmail.org/mantis/view.php?id=1054#c3674 ----------------------------------------------------------------------
Finally appear to be able to reproduce. Lack of logging will slow down my
efforts so I'm glad you have a working system.
----------------------------------------------------------------------
(0003675) sergej (reporter) - 09-Sep-14 12:11
http://dbmail.org/mantis/view.php?id=1054#c3675 ----------------------------------------------------------------------
Guys, I already attached patch that fixes this problem. There is nothing to
debug here. It is quite simple fix.
----------------------------------------------------------------------
(0003676) alan (reporter) - 09-Sep-14 12:43
http://dbmail.org/mantis/view.php?id=1054#c3676 ----------------------------------------------------------------------
Thanks for the reality check and patch, I got distracted with the lack of
log files.
Issue History
Date Modified Username Field Change
======================================================================
08-Sep-14 19:30 PYO New Issue
08-Sep-14 19:32 PYO Note Added: 0003666
08-Sep-14 21:08 sergej File Added: tls-only-listen.patch
08-Sep-14 21:10 sergej Note Added: 0003667
08-Sep-14 22:21 alan Note Added: 0003668
09-Sep-14 00:11 PYO Note Added: 0003669
09-Sep-14 00:34 PYO Note Added: 0003670
09-Sep-14 11:19 alan Note Added: 0003671
09-Sep-14 11:34 PYO Note Added: 0003672
09-Sep-14 11:48 PYO Note Edited: 0003666
09-Sep-14 11:51 alan Note Added: 0003673
09-Sep-14 12:03 alan Note Added: 0003674
09-Sep-14 12:11 sergej Note Added: 0003675
09-Sep-14 12:43 alan Note Added: 0003676
======================================================================
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev