deny domain smtp

dwoodard3950

Renowned Member
Apr 14, 2015
3
0
66
How do I deny all domains but my own as valid send to addresses? I was looking at doing this with transport_maps, but the syntax to deny all is not compatible with the PMG entry form.

Method with direct entry in /etc/postfix/transport
Code:
example.com :
.example.com :
* error: Only allowing one domain

Recommended method for this via PMG?
 
Mail filters should be able to do this. Do a who regex object with the regex being:
Code:
((?!example.com).)*$
Then do a new mail filter rule for outbound with this who object and the block action object. Now anytime a message tries to go out and example.com isn't the sender, it should block the message .
 
  • Like
Reactions: dwoodard3950

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!