Thursday, June 3, 2010

Re: email component - sending mail via smtp fails on own server!

Try a simple test

Using php only not cake. Try sending an email
If it works cake issue if not server config


Let us know
Jonathon


On 6/3/10, euromark <dereuromark@googlemail.com> wrote:
> i have quite a strange problem with the email component
> it never failed me before
>
> but on the new server i installed an own exim4 mail server with imap/
> pop/smtp
> well,
> - sending mails wie mail() works,
> - sending mails via smtp from outside (like thunderbird email program)
> works
> - sending mails wie cake email component to myself (own domain) works
> as well
>
> but
> - sending mails to other providers (gmx, web, ...) always returns
> FALSE
> i debugged it and found out after getting 503, it does authenticate
> (line 816 ff):
> $authRequired = $this->_smtpSend('AUTH LOGIN', '334|503');
>
> the next statement returns 250 (line 829 ff) - thats fine too:
> if (!$this->_smtpSend('MAIL FROM: ' . $this->_formatAddress($this-
>>from, true))) {
>
> but the next one fails (if its a foreign domain) (line 839 ff):
> if (!$this->_smtpSend('RCPT TO: ' . $this->_formatAddress($to,
> true))) {
>
> it just returns an empty string (which of course results in "return
> false")
>
> the foreign email addresses are valid and this is my exim4 error log:
>
> 2010-06-03 22:45:10 H=my.domain.de (www.domain.de) [83.xxx.xx.102]
> F=<kontakt@domain.de> rejected RCPT <name@foreigndomain.de>: relay not
> permitted
> 2010-06-03 22:45:10 unexpected disconnection while reading SMTP
> command from my.domain.de (www.domain.de) [83.xxx.xx.102]
>
> exim4 is on default - no modifications so far
> and - as i stated - its working if i connect via thunderbird mail
> program. so the smtp server might not be responsible.
> is it really the cake component which fails?
>
> version:
> cake1.3 head
>
> i am really clueless whats going on here, why smtp does not work. any
> ideas? that would save my day. thx
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: