- changed title to Can't connect port 25
- edited description
Can't connect port 25
After installing everything I tried connecting to port 25 but got this issue
telnet 10.11.2.40 25
Trying 10.11.2.40...
Connected to 10.11.2.40.
Escape character is '^]'.
421 %s service not available
Connection closed by foreign host.
I don't know if it has something to do with it but at mail.log I have the following log:
Aug 20 12:39:11 mailpiler-test piler[2397]: connection from IPADDRESS
Aug 20 12:39:11 mailpiler-test piler[2397]: Cannot connect to mysql server
Aug 20 12:39:11 mailpiler-test piler[2397]: cannot make prepared statement
EDIT: oops....was told not to put that address there :S
Thank you,
Emilio.
Comments (8)
-
reporter -
reporter Located mysqld.sock in /run/mysqld/mysqld.sock so in piler.conf I set
mysqlsocket=/run/mysqld/mysqld.sock
Does that make sense?
Emilio.
-
repo owner hmm, it seems that we have a few problems here.
the 421 error message indicates that the tcp_wrapper settings prevented the sending host to access piler. Please edit /etc/hosts.allow, and add the following:
piler: 10.11.2.xx: ALLOW
where 10.11.2.xx is the address of your mail server
Also check the mysqlsocket parameter in piler.conf. It should match the actual socket you have, eg. /var/run/mysqld/mysqld.sock, etc.
-
repo owner Yes, it makes sense. Please restart piler, and check the maillog. If piler has problems you'll see it in the logs.
-
reporter Just until I could get it working I was setting hosts.allow as
ALL: ALL: ALLOW
Wouldn't that include piler?
Emilio.
-
repo owner it would include piler
-
reporter I still get the same issue even if mysqlsocket is correct (it should be mysqld.sock, no?)
Thank you,
Emilio.
-
reporter - changed status to resolved
I feel like a fool!! The piler.conf didn't have the right password. Issue was solved by adding the right password. Though I still have doubts what the SMARTHOST field is for (currently I have it with no info).
Thank you very much for your help, I owe you a beer :)
Emilio.
- Log in to comment