Cannot send e-mail to external MX server

Top  Previous  Next

In some cases NeatWorx may be hosting the web-service, but we may be relying on an external mail-server for mail services.

If qmail is not configured appropriately, a bounce will occur with the message "This address no longer accepts email" suggesting that PLESK server may be trying to handle e-mail as if it were local with a non-existing mail configuration.

As an example:

3rd party DNS provider is providing the authoritative name service record
The "A" record on the name-server is pointing to the NeatWorx furnished web-server
The MX record(s) are correctly pointing to a third party mail-providers mail exchange hosts

If the NeatWorx server cannot initiate e-mail to mailboxes served by the external mail provider, this is likely because qmail is ignoring DNS records and is assuming that it is provided mail services for the domain based on the fact that there is a vhost on the web-server. (a well documented PLESK issue)

To remedy this and force qmail to consult DNS record to obtain the domains MX server:

Change to the directory /var/qmail/control
To resolve the problem remove the domain from /var/qmail/control/rcpthosts and /var/qmail/control/virtualdomains.
After that, restart qmail using /etc/init.d/qmail restart

You can (apparently) rebuild these files to match the PLESK configuration if something goes horribly wrong by using:

/usr/local/psa/admin/sbin/mchk