Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jun 2005
    Posts
    86

    Default Adding custom mail aliases?

    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. #2
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    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.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. CLI api for adding aliases
    By assid in forum cPanel Developers
    Replies: 1
    Last Post: 05-24-2011, 08:14 AM
  2. adding username: :fail: to /etc/aliases
    By bamm in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-29-2006, 07:11 PM
  3. mail aliases help please
    By modom in forum New User Questions
    Replies: 2
    Last Post: 05-14-2006, 10:09 PM
  4. Mail Aliases Forwards
    By Davec in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-28-2005, 10:08 PM
  5. custom domain.com/cpanel aliases
    By Gnomercy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-24-2003, 02:45 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube