LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2006, 06:51 PM   #1
zentro
LQ Newbie
 
Registered: Sep 2005
Location: Denmark
Posts: 4

Rep: Reputation: 0
Mails sent from server rejected. Possible domain problem?


I have a PHP script that I use for notification via email.

Unfortunately, some email accounts seem to reject emails coming from my server with messages like:

Quote:
This is the Postfix program at host xxxxxxxxxxxxxxxx.com.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

<emailaddresshidden@recipientsdomain.com>: host xyxyxyxyxyx.com[101.101.101.101]
said: 550 <xxxxxxxxxxxxxxxx.com>: No thank you rejected:
Domain not found (in reply to RCPT TO command)
Note: For the sake of privacy I changed the IP's, hostnames, and email addresses.

By reading in various forums and heavy googling I found out that the problem could stem from my DNS settings.

My DNS settings for my domain are as follows:

Quote:
A records:
localhost.mydomain.com - 127.0.0.1 - 43200
mydomain.com - 99.153.128.201 - 43200
*.mydomain.com - 99.153.128.201 - 43200
mail.mydomain.com - 114.100.92.153 - 43200

MX record:
mydomain.com - mail.mydomain.com 10 - 43200
My email is hosted at a different host but I'm still sending out mails from the server (via the php script) from me@mydomain.com. Is this the problem?

Please help!

Thank you.
 
Old 02-03-2006, 10:50 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
Originally Posted by zentro


My email is hosted at a different host but I'm still sending out mails from the server (via the php script) from me@mydomain.com. Is this the problem?

Please help!

Thank you.
yep i think that's the problem
 
Old 02-03-2006, 11:38 PM   #3
zentro
LQ Newbie
 
Registered: Sep 2005
Location: Denmark
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your reply!

OK, the way I see it, that leaves me with to possibilities:

1:
---------------------
Move the mail hosting back to my server so that my DNS records changes to:

Quote:
A records:
localhost.mydomain.com - 127.0.0.1 - 43200
mydomain.com - 99.153.128.201 - 43200
*.mydomain.com - 99.153.128.201 - 43200
mail.mydomain.com - 99.153.128.201 - 43200

MX record:
mydomain.com - mail.mydomain.com 10 - 43200
(Remember: Not my real IPs/domains)


or 2:
---------------------
Keep my mail hosting where it is (on a different server) but somehow change my DNS records so that my mails don't get rejected by recipients. The only question is: How?

Any ideas?
 
Old 02-14-2006, 02:08 AM   #4
zentro
LQ Newbie
 
Registered: Sep 2005
Location: Denmark
Posts: 4

Original Poster
Rep: Reputation: 0
Anybody got any ideas? I'm desparate!
 
Old 02-15-2006, 04:44 PM   #5
devinnull
Member
 
Registered: Dec 2005
Location: UT-USA
Distribution: RHEL 3/4 Servers - FC 5 x64 on the desktop - Edubuntu for the kiddies
Posts: 53

Rep: Reputation: 15
I'd first go to http://www.DNSstuff.com and run the DNS/MX tests against your domain. This is a great site to see how your DNS looks to the rest of the world.

Make sure everything in the public DNS is working and go from there if everything checks out.
 
Old 02-15-2006, 09:53 PM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
there are a couple of ways reverse DNS can work (i think) either verifying email From header or just doing a reverse lookup on the handshake.

best thing is to forward the mail to your actual mailserver and have it sent from there.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Im rejected by server when sending mail Kirmonkey Linux - Security 3 06-24-2005 03:02 AM
Problem with Win XP Clients logging in a Domain with a Samba Server YasoKuhl Linux - Networking 0 05-03-2004 01:06 PM
emails rejected for tranferred domain noisybastard Linux - Networking 5 04-16-2004 05:28 PM
samba server setup domain problem blither Linux - Networking 27 10-23-2003 01:17 PM
Config problem: "Authorization failed: server rejected access" -- help please! womble_timsk Linux - Networking 0 05-22-2003 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration