PDA

View Full Version : sending mail from cent OS does not work.


BubikolRamios
06-21-2010, 11:25 AM
This works on my development machine ok:

java code:

logger.debug(System.getProperty("line.separator") + "step2");
transport.connect(host, from, pass);
logger.debug(System.getProperty("line.separator") + "step3");


on my cent os, does not, after a while when nothing happens, it falls from middle line of code into exception:
Could not connect to SMTP host: smtp.gmail.com, port: 587

I have firestarter
outbound traffic policy:
permisive by default, nothing on blacklist traffic.


Stopping firewall does not help.

Any tip what to do, what to look for ?