HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Cannot send messages thru Roundcube mail - PHP error (http://www.howtoforge.com/forums/showthread.php?t=38828)

radim_h 4th September 2009 11:38

Cannot send messages thru Roundcube mail - PHP error
 
Can someone help me? i have instaleld Roundcubemail under regular site created in ISPC3

But cannot send emails , getting PHP error

Failed to connect socket: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to locahost:25 (php_network_getaddresses: getaddrinfo failed: Name or service not known) (): , referer: http://mail.mydomains.tld/?_task=mai...action=compose

I tried php as CGI and Also Mod-PHP

Sending emails via Thunderbird works OK

till 4th September 2009 11:49

1) Make sure that you have defined localhost in /etc/hosts
2) Check that postfix listens on localhost.

radim_h 4th September 2009 11:51

Solved!

$rcmail_config['smtp_server'] = 'localhost';

changed to

$rcmail_config['smtp_server'] = '127.0.0.1';


but have no idea why that error happened

localhost is defined in /etc/hosts

127.0.0.1 localhost.localdomain localhost

till 4th September 2009 11:58

You can try to change:

127.0.0.1 localhost.localdomain localhost

to

127.0.0.1 localhost localhost.localdomain

But not sure if that matters.

radim_h 4th September 2009 12:03

Exactly

i just switched to

127.0.0.1 localhost localhost.localdomain

and it works ok!


what is that localhost.localdomain for, anyway as you suggest to add localhost.localdomain in Perfect setup tutorial?


All times are GMT +2. The time now is 05:10.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.