disable sending emails

Discussion in 'Tips/Tricks/Mods' started by guanaco, Feb 23, 2010.

  1. guanaco

    guanaco New Member

    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
     
  2. edge

    edge Active Member Moderator

    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.
     
  3. guanaco

    guanaco New Member

    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?
     
  4. edge

    edge Active Member Moderator

    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
     

Share This Page