On 01/11/2014 03:29 PM, Paul J Stevens wrote:
In contrib/dbmailclient.php and contrib/testdbmailclient.php you will
find a lot of code that might help you.
The HTTP interface is still considered experimental, so feedback and
patches are very welcome.
Hi. Is it `very experimental' or just `experimental' in 3.1.7? dbmail-httpd
doesn't seem to handle incoming connections at all: neither with php classes
found in contrib/ directory, nor with telnet connection.
Just for reference, I've also tried to connect from within python2.7:
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> s.connect(('127.0.0.1', 41380))
>>> s.send('test')
4
>>> s.recv(100)
.... and the call hangs ...
There are also no connection handling messages in log (level == 511):
> sudo /usr/sbin/dbmail-httpd -D
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+994): max_db_connections [10]
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1006): timeout [300] seconds
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1017): login_timeout [60] seconds
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1022): no value for SOCKET in config file
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1024): socket []
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1034): binding to PORT [41380]
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1062): binding to IP [127.0.0.1]
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1068): no value for BACKLOG in config file.
Using default value [128]
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1072): HTTP backlog [128]
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1079): not resolving client IP
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1086): no value for HTTP_BEFORE_SMTP in
config file
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1088): Disabling HTTP-before-SMTP
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1095): Disabling HTTP Authentication logging
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1106): effective user shall be [nobody]
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1116): effective group shall be [nobody]
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1125): CA file is set to
[/porta_var/certs/porta-um-CA.crt]
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1134): Certificate file is set to
[/porta_var/certs/porta-um.crt]
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1143): Key file is set to
[/porta_var/certs/porta-um.key]
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Info:[server] server_config_load(+1148): no value for TLS_CIPHERS in config file
Jan 14 09:03:25 etsys-cn-140.in dbmail-httpd[3764]: [0x7f2b22018040]
Debug:[server] server_config_load(+1152): Cipher string is set to []
--
Best regards,
Pavlo Lavrenenko,
PortaOne, Inc., Junior Software Developer
Tel: +1-866-SIP VOIP (+1 866 747 8647) ext. 7624
PortaOne - VoIP Solutions Company
Visit our Website: http://www.portaone.com
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail