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
/^To: .email@example.com/ REDIRECT firstname.lastname@example.org
Save the file and reload postfix: