Forums / Install & configuration / sendmail not working

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?

eZ debug

Timing: Jan 31 2025 01:34:17
Script start
Timing: Jan 31 2025 01:34:17
Module start 'content'
Timing: Jan 31 2025 01:34:17
Module end 'content'
Timing: Jan 31 2025 01:34:17
Script end

Main resources:

Total runtime0.2193 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 587.9297370.2969
Module start 'content' 0.00920.0132 958.22661,013.6563
Module end 'content' 0.02230.1970 1,971.88283,908.9453
Script end 0.2193  5,880.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00482.1749200.0002
Check MTime0.00150.6910200.0001
Mysql Total
Database connection0.00080.343810.0008
Mysqli_queries0.113351.66571410.0008
Looping result0.00150.69141390.0000
Template Total0.196689.610.1966
Template load0.00080.383410.0008
Template processing0.195789.234410.1957
Override
Cache load0.00060.263510.0006
Sytem overhead
Fetch class attribute can translate value0.00231.038110.0023
XML
Image XML parsing0.00030.143210.0003
General
dbfile0.00663.0213200.0003
String conversion0.00000.004030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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