Solved

SMPT to same domain

Posted on 2014-02-14
11
260 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
11 Comments
 
LVL 28

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 78

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
 
LVL 28

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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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 28

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now