senderaccess overwrite issue

Tommy110

New Member
Sep 13, 2018
2
0
1
44
When you edit /etc/postfix/senderaccess and then postmap,
Next day,i see all was overwrite,how to keep the rule ?
 
Take a look in the admin docs (chapter "4.3 Service configuration templates")
 
You mean i need to:
vi /etc/pmg/templates/senderaccess
add rule here,then postmap
The senderaccess.db will automatic copy to /etc/postfix/senderaccess.db ???

As the main.cf have such config check_sender_access regexp:/etc/postfix/senderaccess
I only need to add blocked sender
 
Read the manual. You need to copy the templates to /etc/pmg/templates (all of them). Then you need to adjust the required files there and also may postmap there. Then you need to run the pmg sync command to sync the settings.
 
Hello @heutger i have followed manual procedures:
1 - copy all template files from /var/lib/pmg/template to /etc/pmg/templates
2 - create a senderaccess.in and tried senderaccess without .in extension
3 - add a lot of rules [1]
4 - reload and sync settings

but no success.
Have a way to update my senderaccess db from templates?


[1] - senderaccess.in / senderaccess content.

/^.+@barataodasferramentas\.com\.br$/ OK
/^.+@braviation\.com\.br$/ OK
/^.+@caboluc\.com\.br$/ OK
/^.+@campneus\.com\.br$/ OK
 

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!