This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PMX6 - Change original email sender (Envelope-From)

anyone has experience to change original email sender (Envelope-From) to any email address what we want ?

i have created pmx-policy to replace header "Envelope-From" value: abc@def.com, but when i execute this policy the email still send with the original sender let say 123@456.com

here my policy sample :

elsif allof(envelope :comparator "i;ascii-casemap" :all :contains ["from"]
["123@456.com"],
header :comparator "i;ascii-casemap" :contains ["Subject"] ["confidential"])
{
pmx_add_header :recode "X-PMX-Encrypted" "YES";
pmx_set_var "BOSS_EMAIL" "/opt/pmx6/home/get_boss.sh %%ENVELOPE_FROM%% /opt/pmx6/etc/notify-map";
pmx_replace_header :index 0 :recode "X-Boss" "%%BOSS_EMAIL%%";
pmx_replace_header :all :index 0 :recode "Envelope-From" "abc@def.com";
pmx_file "Boss_Confidential";
 redirect "%%BOSS_EMAIL%%";
stop;
}

:49216


This thread was automatically locked due to age.
Parents
  • The short answer is ... NO!

    the From frield in the evelope is "part" of the email.. even if you could modify it chances are the recipiant would reject it because its not going ot match expected reverse dns/scanning. the rule you made in PMX will only change the DATA from header.. so anyone can still see the envelope header.

    The only way to really accomplish this is to actually deliver the mail.. then rip it apart and create a new email. then use a MTA to send it so it doesn’’’’t fail reputation checking

    So the general concept would look something like...

    set up a 2nd box with BSD on it (OpenBSD would be my choice) .. deliver the outbound mail to this server, then write a script to essentially rip out all the content of the old email, create a new email.. paste it all back in and send it to the MTA for external delivery.

    This would destroy the original envelope From and create a new one that is valid and only contains IP information from the BSD box.

    :50628
Reply
  • The short answer is ... NO!

    the From frield in the evelope is "part" of the email.. even if you could modify it chances are the recipiant would reject it because its not going ot match expected reverse dns/scanning. the rule you made in PMX will only change the DATA from header.. so anyone can still see the envelope header.

    The only way to really accomplish this is to actually deliver the mail.. then rip it apart and create a new email. then use a MTA to send it so it doesn’’’’t fail reputation checking

    So the general concept would look something like...

    set up a 2nd box with BSD on it (OpenBSD would be my choice) .. deliver the outbound mail to this server, then write a script to essentially rip out all the content of the old email, create a new email.. paste it all back in and send it to the MTA for external delivery.

    This would destroy the original envelope From and create a new one that is valid and only contains IP information from the BSD box.

    :50628
Children
No Data