[SOLVED] Forward incoming message

Aug 9, 2022
11
0
6
Hello at all,

i try to figure out how I can forward a specific incoming mail (original to: anton@domain.tld) to peter@domain.tld

Because there is no "forward" action object or similar available i tried to use the "Header Attribute" action and replace the "To" value with the target email address.
Then the Email will be send to "anton" (wrong) but in the Mailheader the expected "peter" is written. (So the action object works)

Is this a bug or a feature? :-)

Does anybody know another Method to forward an email to another recipient?
 
Is this a bug or a feature?
it's just the way SMTP works - by changing the header nothing happens with the envelope addresses.

Forwards should probably be done in the downstream server and not in PMG, but you might be able to work around this with a rule that:
* has a BCC action (to peter@domain.tld)
* has a Block action (to not send the mail to anton@)
(I'd leave the To header as is - else everybody gets even more confused)

I hope this helps!
 
Forwards should probably be done in the downstream server and not in PMG, but you might be able to work around this with a rule that:
* has a BCC action (to peter@domain.tld)
* has a Block action (to not send the mail to anton@)
I also need to forward mails (already working), and don't want those mails to receive the original recipient. Using a block action really won't prevent the mail from being accepted in the first place so that BCC still works as before?
 
Turns out that BCC works, and also the mail is not delivered to the original adress.

But the block action has the downside of the sender getting a "Rejected for policy reasons".
@Stoiko Ivanov How can this be prevented?

Seems like there should be a "drop" action that currently doesn't exist.
 
But the block action has the downside of the sender getting a "Rejected for policy reasons".
@Stoiko Ivanov How can this be prevented?

Seems like there should be a "drop" action that currently doesn't exist.
Hm - the sender should not get a notification - but if you have before-queue filtering enabled PMG sends a 5xx response ("Rejected for policy reasons") - I think (but haven't tested it yet) if you don't have before-queue filtering enabled the mail should be dropped silently (unless you enable "Send NDR on Blocked E-mails)

I hope this helps!
 
We have before-queue filtering enabled. I guess when a sender sees the "Rejected for policy reasons" response, this might lead to problems. The mail has been forwarded internally, so there should be no reject.

There is no "drop" action, is there? Could this be implemented?