[imp] cannot send messages using smtp
Guy
guy at de-schepper.be
Mon Mar 24 21:20:20 PST 2003
I cannot send mail with imp using smtp.
Already searched through the archives, google, ... but I couldn't solve the problem yet.
Everything is working fine, I can read my mail on my mail server using imap.
I configured smtp as shown below, but for some reason imp is trying to send my mail using 127.0.0.1:25 as my smtp-server.
This is the error message I get in the compose window:
Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed in D:\progs\php-4.3.1-Win32-zip\pear\Net\Socket.php on line 108
Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:25 in D:\progs\php-4.3.1-Win32-zip\pear\Net\Socket.php on line 108
After setting the logging to LOG_DEBUG, all I get is this:
Mar 24 20:47:56 HORDE [warning] [imp] unable to connect to smtp server localhost:25 [on line 780 of "E:\websites\horde\imp\compose.php"]
I configured my smtp-server in horde's conf.php like this:
/**
** Mailer
**/
// What method should we use for sending mail? Valid options are
// currently 'sendmail' and 'smtp'.
$conf['mailer']['type'] = 'smtp';
// An array holding any parameters that the Mail object will need to
// function correctly. For sendmail, this is mainly the sendmail_path
// option; SMTP requires at least a server and a port (if nonstandard).
// SMTP authentication can be enabled by setting the 'auth' parameter
// to true.
$conf['mailer']['params'] = array();
$conf['mailer']['params'] = array('host' => '192.168.1.202');
$conf['mailer']['params'] = array('port' => '9025');
$conf['mailer']['params'] = array('auth' => 'true');
$conf['mailer']['params'] = array('username' => '***mylogin***');
$conf['mailer']['params'] = array('password' => '***mypassword***');
And in servers.php of imp, I defined the following:
$servers['imap'] = array(
'name' => 'IMAP Server',
'server' => '192.168.1.202',
'protocol' => 'imap',
'port' => 9143,
'folders' => 'mail/',
'namespace' => '',
'maildomain' => 'de-schepper.be',
'smtphost' => '192.168.1.202',
'realm' => 'de-schepper.be',
'preferred' => ''
);
So why is imp still trying to send my mail to 127.0.0.1:25 ???
This is what I'm currently running:
- Windows XP
- Apache 2.0.44
- PHP v4.3.1
This is the output of /horde/test.php:
Horde Versions
Horde: 3.0-cvs
IMP: 4.0-cvs (run IMP tests)
Turba: 2.0-cvs (run Turba tests)
Kronolith: 2.0-cvs
Mnemo: 2.0-cvs
Nag: 2.0-cvs
PHP Version
View phpinfo() screen
View loaded extensions
PHP Version: 4.3.1
PHP Major Version: 4.3
PHP Minor Version: 1
PHP Version Classification: release
You are running a supported version of PHP.
PHP Module Capabilities
Ctype Support: Yes
DOM XML Support: Yes
FTP Support: Yes
Gettext Support: Yes
Iconv Support: Yes
IMAP Support: Yes
LDAP Support: Yes
Mbstring Support: Yes
MCAL Support: No
Mcrypt Support: No
MIME Magic Support: Yes
MySQL Support: Yes
OpenSSL Support: Yes
PostgreSQL Support: No
XML Support: Yes
Miscellaneous PHP Settings
magic_quotes_runtime disabled: Yes
file_uploads enabled: Yes
safe_mode disabled: Yes
trans_sid disabled: Yes
PHP Sessions
Session counter: 1
To unregister the session: click here
PEAR
PEAR - Yes
Recent PEAR - Yes
Mail - Yes
Mail_Mime - Yes
Log - Yes
DB - Yes
Net_Socket - Yes
File - Yes (Test for a known problem with File.php)
Date - Yes
Auth_SASL - Yes
HTTP_Request - No
Parts of Horde (Jonah, the XML-RPC client/server) use the HTTP_Request library to retrieve URLs and do other HTTP requests.
Net_URL - No
HTTP_Request depends on the Net_URL package.
=> Do the errors for HTTP_Request and NET_URL have something to do with the problem ?
If so, how can I install those packages under windows ?
Guy
More information about the imp
mailing list