Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Recently I installed sendmail on a Dedicated Server running Fedora Core 8.
Everything seems to be working fine, but for some reason it won't send emails to the domain its hosted on. Which wouldn't make sense since it has nothing to do with its functionality (or so I thought).
So, if my domain was (www.tryingmail.com), the server hosting (www.tryingmail.com) can't send to (any@tryingmail.com) but can send to (anyotheraddress@hotmail.com).
Its worth noting that I'm using Google Accounts for the domains email accounts as well.
1. Can others send to your domain?
2. What is the hostname of your server you built?
1. Well yeah, like said incoming Emails go to Google through Accounts.
2. I'm running a GoDaddy Dedicated Server, this is the first problem I've had with it. The hostname however, is ip-208.109.218.13.ip.secureserver.net
Several ISP's are being very particular who they receive mail from in order to combat spam. Most major mail servers you now have to have Reverse DNS records in order for them to consider receiving mail from your mail server.
Here is the next thing to do in your testing
From the command shell on your Linux server we want to simulate sending an email via telnet so you can see the actual error message that the receiving mail server is required by RFQ to give you.
Enter in the following commands being sure to type correctly. During this process your backspace key makes the entire line void and you will need to start the line completely over
telnet <ip address of your actual mail server> 25
helo me
mail from:<your email address>
rcpt to:<your email address>
data
Subject: this is a test
this is a test
.
It is important that you end with a period on a line by itself. This should complete the mail transaction. If you do not receive any errors, the mail should go through. If you receive any errors, please post.
Distribution: Debian,Slackware,FreeBSD,CentOS,Red Hat,Windows Server 2008
Posts: 133
Rep:
Lsn, Im facing the same problem. check /etc/mail/local-host-names and remove your domain name from there then /etc/init.d/sendmail restart, this is supposed to work well, although I did this and didnt work.
Several ISP's are being very particular who they receive mail from in order to combat spam. Most major mail servers you now have to have Reverse DNS records in order for them to consider receiving mail from your mail server.
Here is the next thing to do in your testing
From the command shell on your Linux server we want to simulate sending an email via telnet so you can see the actual error message that the receiving mail server is required by RFQ to give you.
Enter in the following commands being sure to type correctly. During this process your backspace key makes the entire line void and you will need to start the line completely over
telnet <ip address of your actual mail server> 25
helo me
mail from:<your email address>
rcpt to:<your email address>
data
Subject: this is a test
this is a test
.
It is important that you end with a period on a line by itself. This should complete the mail transaction. If you do not receive any errors, the mail should go through. If you receive any errors, please post.
Sending to a Hotmail address worked fine, sending to my own domain I got this:
Code:
helo me
250 ip-208-109-218-13.ip.secureserver.net
mail from:<me>@<mydomain>.com
250 2.1.0 Ok
rcpt to:<me>@<mydomain>.com
550 5.1.1 <<me>@<mydomain>.com>: Recipient address rejected: User unknown in virtual mailbox table
(Obviously I removed the email and domain addresses)
Lsn, Im facing the same problem. check /etc/mail/local-host-names and remove your domain name from there then /etc/init.d/sendmail restart, this is supposed to work well, although I did this and didnt work.
Sending to a Hotmail address worked fine, sending to my own domain I got this:
Code:
helo me
250 ip-208-109-218-13.ip.secureserver.net
mail from:<me>@<mydomain>.com
250 2.1.0 Ok
rcpt to:<me>@<mydomain>.com
550 5.1.1 <<me>@<mydomain>.com>: Recipient address rejected: User unknown in virtual mailbox table
Are you sure that the sendmail you've installed is running? Because this is a postfix error AFAIK.
So what you think about that?
I'm not familiar with postfix, so I cannot help you further, but it wouldn't be difficult to configure it to accept mail for your domain. You can start by reading this.
I've already explained that -I don't want to setup the server to receive mail-.
It already sends out mail just fine.. the problem is that when it wants to sent to *@domainitshostedon.com - I'm guessing its sending to itself, which is wrong.
The email addresses are managed with Google Mail, and the domain uses their MX - aspmx.l.google.com
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.