Sendmail wont send email to my own domain
Hi,
I have a website on a vps server and normally the server is maintained by a good friend of mine who knows what he is doing.
Due to personal problems this friend is unable to help me.
Seeing i have serious problems with sendmail that need resolving i have been forced to dive into the world of linux wit absolutly 0 prior expirience. So please bear with me..
The situation..
The VPS server is running a firewall, mailserver, and webserver.
On the webserver im running sendmail which serves as a client to send email trough my website to my customers and to me. The sendmail client uses the mailserver to relay all emails to. Whenever sendmail recieves an email it will relay that email to the mailserver who handles the rest.
Since 2 days ago i no longer recieve emails for my domain.
The sendmail server has no problem sending emails to the rest of the world but decided to no longer send email to my own domain.
The mailserver is behind a firewall and i cannot connect to the mailserver with internet ip. I need to use LocalIP.
i Acomplish this my having the following in sendmail.cf :
MAILER_DEFINITIONS
define(`MAIL_HUB', `xenomail1.xenocide.')dnl
define(`LOCAL_RELAY', `xenomail1.xenocide.')dnl
My hosts file reads as follows:
127.0.0.1 localhost
127.0.1.1 xenoweb1.xenocide.local xenoweb1
192.168.200.30 xenomail1.xenocide xenomail1
192.168.200.30 is the ip of the mailserver.
When i use the commandline mail command to send email to say a gmail account the mail goes trough fine.
When i send email to my own domain the adres changes on the mailserver to info-xenomail1.xenocide and i get an errors saying host or domain name is not found..
Sadly i cant post logs because i get errors from the site that i cant post at signs etc until i have 15 posts :(
I have been struggling with this for the past 19 hours and have yet to sleep. I sincerely hope somebody can shed some light on the situation and explain in noob terms what i should investigate/change.
Thasnks in advance for any help!