FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Sales » WebHosting UK Services

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 01-09-10, 01:11 PM
new member
 
Join Date: Sep 2010
Posts: 4
Question Mailbox unavailable. No such user here.

I originally posted this in the wrong forum, so apologies for duplication.

Does anyone have any advice on how to get emails relayed from the Webhosting UK Mail Server?

I have setup an ASP.net 3.5 website which is hosted on Webhosting UK. In development I have used ASP controls (<asp: PasswordRecovery>) to allow users to be sent a new password via email.

The solution works perfectly on my development server, but I'm having problems once it's deployed to Web Hosting UK.

I have created an email account on my domain using DotNetPanel which i can see sends and receives emails OK.

When my site tries to send an email TO the user registered on my domain everything works OK.

However, when the website tries to send email TO an external email address, i get the following error:

"Mailbox unavailable. The server response was: <simon.bowes@btinternet.com> No such user here

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: <simon.bowes@btinternet.com> No such user here"

Investigating this issue suggests that the mail server is restricted to prevent spamming, by disabling relaying of emails. I therefore assume that there must be a setting in my ASP code which can reassure the mail server that my email is genuine. Or is there something else I have got wrong?

Here is the code in my website Web.config file for mail setting:

<system.net>
<mailSettings>
<smtp>
<network host="mail.survey.juliabowes.com" port="25" userName="admin@survey.juliabowes.com" password="******" />
</smtp>
</mailSettings>
</system.net>


Has anyone any advice on how to get round this problem?
Reply With Quote

  #2 (permalink)  
Old 01-09-10, 08:26 PM
Moderator
 
Join Date: Aug 2009
Posts: 87
Default

Quote:
Originally Posted by Tasmin96 View Post

Here is the code in my website Web.config file for mail setting:

<system.net>
<mailSettings>
<smtp>
<network host="mail.survey.juliabowes.com" port="25" userName="admin@survey.juliabowes.com" password="******" />
</smtp>
</mailSettings>
</system.net>


Has anyone any advice on how to get round this problem?
Your web.config is correct, In order to relay you need to authenticate your email. You are using the correct method, Can you kindly let me know the URL and PM me a user name and password to login to your restricted Area to run a couple of tests please ?

Regards,
Gerrad
Reply With Quote

  #3 (permalink)  
Old 01-09-10, 10:06 PM
new member
 
Join Date: Sep 2010
Posts: 4
Thumbs up Partial Solution/Workround

I have found a way round the problem now by forcing a new smtp send using the SendingMail event of the PasswordRecovery control.

Clearly the Webhosting UK Mail server was relaying the email correctly, provided it was instructed correctly, which I guess the PasswordRecovery control in ASP.NET wasn't doing.

Here is my v.simple code which has got round the problem.

Quote:
Protected Sub PasswordRecovery1_SendingMail(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MailMessageEventArgs) Handles PasswordRecovery1.SendingMail
Dim thisSMTP As New SmtpClient
thisSMTP.Send(e.Message)
e.Cancel = True
End Sub
This seems to do what I assumed the control was doing anyway, so I'm not exactly sure how this has fixed the problem, but i certainly dont get the error any longer and the email arrives at the destination, so I'm happy (apart from wasting so much time trying to find out what i was doing wrong)

Thanks to those who looked at my post and to Gerrard for trying to help me find a resolution.
Reply With Quote

  #4 (permalink)  
Old 05-09-10, 09:20 AM
sysadmin's Avatar
Administrator
 
Join Date: Oct 2006
Posts: 295
Default

Thank you for posting out the solution to the email relay problem, it'd help others for sure..
Reply With Quote

Reply

Tags
asp.net, email, no such user here, smtp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 05:40 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Shared Windows Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials