sendmail not working

Author Message

Jianjun Hu

Monday 22 December 2008 8:33:29 am

Hi, there
My <b>eZ Publish 4.0.1</b> based website is hosted by <b>Godaddy linux host</b>.
I'm using <b>sendmail</b> for email outgoing.
The settings for sendmail in <b>/settings/override/site.ini.append.php</b> are as following:

[MailSettings]
Transport=sendmail
TransportServer=
TransportUser=
TransportPassword=
[email protected]
[email protected]

When I test the sendmail functionality by registering a new user, a strange thing happened. After I register a new user with a mailbox <b>[email protected]</b>, the mailbox <b>[email protected]</b> ( other than <b>[email protected]</b>) received a email contained the following centent from <b>[email protected]</b>

The original message was received at Sun, 21 Dec 2008 17:46:54 -0700
from localhost.localdomain [127.0.0.1]

  ----- The following addresses had permanent fatal errors -----
<[email protected]>
    (reason: 553 sorry, your mail was administratively denied. (#5.7.1))

  ----- Transcript of session follows -----
... while talking to relay-hosting.secureserver.net:
>>> MAIL From:<[email protected]> SIZE=1299
<<< 553 sorry, your mail was administratively denied. (#5.7.1)
501 5.6.0 Data format error
Reporting-MTA: dns; linhostssl21.prod.mesa1.secureserver.net
Received-From-MTA: DNS; localhost.localdomain
Arrival-Date: Sun, 21 Dec 2008 17:46:54 -0700

Final-Recipient: RFC822; [email protected]
Action: failed
Status: 5.1.3
Diagnostic-Code: SMTP; 553 sorry, your mail was administratively denied. (#5.7.1)
Last-Attempt-Date: Sun, 21 Dec 2008 17:46:54 -0700


-----Inline Message Follows-----


<!-- START: including template: design/standard/templates/user/registrationinfo.tpl (design:user/registrationinfo.tpl) -->
Thank for you registered at localhost/ezp/index.php.

Your account infomation.
username: myusername
email: [email protected]
pass: mypassword

Clikc the following link to active you account.
http://www.mydomain.com/index.php?/chi/user/activate/4857eeec99dc7504ea27c3bb5beba429/274


link to user infomation:
http://www.mydomain.com/index.php?/chi/content/view/full/274

<!-- STOP: including template: design/standard/templates/user/registrationinfo.tpl (design:user/registrationinfo.tpl) -->



-----Inline Attachment Follows-----


<!-- START: including template: design/standard/templates/user/registrationinfo.tpl (design:user/registrationinfo.tpl) -->
Thank for you registered at  localhost/ezp/index.php.

Your account infomation.
username: myusername
email: [email protected]
pass: mypassword


Clikc the following link to active you account.
http://www.mydomain.com/index.php?/chi/user/activate/4857eeec99dc7504ea27c3bb5beba429/274


link to user infomation:
http://www.mydomain.com/index.php?/chi/content/view/full/274

<!-- STOP: including template: design/standard/templates/user/registrationinfo.tpl (design:user/registrationinfo.tpl) -->

When I click the link <b>http://www.mydomain.com/index.php?/chi/user/activate/4857eeec99dc7504ea27c3bb5beba429/274</b>, the new user registered succefully. In fact, the mailbox ([email protected]) for the new user didn't received email anymore.

Any help would be appreciated !

Best regards!

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

Kristof Coomans

Monday 22 December 2008 9:17:45 am

Hi OnlyBlue

Does your GoDaddy linux host allows mail relaying for domains that aren't yours, like yahoo.com in this case? Try to change the AdminEmail and EmailSender settings to an address of a domain configured in your GoDaddy account. Most likely this is not an eZ Publish issue, as I find a lot of other topics on the internet about this: http://www.google.be/search?q=godaddy+%2B+553+sorry%2C+your+mail+was+administratively+denied

Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Jianjun Hu

Tuesday 23 December 2008 7:45:18 am

Hi, Kristof Coomans
You are right! Thanks for your help!
Two problems remain unsolved.
1. The following code in email is redundant.

<!-- START: including template: design/standard/templates/user/registrationinfo.tpl (design:user/registrationinfo.tpl) -->

<!-- STOP: including template: design/standard/templates/user/registrationinfo.tpl (design:user/registrationinfo.tpl) -->

2. The <b>%siteurl</b> is not correct.

Thank you for registering at localhost/ezp/index.php.

It should be <b>mydomain/index.php</b>

I didn't figure out how to resolve these two problems until now. Any help would be most welcome.

With best regards!

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

Kristof Coomans

Tuesday 23 December 2008 11:23:40 pm

Hi again OnlyBlue

For 1), take a look at http://ezpedia.org/wiki/en/ez/debug_templatesettings

2) the user/register view uses the current hostname (from the HTTP headers) to send the e-mail with. You need to ensure there is a http:// prepended in the mail template it uses. I agree though that it is not a good practice to just use the host name from the request, and I will report this in the issue tracker.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kristof Coomans

Tuesday 23 December 2008 11:36:50 pm

2) was reported already, see http://issues.ez.no/10129

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Jianjun Hu

Wednesday 24 December 2008 1:25:09 am

Hi, Kristof Coomans

The first problem was solved by clearing all che cache.
I have saw the http://issues.ez.no/10129 just now and know how to solved the second problem.

Thank you very much.

Best regards!

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.