implement subaddressing defining a router in ROUTERMIDDLE
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.
-
I have tried to modify exim.conf to accept subaddressing (account+anysuffix@example.com to account@example.com[/EMAIL]); but cpanel overwrites my changes.
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.0 -
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. 0 -
I am happy to see you were able to find a solution. Thank you for posting the instructions to this thread. 0
Please sign in to leave a comment.
Comments
3 comments