Filtering "Envelope-to:" header problem
I am using cPanel 58.0 (build 45) and I want to filter e-mails meant for a given user's address (e.g. recip.email@email.com) and forward them to another address, using the "Account-level filtering" functionality. Most of the filtering can be set up fine, but there is still a case that I cannot get filtering to work on. In particular:
a) "Any recipient" "contains" "recip.email@email.com" works fine for most cases.
b) When the recipient is bcc'd, there are cases where there is a "for recip.email@email.com" string in the "Received:" header. This can be caught by adding another filter as follows: "Any header" "matches regex" "for\s+recip.email@email.com" (without the quotes).
c) What does not seem possible to be filtered yet is when the "Envelope-to:" header is being used, e.g.: "Envelope-to: recip.email@email.com" (only one recipient). The following did not work:
- "Any header" "contains" "Envelope-to: recip.email@email.com".
- "Any header" "matches regex" "Envelope-to:\s+recip.email@email.com".
Furthermore, the built-in filter test also seems to be unable to handle this field, when using e.g. the following test e-mail:
To: test@localhost
Envelope-to: recip.email@email.com
From: test@localhost
Subject: test
This is a test message.
-
Hello, Do you have root access to this system? If so, could you open a support ticket using the link in my signature so we can take a closer look at the affected system to see what's happening? You can post the ticket number here so we can update this thread with the outcome. Thank you. 0 -
Thanks for your prompt reply. Unfortunately, I don't have root access (shell) and I can therefore not obtain the Support Access ID information required for opening a ticket. 0 -
I recommend reporting this issue to your web hosting provider so they can take a closer look and open a support ticket with us if necessary. Thank you. 0 -
Thank you for your reply. I have already contacted my web hosting provider. 0 -
Thank you for your reply. I have already contacted my web hosting provider.
Hello, Did you find a solution? I also want to filter my emails depending on the "Envelope-to" because of emails sent with CC and BCC. As reseller I dont understand why I should contact my providor for this subject since they have nothing to do with cpanel and they are not the ones in need of support on this matter and thus they will not be able to give a productive information when creating a ticket on our behalf.... thanks!0 -
@braldesign - this thread is six years old, so the older posters are unlikely to reply. cPanel does have the "any header" filter option, which may be the closest you can get, as we don't have any specific Envelope-to filtering available. 0
Please sign in to leave a comment.
Comments
6 comments