I have tried to look on your forum for this with no luck. I know that there is a way to disable receiving emails with ISPConfig but would it be possible to disable sending? I want some accounts to be able to only receive emails. Thank you for your help
One way of doing this is by adding the following to /etc/postfix/header_checks Code: /^From: .*@XYZ\.TLD>/ DISCARD This will stop any email from domain xyz.tld to be send. Make sure that you restart postfix after adding this.
the code doesnt seems to do anything. I added the line to the header_checks file and restarted postfix but I can still send email locally and externally. Any other way to do this?
Make sure that "/etc/postfix/header_checks" is included in your "/etc/postfix/main.cf" like this. Code: header_checks = regexp:/etc/postfix/header_checks