• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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