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=
AdminEmail=yahoobox@yahoo.com
EmailSender=yahoobox@yahoo.com

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>gmailbox@gmail.com</b>, the mailbox <b>yahoobox@yahoo.com</b> ( other than <b>gmailbox@gmail.com</b>) received a email contained the following centent from <b>MAILER-DAEMON@linhostssl21.prod.mesa1.secureserver.net</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 -----
<gmailbox@gmail.com>
    (reason: 553 sorry, your mail was administratively denied. (#5.7.1))

  ----- Transcript of session follows -----
... while talking to relay-hosting.secureserver.net:
>>> MAIL From:<yahoobox@yahoo.com> 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; gmailbox@gmail.com
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: gmailbox@gmail.com
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: gmailbox@gmail.com
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 (gmailbox@gmail.com) 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.

eZ debug

Timing: Jan 31 2025 04:25:11
Script start
Timing: Jan 31 2025 04:25:11
Module start 'layout'
Timing: Jan 31 2025 04:25:11
Module start 'content'
Timing: Jan 31 2025 04:25:11
Module end 'content'
Timing: Jan 31 2025 04:25:11
Script end

Main resources:

Total runtime0.0149 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1328151.2109
Module start 'layout' 0.00540.0027 739.343836.6484
Module start 'content' 0.00810.0055 775.9922102.2813
Module end 'content' 0.01360.0012 878.273441.9922
Script end 0.0148  920.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.3476140.0002
Check MTime0.00117.6880140.0001
Mysql Total
Database connection0.00074.606410.0007
Mysqli_queries0.002315.202830.0008
Looping result0.00000.221310.0000
Template Total0.00085.710.0008
Template load0.00074.486110.0007
Template processing0.00021.196110.0002
Override
Cache load0.00053.100810.0005
General
dbfile0.001812.239980.0002
String conversion0.00000.065740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs