Solved

SMPT to same domain

Posted on 2014-02-14
11
264 Views
Last Modified: 2014-03-03
My SMPT will not deliver to my own domain.
My asp.net web app creates an email and sens it to a domain recipient email address but the email just sits in the queue folder. If I change the recipient email to my yahoo account then the email gets delivered no problem.

Would be grateful for any help

Thanks
0
Comment
Question by:Soluga
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 29

Expert Comment

by:becraig
ID: 39859706
What type of SMTP solution are you using ?

The smtp server built into windows ?

If this is windows can you please provide the event log entries referencing the mail delivery attempt.
0
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 39860067
you have to configure exchange to allow smtp traffic from that machiine
0
 
LVL 1

Author Comment

by:Soluga
ID: 39861049
Hi David,

My server is hosted by 1and1 and has run perfectly fine for 3 years. But now I have this problem. Do you think it could be something that 1and1 have done?
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 29

Expert Comment

by:becraig
ID: 39862104
I would personally suggest you investigate this with 1and1 support first.

If you are able to send to external addresses it sounds like your server is operating just fine, your internal domain may be on a 1and1 blacklist (Verify with them).

In any event since your email solution is hosted, check with the host.
0
 
LVL 16

Expert Comment

by:Kamal Khaleefa
ID: 39862385
make sure you add the correct smtp and if credentials needed.

see this example:
   Dim message1 As New MailMessage("myemail@mydomain.com", ToEmail, "Tmy subject", "my text")
                    message1.IsBodyHtml = True

                    Dim emailClient As New SmtpClient("mysmtp")
                    '  Dim basicAuthenticationInfo As _
                    'New System.Net.NetworkCredential("username", "password")

                    '  emailClient.UseDefaultCredentials = False
                    '  emailClient.Credentials = basicAuthenticationInfo
   emailClient.Send(message1)

Open in new window

0
 
LVL 1

Author Comment

by:Soluga
ID: 39862593
I can send to my email domain names from outlook etc and it works just fine. Its just emails generated by my web applications on the server.
I have tried setting the authentication credentials and it does not make any difference.

I have raised the matter with 1and1 but don't seem to be getting anywhere.
0
 
LVL 1

Author Comment

by:Soluga
ID: 39885047
This is what is in the error log. But it does not make sense as the error does not get generated if it is to an email address at an external domain.....

Message delivery to the host 'xxx.xxx.xx.xxx' failed while delivering to the remote domain 'mydomain.com' for the following reason: An SMTP protocol error occurred.
 The SMTP verb which caused the error is 'HELO'.  The response from the remote server is '501 Syntax error in parameters or arguments
0
 
LVL 29

Expert Comment

by:becraig
ID: 39885056
Can you provide the bit of code that sends the email ?
0
 
LVL 1

Author Comment

by:Soluga
ID: 39885244
here is the code from a simple text file I am using, which i drop into the pick up folder to test. If I change the to address to any other apart from my domain emails it gets sent no problem. As soon as I change it to one of my domain emails it just sits in the queue folder.

From: my@yahoo.co.uk
To: me@mydomain.com
Subject: testing SMTP
This is the test message body. Seems to be working.
0
 
LVL 1

Accepted Solution

by:
Soluga earned 0 total points
ID: 39885579
I have created an additional virtual smtp server and added the domain www.mydomain.com and it seems to be working. However it will only send the emails when I re-start the server, when I then send another email it just sits in queue until I do another re-start!
0
 
LVL 1

Author Closing Comment

by:Soluga
ID: 39900011
This solved the problem
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question