I bought a VPS from OVH.
This Ubuntu VPS hostname is something like vps12345
or vps12345.ovh.net
.
If I test sendmail via command line to send an email to my mail test@gmail.com, it works: I receive an email from test@vps12345@ovh.net
.
But I'd like to send mail from my installed domain (for instance: test@mytestdomain.com
), and if test from my PHP code, mail sent to Gmail arrives but with a lot time late.
So I suppose that Gmail (or anyother email provider) don't accept emails with header from X domain, but from an hostname Y...
So how can I send email from my vps12345 using other domain (which I own and host on that VPS)?
Do I need to rename VPS hostname?
Thanks