• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Mail envelope with mail handler

biapop

New Pleskian
Hello,

I am trying to create an extension that filters the mail by its sender and decides if the mail should or should not be sent to an external server to perform other tasks.
I created a mail handler before-queue as I need to filter local and remote mail (I cannot use before-local because I cannot send the mail to the external server in that point) and I get the mail but I am not able to get the envelope. I need the envelope because after processing the mail in the external server I need to return it with all its data.
The problem is that, as I imagine you already know, the envelope has certain data that the mail does not have, such as the BCC header.

Is there any way I can get the envelope or the whole mail?

Thank you all!!
 
Back
Top