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.

implement subaddressing defining a router in ROUTERMIDDLE

Discussion in 'E-mail Discussions' started by enboig, Mar 1, 2016.

  1. enboig

    enboig Member

    Joined:
    Apr 25, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I have tried to modify exim.conf to accept subaddressing (account+anysuffix@example.com to account@example.com); but cpanel overwrites my changes.

    How could I write a "new router" to redirect addesses containging subaddressing to the correct account?

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    To clarify, did your custom changes work until overwritten? If so, ensure you use the "Advanced Editor" in "WHM >> Exim Configuration Manager". This will ensure the changes are preserved. Also, please see this feature request:

    Email sub-addressing (plus addressing)

    Thank you.
     
  3. enboig

    enboig Member

    Joined:
    Apr 25, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Finally I added it at "Section: PRENOALIASDISCARD", I copied the router "virtual_user" which is just above just adding support for suffixt:

    virtual_user_suffix:
    driver = accept
    headers_remove="x-spam-exim"
    domains = +user_domains
    require_files = "+${extract{5}{::}{${lookup passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/etc/$domain/passwd"
    condition = ${if eq {${lookup {$local_part} lsearch {${extract{5}{:}{${lookup passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/etc/$domain/passwd}}}{} {false}{true}}
    transport = virtual_userdelivery
    local_part_suffix = +*
    local_part_suffix_optional


    It works, but I would have preferred a more elegant way of doing it.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...
Similar Threads - implement subaddressing defining
  1. iLinux85
    Replies:
    3
    Views:
    768

Share This Page