Cron - Mail delivery failed: returning message to sender

Mark_S

Verified User
Joined
Sep 14, 2006
Messages
67
I have a Cron set up as a test to send a basic reminder e-mail.
The cron works, and e-mails are received except for NTL ? (My ISP Virgin Media)

I get a reply almost immediately.
- Mail delivery failed: returning message to sender.

How can i fix this, ive done a few searches but no luck.

553 server.xxxxxxx.co.uk does not exist

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[email protected]
SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=1929:
host smtpin.ntlworld.com [81.103.221.10]: 553 server.xxxxxx.co.uk does not exist

------ This is a copy of the message, including all the headers. ------

Return-path: <[email protected]>
Received: from root by server.xxxxxx.co.uk with local (Exim 4.60)
(envelope-from <[email protected]>)
id 1IRyG2-00027v-GH; Sun, 02 Sep 2007 23:49:30 +0100
To: [email protected]
Subject: 1 htmlServer Payment is Due
MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1
From: [email protected]
Message-Id: <[email protected]>
Date: Sun, 02 Sep 2007 23:49:30 +0100

Strangely it only seems to be my ISP that's knocking the e-mails back,
if i send one to an account on my server its fine.
If i send one to hotmail / msn accounts they get there, if i remember i did get a warning saying something about unknown header?? But that was only a prompt.

This area isnt one of my strongest, hence the question i guess,
any help or questions i can answer to get to the bottom of this,
please ask, its one of those things that keep you awake at night.

server.xxxxxx.co.uk = is the name i have set in the Administrator Settings >> Server's Hostname

I have a forwarder for Root, emails also that i set up and cant find
where that file is again :(

Any help or advice would be appreciated thank you.
Thanks Mark.
 
All those xxxx marks make it impossible to test to see what the problem may be. For more information please look here.

Jeff
 
Sorry about that < over cautious >
Ive filled in the xxxxxxx

[email protected]
SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=1929:
host smtpin.ntlworld.com [81.103.221.10]: 553 server.xxxxxx.co.uk does not exist

------ This is a copy of the message, including all the headers. ------

Return-path: <[email protected]>
Received: from root by server.cruisewirral.co.uk with local (Exim 4.60)
(envelope-from <[email protected]>)
id 1IRyG2-00027v-GH; Sun, 02 Sep 2007 23:49:30 +0100
To: [email protected]
Subject: 1 htmlServer Payment is Due
MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1
From: [email protected]
Message-Id: <[email protected]>
Date: Sun, 02 Sep 2007 23:49:30 +0100


Thanks for any help :)
If its DNS Issues can you explain the problem as basic as possible please, so i can change things. Thank you.

Mark.
 
Just to add :
This only happens when i run a cron job to a mail script i have.
Or from the command line.
If i use the squirrel mail or Uebimiau its fine, but then there not being sent from @server.cruisewirral.co.uk

Thank you if you can help. :)
 
Hey,

The host "server.cruisewirral.co.uk" does not resolve... No IP address for it...

That is what the remote server is complaining about.

Is "server.cruisewirral.co.uk" the actual hostname of the server... If so, lookups fail to resolve an IP address to that name.

David
 
DA Control panel.
Administrator Settings >> Server's Hostname = server.cruisewirral.co.uk

What can i do ?
 
I named my Servers Host name after reading the New Setup Guide
http://www.directadmin.com/newinstall.html

Its only now im trying to automate things, so this would help me to send reminders of payments due, but i also have to be confident that they will
arrive after being sent. And at the moment there not.

Summary
I am getting returned mail from an ISP.
The e-mail is being triggered by a cron job to a php script.
E-mails can be recieved by msn & Hotmail and accounts on my server,
but not by my isp and probably others too due to the problem i have
and i'm not sure of the fix. If any one can guide me / point me in
the right direction of what i need to do next it would be appreciated.

Mark.
 
Humm -
After a dig around my own user accounts i wondered why i wasnt getting any e-mails of from the message system. I had them going to my ISP as a backup measure i and there rejecting my mail.

Any offers of help :)
I havnt a clue how or why this is happening or how to fix it.
 
Hey,

DA Control panel.
Administrator Settings >> Server's Hostname = server.cruisewirral.co.uk

What can i do ?

Hummm, like I said... It needs an IP Address associated with it. Go to DNS Stuff, or suitable equivilent, and do a lookup on "server.cruisewirral.co.uk".

You will notice it does not show an IP Address... That appears to be the problem. You need to create that host in your DNS.

David
 
Thanks David.

Now how do i do that?

I'm getting myself confused a little here?
You see these issues are coming to light only now after my server was re-installed, but previous to the re-install i never had these problems, so it must be something to do with my set up? Well configuration of DA.

Administrator Settings >> Server's Hostname = server.cruisewirral.co.uk
Now ive set that as i'm sure ive read that this can not be an actual domain on my server? It has to be unique.
http://www.directadmin.com/forum/showpost.php?p=103637&postcount=13


If my memory serves me right which i don't think it is at the moment, i used to have a domain listed and the Server's Hostname = server.cruisewirral.co.uk the same, but as i say I'm probably more confused than i should be.

If they do have to be different Server's Hostname = server.cruisewirral.co.uk and a Domain name, then i guess i have to set it via the DNS in the Admin - User Level??

I need some guidance, this one i'm not getting my head around and i don't know why?? Its probably because before my re-install i didn't have these problems. :(

or can i just set up a subdomain in my admin account?
server.cruisewirral.co.uk ??
 
Last edited:
There's no specific answer available because how you set up your DNS is specific to you and your systems.

But when I attempt a trace on the servername server.cruisewirral.co.uk, Here's what I get:
Code:
$ nslookup server.cruisewirral.co.uk
Server:         206.13.29.12
Address:        206.13.29.12#53

** server can't find server.cruisewirral.co.uk: NXDOMAIN

[jlasman@of1 ~]$ dig +trace server.cruisewirral.co.uk

; <<>> DiG 9.3.1 <<>> +trace server.cruisewirral.co.uk
;; global options:  printcmd
.                       483072  IN      NS      I.ROOT-SERVERS.NET.
.                       483072  IN      NS      J.ROOT-SERVERS.NET.
.                       483072  IN      NS      D.ROOT-SERVERS.NET.
.                       483072  IN      NS      H.ROOT-SERVERS.NET.
.                       483072  IN      NS      A.ROOT-SERVERS.NET.
.                       483072  IN      NS      B.ROOT-SERVERS.NET.
.                       483072  IN      NS      F.ROOT-SERVERS.NET.
.                       483072  IN      NS      M.ROOT-SERVERS.NET.
.                       483072  IN      NS      L.ROOT-SERVERS.NET.
.                       483072  IN      NS      C.ROOT-SERVERS.NET.
.                       483072  IN      NS      G.ROOT-SERVERS.NET.
.                       483072  IN      NS      E.ROOT-SERVERS.NET.
.                       483072  IN      NS      K.ROOT-SERVERS.NET.
;; Received 436 bytes from 206.13.29.12#53(206.13.29.12) in 16 ms

uk.                     172800  IN      NS      NS4.NIC.uk.
uk.                     172800  IN      NS      NS5.NIC.uk.
uk.                     172800  IN      NS      NS6.NIC.uk.
uk.                     172800  IN      NS      NS7.NIC.uk.
uk.                     172800  IN      NS      NSA.NIC.uk.
uk.                     172800  IN      NS      NSB.NIC.uk.
uk.                     172800  IN      NS      NSC.NIC.uk.
uk.                     172800  IN      NS      NSD.NIC.uk.
uk.                     172800  IN      NS      NS1.NIC.uk.
uk.                     172800  IN      NS      NS2.NIC.uk.
uk.                     172800  IN      NS      NS3.NIC.uk.
;; Received 505 bytes from 192.36.148.17#53(I.ROOT-SERVERS.NET) in 216 ms

cruisewirral.co.uk.     172800  IN      NS      ns2.cruisewirral.co.uk.
cruisewirral.co.uk.     172800  IN      NS      ns1.cruisewirral.co.uk.
;; Received 111 bytes from 194.83.244.131#53(NS4.NIC.uk) in 157 ms

cruisewirral.co.uk.     14400   IN      SOA     ns1.cruisewirral.co.uk. root.cruisewirral.co.uk. 2007051801 14400 3600 1209600 86400
;; Received 88 bytes from 85.17.58.42#53(ns2.cruisewirral.co.uk) in 152 ms

$
The last few lines tell us that ns1.cruisewirral.co.uk and ns2.cruisewirral.co.uk are authoritative for cruisewirral.co.uk, and that neither of them are returning and IP# for server.cruisewirral.co.uk.

A few more digs show us those nameservers are available at:
Code:
ns1.cruisewirral.co.uk   85.17.58.24
ns2.cruisewirral.co.uk   85.17.58.42

So what you need to do is create A records in the parent zone for cruisewirral.co.uk at those two nameservers.

If those two nameservers are really on the same server, and that server is your DirectAdmin server, then you simply need to add an A record for server.cruisewirral.co.uk in the zone file for cruisewirral.co.uk on that server.

If not, then it gets a bit more complex and you'll need to discuss your DNS setup for your domain with whomever set it up originally.

Jeff
 
Thank you Jlasman,
My Host provider is now looking into this?
Well i asked them if they could shed some light on the matter and they have changed the hosting server name to web.cruisewirral.co.uk in my "host" file they called it.

This was Thursday,
they asked me to check to see if i was getting the same error after those changes and i was.

I replied to inform them, but now its the weekend i will have to wait until monday for a reply.

Sorry about that, i will keep this post updated.
 
The setting in your /etc/hosts file should match what's returned by:
Code:
$ hostname
You'll still need the A record.

Jeff
 
Hi Thanks again Jlasman

I think its now working?
Ive ran the script from root and it now send e-mails to my ISP.

Configuration? --> Well what happened.

My host support as i explained changed the "Servers Host Name" to web.cruisewirral.co.uk

Well it still didn't work?
And they replied with that domain does not exit?
And said i needed to create it.

Okay
Admin account - Domain Set up
Added web.cruisewirral.co.uk

>>>>>>>>>>> ERROR <<<<<<<<<<<
You cant have a domain and host name the same.

Ok
So i then used the "Subdomain Managment" option in the User level Admin
and created web.cruisewirral.co.uk

And it works?

when i do cat hosts

i get

127.0.0.1 localhost.localdomain
85.17.58.24 web.cruisewirral.co.uk
85.17.58.24 cruisewirral.co.uk
85.17.58.24 server.cruisewirral.co.uk
85.17.58.24 web.cruisewirral.co.uk

Thanks for any advice ;)

Mark.
 
Last edited:
Back
Top