Page 1 of 1

Send email to external MX/mail server

Posted: Wed Jan 15, 2020 1:29 pm
by Spheerys
Hi,

I have a domain.com hosted on my VestaCP
But the mail of this domain are hosted by an external provider (OVH)
The command host -t mx domain.com give this :

Code: Select all

domain.com mail is handled by 1 mx1.ovh.net.
domain.com mail is handled by 100 mxb.ovh.net.
domain.com mail is handled by 5 mx2.ovh.net.
An application hosted on VestaCP needs to send mails to [email protected]

But there are not working. On the log I have this :

Code: Select all

2020-01-15 14:22:46 1iridC-0004Kg-K3 <= [email protected] U=root P=local S=420
2020-01-15 14:22:46 1iridC-0004Kg-K3 ** [email protected]: Unrouteable address
2020-01-15 14:22:46 1iridC-0004Kq-MF <= <> R=1iridC-0004Kg-K3 U=Debian-exim P=local S=1672
2020-01-15 14:22:46 1iridC-0004Kg-K3 Completed
2020-01-15 14:22:46 1iridC-0004Kq-MF ** [email protected]: Unrouteable address
2020-01-15 14:22:46 1iridC-0004Kq-MF Frozen (delivery error message)
I understand the exim server tryied to send the mail locally (because is hosting an unused local bind zone), but how to tell him "give theses mails go outside the local server" ?

Re: Send email to external MX/mail server

Posted: Wed Jan 15, 2020 3:19 pm
by Spheerys
I have found the way : you just have to delete mail domain for the corresponding user :)