Page 1 of 2

What Hostname to keep for Ideal Mail Delivery

Posted: Sun Feb 15, 2015 4:50 pm
by mehargags
Hi Imperio & other Seniors...

I'm going on a bit of confusion...
Can you suggest in general case, what should we keep as out VPS Server's Hostname for a mulch-domain hosting ?

for eg: I have my domain name as mehargags.com.
Should I have my VPS hostname as mehargags.com or something like srv.mehargags.com ?

I'm asking this in the context of Email Delivery and other Authenticity checks that are done for IP's and Mailhosts.

I have one of my server's hostname set = domain.com but then I find that server isn't able to route mail to its own domain name with : exim -bt [email protected].

Or is there a better way to configure all this ?

Pls suggest

Re: What Hostname to keep for Ideal Mail Delivery

Posted: Sun Feb 15, 2015 7:03 pm
by sim
Hostname must be Fully Qualified Domain Name (FQDN), such as hostname.expample.com
Personally i use host.domain.com

Re: What Hostname to keep for Ideal Mail Delivery

Posted: Sun Feb 15, 2015 7:36 pm
by mehargags
Sim,
I do understand hostname should be a resolvable FQDN, however that was not my question.

My Question is: Is it OK to have a domain.tld as your VPS's Hostname ? or will it have any consequences or other problems ?

I also want to know what generally people tend to do when they make their Servers/ VPS

Re: What Hostname to keep for Ideal Mail Delivery

Posted: Mon Feb 16, 2015 3:59 am
by ivanh
I can't imagine you running into any issues not using a subdomain as a hostname though I haven't used it myself.

My convention is server***.domain.tld.

*** denotes the server number, eg. 013.

Re: What Hostname to keep for Ideal Mail Delivery

Posted: Tue Feb 24, 2015 11:32 pm
by sanna
mehargags wrote:Hi Imperio & other Seniors...

I'm going on a bit of confusion...
Can you suggest in general case, what should we keep as out VPS Server's Hostname for a mulch-domain hosting ?

for eg: I have my domain name as mehargags.com.
Should I have my VPS hostname as mehargags.com or something like srv.mehargags.com ?

I'm asking this in the context of Email Delivery and other Authenticity checks that are done for IP's and Mailhosts.

I have one of my server's hostname set = domain.com but then I find that server isn't able to route mail to its own domain name with : exim -bt [email protected].

Or is there a better way to configure all this ?

Pls suggest
like mine ?
2015-02-13 04:25:15 Start queue run: pid=24860
2015-02-13 04:25:15 1YLpf0-0003VB-2L Message is frozen
2015-02-13 04:25:15 1YMC8Y-0005vT-GT Message is frozen
2015-02-13 04:25:15 1YMC8U-0005tU-Dd Message is frozen
2015-02-13 04:25:15 1YLTBm-0002OS-FY Unfrozen by errmsg timer
2015-02-13 04:25:15 1YLTBm-0002OS-FY ** [email protected]: Unrouteable address

Re: What Hostname to keep for Ideal Mail Delivery

Posted: Wed Feb 25, 2015 7:24 am
by mehargags
sanna
you don't seem to have your hostname setup properly.
pls check /etc/hostname and make proper entries.
Need to check your Exim configs too

Re: What Hostname to keep for Ideal Mail Delivery

Posted: Wed Feb 25, 2015 1:38 pm
by sanna
mehargags wrote:sanna
you don't seem to have your hostname setup properly.
pls check /etc/hostname and make proper entries.
Need to check your Exim configs too
thanks Mehargags, I have Hosts file not hostname (Centos 5.5) :
[root@srv1 etc]#
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

Re: What Hostname to keep for Ideal Mail Delivery

Posted: Wed Feb 25, 2015 3:23 pm
by sim
sanna wrote:
mehargags wrote:sanna
you don't seem to have your hostname setup properly.
pls check /etc/hostname and make proper entries.
Need to check your Exim configs too
thanks Mehargags, I have Hosts file not hostname (Centos 5.5) :
[root@srv1 etc]#
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
Make it like this:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
SERVER's_IP hostname.domain.com hostname
Replace SERVER's_IP with ip assigned to the server and hostname.domain.com with your current domain/ hostname.

Re: What Hostname to keep for Ideal Mail Delivery

Posted: Wed Feb 25, 2015 4:10 pm
by sanna
sim wrote:
sanna wrote:
mehargags wrote:sanna
you don't seem to have your hostname setup properly.
pls check /etc/hostname and make proper entries.
Need to check your Exim configs too
thanks Mehargags, I have Hosts file not hostname (Centos 5.5) :
[root@srv1 etc]#
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
Make it like this:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
SERVER's_IP hostname.domain.com hostname
Replace SERVER's_IP with ip assigned to the server and hostname.domain.com with your current domain/ hostname.
ok many thanks:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
104.194.14.77 srv1.iacserver.com srv1

I do a echo "MailCheck- Test Mail sent $(date +"%T")" | mail -s Testing affari@ mclink.it
but no email in my inbox

Exim main.log:
2015-02-25 11:05:22 1YQeSg-0002i8-Qz <= [email protected] U=root P=local S=384
2015-02-25 11:05:25 1YQeSg-0002i8-Qz ** [email protected] R=dnslookup T=remote_smtp: SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=1418: host mx1.mclink.it [195.78.215.100]: 553 #5.1.8 Domain of sender address <[email protected]> does not exist
2015-02-25 11:05:25 1YQeSj-0002iB-OA <= <> R=1YQeSg-0002i8-Qz U=exim P=local S=1390
2015-02-25 11:05:25 1YQeSg-0002i8-Qz Completed
2015-02-25 11:05:25 1YQeSj-0002iB-OA ** [email protected]: Unrouteable address
2015-02-25 11:05:25 1YQeSj-0002iB-OA Frozen (delivery error message)

Re: What Hostname to keep for Ideal Mail Delivery

Posted: Wed Feb 25, 2015 4:13 pm
by sim
affari@ mclink.it
did you really left blank space?