How to disable forward to the external domain?

sili

Renowned Member
Dec 21, 2015
39
2
73
37
Hi,

We need to allow users to set up automatic email forwarding to internal when they are on leave.
However, we do not permit forwarding to external email addresses.
In regular usage, forwarding to external addresses is allowed.

I once attempted to initially block all forwarding and then gradually enable it, but it resulted in a complete inability to forward emails externally.
1695785160241.png

Is there anyone who has a similar setup and can provide a tutorial?

Thank you very much!
 
We need to allow users to set up automatic email forwarding to internal when they are on leave.
This is something you usually do in the SMTP-server where the users have their mailboxes (the downstream-server of PMG) - not in PMG.
However, we do not permit forwarding to external email addresses.
How have you implemented this in PMG? (the screenshot does not show what the rules do)
 
This is something you usually do in the SMTP-server where the users have their mailboxes (the downstream-server of PMG) - not in PMG.

How have you implemented this in PMG? (the screenshot does not show what the rules do)

Hi,

Yes, our mail server cannot set specify forwarding adderess only use internal address, so we tried setup in PMG.
When we use forward rules, we cannot send mail outside, so we have diable this rule.

This is forward rules setting.

1695802548248.png

To Forward is "who subjects".

1695802718647.png
 
Yes, our mail server cannot set specify forwarding adderess only use internal address, so we tried setup in PMG.
as said - I'd really check the documentation of the particular smtp server - as this sounds really odd

as for the screenshot :
a) the regular expression is wrong - if you want to match any string that would be '.*' not '*' - see the reference documentation and one of the many tutorials on the internet:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmg_mailfilter_regex
b) the rule would 'Block' all mails matching that regular expression - why do you expect this to forward a mail?


The closest thing you could do in PMG is to create a rule, which adds a BCC to the forward address for each such 'forward' you want to configure - but again this should not be done in the filtering proxy but in the downstream server
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!