Adding custom mail aliases?

jez9999

Well-Known Member
Jun 10, 2005
87
0
156
Hi,

I've recently started using some mailing list software; no, it isn't mailman, I don't like that, I've installed Sympa.

It works fine, only it requires some e-mail aliases to be set up for each new list, obviously. I modified my /etc/exim.conf to add these lines:
Code:
sympa_aliases:
  driver = redirect
  allow_defer
  allow_fail
  require_files = "+/etc/mail/sympa_aliases"
  data = ${lookup{[email protected]$domain}lsearch{/etc/mail/sympa_aliases}}
  file_transport = address_file
  pipe_transport = address_pipe
  user = sympa
  group = sympa
Now this worked absolutely fine, pointing to my aliases file and getting those e-mails redirected to Sympa... until yesterday, when it got removed from /etc/exim.conf. I can only assume this was done by cPanel, maybe cpup.

How can I add such custom aliases without cPanel overwriting/removing them?
 

rhenderson

Well-Known Member
Apr 21, 2005
784
2
168
Oklahoma
cPanel Access Level
Root Administrator
I suppose you could chattr +i the file but who knows what may change and break something else, I would assume you could add a script to the postupcp file that checks the exim.conf date and if it has change you could echo the configuration you posted above to the file.