The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding custom mail aliases?

Discussion in 'E-mail Discussions' started by jez9999, Nov 25, 2008.

  1. jez9999

    jez9999 Well-Known Member

    Joined:
    Jun 10, 2005
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    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{$local_part@$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?
     
  2. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
Loading...

Share This Page