01-29-2018 10:47 AM - edited 03-08-2019 07:32 PM
Hello All,
I need to rewrite this inbound Recipient Address: 00502+12345@mydomain.com as 00502@mydomain.com. Essentially I need to drop the PLUS sign and everything to the right up to the @ sign. This needs to work for any inbound address that has a PLUS sign in it. An Alias table would not be a practical solution.
Through some collaboration and research, I have found that this is possible by using sievechar command to set the filter character, in this case a PLUS sign, and then use an LDAP Accept Query or LDAP Reroute Query to actually do the work.
I am using a Cisco C300V running ASYNC 11.0. (Cloud Solution)
Does anyone have information on how to configure the LDAP piece of this?
Sincerely - Frank
01-31-2018 04:40 AM
Hi Frank,
RFC 3598 describes a method of routing messages to a folder by packing the foldername into the user portion of the email address.
For example, if my email address is martha@stewart.com and I have a folder in my MUA named investing, I could subscribe to a mailing list using the email address martha+investing@stewart.com.
My MGA/MTA must ignore the +investing part of the email address and deliver the mail as though it were addressed to martha@stewart.com, and my MUA will automatically file it into the investing folder.
In order to support this function, we have provided Sieve Filtering, via the 'seivechar' command. NOTE: This implementation of Sieve Filtering only works in LDAP Accept and Reroute queries.
With this feature enabled, if a message comes in for martha+investing@stewart.com, instead of sending an LDAP Accept query such as:
(mail=martha+investing@stewart.com)
We send this query:
(mail=martha@stewart.com)
Similarly for a reroute query we have the following. If a message comes in for "martha+insider@stewart.com" we will strip the sievechar and detail information from the user portion of the address, so that we are left with "martha@stewart.com".
The reroute query is run and assume the result of the query is to reroute to "mstewart@exchange1.stewart.com". We then insert the sievechar and detail information so that the resultant address becomes "mstewart+insider@exchange1.stewart.com".
If we are rerouting and a sievechar is present in the user portion of an address but no sieve detail information is present after the sieve character (ex. mstewart+@stewart.com), we will simply strip the sieve character (ex. mstewart@exchange1.stewart.com)
Every other part of our system is ignorant of Sieve Filtering, including LDAP masquerade, global unsubscribe, aliases, filters, mail logs. As far as the rest of the system is concerned, the recipient of this message is simply martha+investing@stewart.com and operations that expect to handle martha@stewart.com will fail.
Based on this essentially the email address is not re-written but used without the foldername by LDAP routing and LDAP accept queries.
I do not think removing part of the envelope recipient after the "+" would be possible, someone else can chime in if they have figured out a way for that.
Regards,
Libin Varghese
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide