Hi,
As I couldn't find the answer using google / forum search I will have to ask it here, hopefully you have a good and proper solution for this.
For e-mail, a lot of my domains are using Google Apps to host the e-mail service. This works great, no problems so far. However, when I try to send a mail using a php-script, for example, just a contact form on a website, it does not deliver it properly. The e-mails will be delivered on the local webserver which, in my case, is not the mail server for my domain. The only way to resolve this, is to remove the domain from /etc/virtual/domains.
In the exim config file:
domainlist local_domains = lsearch;/etc/virtual/domains
When I remove the domain from this file, all my issues are resolved.
It also happens in the following situation:
A mail is sent to an e-mail address/domain that is on this same directadmin server. For example: [email protected].
This e-mail adres is an forwarder on the directadmin server to [email protected]. This googleapps-domain.com is configured for webhosting on this same server and is present in /etc/virtual/domains.
Since the mail was sent to [email protected], and googleapps-domain.com is also on this same server for webhosting the mail is delivered on the local domain. Even though the MX-records of the googleapps-domain are not set to the local server.
Can someone please come-up with a real solution instead of editting the /etc/virtual/domains file? Since this file is not accessible for all users?
Thanks in advance.
As I couldn't find the answer using google / forum search I will have to ask it here, hopefully you have a good and proper solution for this.
For e-mail, a lot of my domains are using Google Apps to host the e-mail service. This works great, no problems so far. However, when I try to send a mail using a php-script, for example, just a contact form on a website, it does not deliver it properly. The e-mails will be delivered on the local webserver which, in my case, is not the mail server for my domain. The only way to resolve this, is to remove the domain from /etc/virtual/domains.
In the exim config file:
domainlist local_domains = lsearch;/etc/virtual/domains
When I remove the domain from this file, all my issues are resolved.
It also happens in the following situation:
A mail is sent to an e-mail address/domain that is on this same directadmin server. For example: [email protected].
This e-mail adres is an forwarder on the directadmin server to [email protected]. This googleapps-domain.com is configured for webhosting on this same server and is present in /etc/virtual/domains.
Since the mail was sent to [email protected], and googleapps-domain.com is also on this same server for webhosting the mail is delivered on the local domain. Even though the MX-records of the googleapps-domain are not set to the local server.
Can someone please come-up with a real solution instead of editting the /etc/virtual/domains file? Since this file is not accessible for all users?
Thanks in advance.