Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Adding custom mail aliases?

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

  1. jez9999

    jez9999 Well-Known Member

    Joined:
    Jun 10, 2005
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    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{$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:
    1
    Trophy Points:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice