Take Action on E-mail Based on Headers in Hermes SEG

Creating message rules to take actions based on e-mail headers is not yet implemented in the Hermes SEG Web GUI. However, this can be accomplished in the command line fairly easily. In the example below, we will redirect e-mail destined for an e-mail address to another e-mail address of our choice using the To: header.

Login to Hermes SEG appliance via console or SSH and edit the following file:

sudo vi /etc/postfix/regexp_header_checks

Add the following line at the end of the file where someone@domain.tld is the original e-mail destination and someoneelse@otherdomain.tld is the e-mail address we wish to redirect the e-mail:

/^To: .someone@domaint.ld/ REDIRECT someoneelse@otherdomain.tld

Save the file and reload postfix:

postfix reload

 


Revision #1
Created 30 December 2020 11:52:54 by Dino Edwards
Updated 8 February 2021 23:03:25 by Dino Edwards