Automatically changing exim configuration after restart

Ur4n1uM-235

Registered
Jan 2, 2019
3
1
1
Brazil
cPanel Access Level
Root Administrator
Hi!

Everytime I restart the server (after some update that requires it), all sent mail get rejected.
"550 XXX is not permitted to relay through this server without authentication"
I need to change this particular option at exim configurations / mail:
"EXPERIMENTAL: Rewrite From: header to match actual sender"
It start as "Disabled", but then I need to change it to "Remote" or "All", and than change it back to "Disabled" so outgoing mail work again.
I'm pretty tired of doing this manually and have no clue on how to change this setting via command line, so I can enable/disable automatically at boot.

Can anyone help?
Thank you, and a happy new year! :)
 

Ur4n1uM-235

Registered
Jan 2, 2019
3
1
1
Brazil
cPanel Access Level
Root Administrator
Actually he pointed me which file holds exim configurations and what to change.
I created a script to do change this setting to "remote", update and restart exim, change this setting back to "disabled" update and restart exim again, and added it to my crontab at startup.
This way my system forces exim to change this setting, and fixes the issue (which should not exist, as exim should see the setting as disabled and work properly, but that's not happening).
:)
 
  • Like
Reactions: cPanelLauren