How to use exim with smarthost, but fall back to default settings if the smarthost is not available?

gonandriy

Registered
Feb 23, 2023
2
0
1
Canada
cPanel Access Level
Root Administrator
The default exim installation works good, but the requirement is to use the company mail server as the relay. If that server become unavailable the messages stuck in the exim queue.
Can I configure exim somehow in a way that it would use the default routing, the one that would work if the smarthost would not exist, when the smarthost is not responding or fails to deliver messages?

Kind Regards,
Andrii
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,163
2,410
363
cPanel Access Level
Root Administrator
Hey there! It doesn't look like there is a good way to do this. I looked through some Exim documentation, and even many years ago people were writing custom scripts to detect the smarthost activity, and then change the Exim configuration back to "normal"


This sounds like it could be an excellent feature request, so if you'd like to submit one using the link in my signature I can get that approved and bring it up with the team next week.
 

gonandriy

Registered
Feb 23, 2023
2
0
1
Canada
cPanel Access Level
Root Administrator
Hey there! It doesn't look like there is a good way to do this. I looked through some Exim documentation, and even many years ago people were writing custom scripts to detect the smarthost activity, and then change the Exim configuration back to "normal"


This sounds like it could be an excellent feature request, so if you'd like to submit one using the link in my signature I can get that approved and bring it up with the team next week.
Thank you kindly, Jurassic,
Here is a feature request.

Regards,
Andrii