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.

Copy customer email to external mail archive

Discussion in 'E-mail Discussions' started by a.post, Apr 6, 2017.

  1. a.post

    a.post Member

    Joined:
    Mar 23, 2005
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    153
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    Some of my customers would like to connect their email to an external mailarchiver (i.e. Mailarchiva or Mailpiler on a separate box). Although I did find some partial examples, I don't have a final way of connecting them correctly in a "cPanel" way.

    Is there anyone who can help me compile an exim config which:
    - copies INcoming emails for a specific domain to a secondary SMTP server (not a CC to a secondary emailadress)
    - copies OUTgoing emails from a specific domain to a secondary SMTP server (not a CC to a secondary emailadress)
    - each config should preferably be customer specific (not in the main exim config)
    - each config should survive updates and so on

    Thanks for helping out!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    There's no native feature for this functionality in cPanel, outside of setting up custom Exim rules. Here's a thread you may find helpful:

    Hidden copies of incoming and outgoing emails

    If you need help with this type of custom setup, you can find a list of companies offering system administration services at:

    System Administration Services | cPanel Forums

    Note that you may find the Archive feature useful as an alternative to custom Exim rules:

    Archive - Documentation - cPanel Documentation

    You could setup archiving, and then create a custom bash script that copies the archived mail to a remote server via a cron job.

    Thank you.
     
  3. a.post

    a.post Member

    Joined:
    Mar 23, 2005
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    153
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Your documentation shows how to carbon copy to a different emailaddress. Not a copy to a secondary SMTP. I'm unable to find a configuration example for a filter which forwards to a smarthost after a match.

    smarthost:
    driver = manualroute
    domains = abc.com
    transport = remote_smtp
    route_data = "ip.of.email.archiver"
    unseen

    How could I combine those?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The only supported feature for saving outgoing messages is the "Archive" option in cPanel:

    Archive - Documentation - cPanel Documentation

    There are no native features in cPanel/WHM that will allow you setup an additional delivery for each outgoing message to a remote mail server. The Exim users mailing list is a helpful resource if you require help setting up custom Exim routing rules like this:

    Exim-users

    Thank you.
     
Loading...

Share This Page