Page 1 of 1
Problem Email noreply
Posted: Wed Dec 04, 2013 10:12 am
by robotini
Hi, Im testing the cp and this great, but I noticed that the mail of the notifications don't have extension of the domain, how can I fix that?
The emails arrive with: noreply@mydomain
If my domain is mydomain.com
Sorry for my bad english.
I have installed vestacp on ubntu 13.04, 32 bit.
Re: Problem Email noreply
Posted: Wed Dec 04, 2013 10:23 am
by skid
What does the hostname command return? Most probably system hostname wasn't set as
FQDN. You can set it by running following commands
Code: Select all
hostname mydomain.com
echo "mydomain.com" >/etc/hostname
Re: Problem Email noreply
Posted: Wed Dec 04, 2013 10:37 am
by robotini
I have done the commands, but when I reboot the server, the hostname getting back without extension.
Code: Select all
root@mydomain:~# hostname
mydomain
Re: Problem Email noreply
Posted: Wed Dec 04, 2013 10:40 am
by skid
Make sure FQDN is defined in /etc/hostname
Re: Problem Email noreply
Posted: Wed Dec 04, 2013 10:42 am
by robotini
/etc/hostname
Is not saved after reboot vps.
Re: Problem Email noreply
Posted: Wed Dec 04, 2013 10:49 am
by skid
You can change content of this file using text editor.
Re: Problem Email noreply
Posted: Wed Dec 04, 2013 10:51 am
by robotini
I've done it, but not change.
Re: Problem Email noreply
Posted: Thu Dec 05, 2013 5:47 pm
by marcelorider
Well i've solved it with this:
Login as root user, then
edit the
rc.local file with this command:
Then add this code before "
exit 0":
Code: Select all
echo exemple.com > /etc/hostname
/etc/init.d/hostname.sh start
After that, reboot, and test if you see something like this:
Should return "
example.com"
Should return "
example.com"
Just don't forget to setup on your
VPS Panel the correct hostname you are using.