Automatically Change Email Sender and Recipient Addresses
iQ.Suite Tips & Tricks for Microsoft Exchange / SMTP
As of Version 9, iQ.Suite Wall offers the possibility to modify email header information with the help of regular expressions. This, for instance, makes it possible to edit email sender or recipient addresses centrally.
Step by Step:
- Using regular expressions, it is possible to find and even modify values and character strings.
- The iQ.Suite Wall Email Address Filtering job now provides a "Regular Expressions" tab, which allows to modify the SMTP recipient, the SMTP sender and the email header.
- For instance, to adjust SMTP sender information, the "SMTP Sender" tab provides the "Regular Expression" and "Replacement Text" fields.
- In the present example, the issue is to change the existing sender domain “@company.old” to the new domain “@company.neu”.
- The entry “@([a-zA-Z]+).([a-zA-Z]+)” in the “Regular Expression” field sets that the job will search for the character “@” followed by a character string consisting of any number of letters from the set (“([a-zA-Z]+)”), a dot (“.”) and more letters from the set (“([a-zA-Z]+)”) .
- In the “Replacement Text” field, we find the value “@$1.neu”, where “@$1” means that the character “@“ followed by the first string of characters specified in the “Regular Expression” is to be searched. The entry “.new” means that the current value of the second character string is to be replaced with the letters “new”.
- The modification of the SMTP sender is now complete. Now it is the email sender – i.e. the address shown in the recipient’s email client – that needs to be changed. This done on the “Email header” tab.
- First specify the email header field to be analyzed. In our example this is the sender field (FROM).
- The Processing Mode is set to “Search in email header raw data”. The “Remove line breaks...” option is available for fields where data can spread across several lines.
- The entries in the “Regular Expression” and “Replacement Text” fields are the same as under “SMTP Sender”.
- The modification of the email header is now also complete.