[imp] Re: cannot send messages using smtp
Damian Fernandez Sosa (DESC)
damlists at cnba.uba.ar
Tue Mar 25 11:28:17 PST 2003
Please check if you have version 1.1.2 of Net_SMTP because the older versions
has a bug when the SMTP server sends a SIZE 0 capability
also, -if it does not work- change
$conf['mailer']['params']['auth'] = 'true';
to
$conf['mailer']['params']['auth'] = 'LOGIN';
to tell the class to use LOGIN auth instead of auto-selecting the best method
(you need the latest versions of Mail,Net_SMTP and Auth_SASL packages to make
this to work.
Quoting Guy <guy at de-schepper.be>:
> No, that isn't the problem.
>
> the evidence:
>
> 220 192.168.1.202 ESMTP MDaemon 6.5.2; Tue, 25 Mar 2003 15:13:23 +0100
> ehlo
> 250-192.168.1.202 Hello , pleased to meet you
> 250-ETRN
> 250-AUTH=LOGIN
> 250-AUTH LOGIN CRAM-MD5
> 250-8BITMIME
> 250 SIZE 0
>
>
>
>
> Damian Fernandez Sosa (DESC) wrote:
> > please, make a telnet to the IP and Port of your SMTP server, once it
> responds
> > type ehlo (and enter)
> >
> > if you don't see an AUTH=LOGIN line and your Net_SMTP class is old there is
> your
> > problem.
> >
> >
> > if so, please upgrade the pear packages Mail, Net_SMTP and Auth_SASL
> >
> >
> >
> >
> >
> >
> >
> > Quoting Guy <guy at de-schepper.be>:
> >
> >
> >>Allright,
> >>
> >>you did solve the first problem. Thanx !
> >>
> >>Now on to the seond (and hopefully last) problem:
> >>the "unable to send data" problem.
> >>
> >>Any ideas about that one ?
> >>
> >>Guy
> >>
> >>Jeff Graves wrote:
> >>
> >>>Here's the problem:
> >>>
> >>>// 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***');
> >>>
> >>>You keep redefining the array. Change to this:
> >>>
> >>>$conf['mailer']['params'] = array('host' => '192.168.1.202','port' =>
> >>>'9025','auth' => 'true','username' => '***mylogin***','password' =>
> >>>'***mypassword***');
> >>>
> >>>Or you can do this:
> >>>
> >>>$conf['mailer']['params'] = array();
> >>>$conf['mailer']['params']['host'] = '192.168.1.202';
> >>>$conf['mailer']['params']['port'] = '9025';
> >>>$conf['mailer']['params']['auth'] = 'true';
> >>>$conf['mailer']['params']['username'] = '***mylogin***';
> >>>$conf['mailer']['params']['password'] = '***mypassword***';
> >>>
> >>>Jeff Graves
> >>>Customer Support Engineer
> >>>Image Source, Inc.
> >>>10 Mill Street
> >>>Bellingham, MA 02019
> >>>
> >>>jeff at image-src.com - Email
> >>>508.966.5200 X31 - Phone
> >>>508.966.5170 - Fax
> >>>
> >>>-----Original Message-----
> >>>From: imp-bounces at lists.horde.org
> >>>[mailto:imp-bounces at lists.horde.org]On
> >>>Behalf Of Guy
> >>>Sent: Tuesday, March 25, 2003 5:16 AM
> >>>To: imp at lists.horde.org
> >>>Subject: [imp] Re: cannot send messages using smtp
> >>>
> >>>
> >>>
> >>>changing
> >>> $conf['mailer']['params'] = array('auth' => 'true');
> >>>to
> >>> $conf['mailer']['params'] = array('auth' => true);
> >>>
> >>>didn't solve the problem (as I expected, because imp is using the
> >>>wrong server, so the authentication step is never reached).
> >>>
> >>>
> >>>But after debugging a while, I found the following:
> >>>
> >>>it seems that for some reason the settings are lost.
> >>>What I mean, is that in imp/lib/compose.php, $params should contain
> >>>the settings for the smtp server, but
> >>>after modifying the file a bit so that it displays some more info:
> >>>
> >>> Horde::logMessage($params['host'], __FILE__, __LINE__, LOG_INFO);
> >>> Horde::logMessage($params['port'], __FILE__, __LINE__, LOG_INFO);
> >>> Horde::logMessage($params['auth'], __FILE__, __LINE__, LOG_INFO);
> >>> Horde::logMessage($params['username'], __FILE__, __LINE__,
> >>>LOG_INFO);
> >>> Horde::logMessage($params['password'], __FILE__, __LINE__,
> >>>LOG_INFO);
> >>>
> >>>I saw that only the password is available !
> >>>host, port, auth and username are empty.
> >>>
> >>>because of that, pear uses its defaults (from
> >>><php-dir>\pear\mail\smtp.php).
> >>>
> >>>I temporarily changed those defaults to my own settings (as in
> >>>horde/config/conf.php) to test if it
> >>>would work then, but it isn't (at least, not as it should)
> >>>
> >>>Everything seems to work (my mail server log shows the communication
> >>>with imp, login successfull, etc), but
> >>>for some reason, the content (subject and message itself) can't be
> >>>send.
> >>>
> >>>the compose window shows this error:
> >>> There was an error sending your message: unable to send data
> >>>
> >>>
> >>>
> >>>
> >>>--
> >>>IMP mailing list
> >>>Frequently Asked Questions: http://horde.org/faq/
> >>>To unsubscribe, mail: imp-unsubscribe at lists.horde.org
> >>>
> >>>
> >>
> >>
> >>
> >>--
> >>IMP mailing list
> >>Frequently Asked Questions: http://horde.org/faq/
> >>To unsubscribe, mail: imp-unsubscribe at lists.horde.org
> >>
> >
> >
> >
> >
> >
> > -------------------------------------------------
> > Mail enviado desde el CNBA
> > http://www.cnba.uba.ar/
> > -----
> >
> >
>
>
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
-------------------------------------------------
Mail enviado desde el CNBA
http://www.cnba.uba.ar/
-----
More information about the imp
mailing list