Mail to external server

Cyberboy

Verified User
Joined
May 16, 2004
Messages
29
One of my customers has an MX-record to another server. E-mail that was sent from my server won't be recieved.

Now I deleted the directory /var/virtual/domain.com and I hope that it works, but I'm not sure about it. exim_mainlog give the following error when sending an e-mail:

2004-08-26 13:51:38 1C0In2-000MYZ-UB == ***@***.com R=domain_filter defer (-1): failed to stat /etc/virtual/***.com/. (No such file or directory)

The e-mail that is sent from my server will now be forwarded to the MX record?

Another question. Where can I find the e-mail that is not delivered?

Thank you very, very, very much in advance!!
 
Cyberboy said:
One of my customers has an MX-record to another server. E-mail that was sent from my server won't be recieved.
That's because exim will attempt a local delivery first, if it thinks the domain is local.
Now I deleted the directory /var/virtual/domain.com and I hope that it works,
It's overkill, and it won't work.
but I'm not sure about it. exim_mainlog give the following error when sending an e-mail:

2004-08-26 13:51:38 1C0In2-000MYZ-UB == ***@***.com R=domain_filter defer (-1): failed to stat /etc/virtual/***.com/. (No such file or directory)
Because exim still thinks it should be delivering locally, but now it cannot.

To keep exim from attempting local delivery, remove the domain name from /etc/virtual/domains.
The e-mail that is sent from my server will now be forwarded to the MX record?
It will after you make the change I just mentioned (there's no need to restart exim).
Another question. Where can I find the e-mail that is not delivered?
Mail sent before you deleted the directory will be found at:

/var/spool/virtual/domain.com/username

Mail sent afterwards has been deferred (see the error message); that means it stays in the outgoing queue for the time set in exim.conf, then is returned to the sender.

Note, you can do this through the control panel as well; as Matt pointed out in another thread:
So I just unticked the box on the MX page and all worked fine.
Jeff
 
Last edited:
Back
Top