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