# File location: /etc/postfix/mxfilter.acl # (check permisions and chroot!) # # line format: [value](tab)[action] # # value: [|]address # # address: compare with recipient or |sender address # # action: check[(tab)unknown_result] # skip # config:/path/to/config # load alternative cf file # (other skip line) # unknown_result: empty (550 with default reason) # 550[(tab)description] # hard reject # 450[(tab)description] # soft reject (try again later) # HMARK # accept (dunno) but header mark for # anti-spam filter 'Received-SPF:' # description: reason # overwrite message_fail_on_unknown #rozanski@sergiusz.com config:/etc/postfix/mxfilter.sergiusz.cf #|@hotmail.com config:/etc/postfix/mxfilter.fail_on_softfail.cf #|@skip.this.sender.com skip #rozanski@sergiusz.com check #serek@ do_not_test #@sergiusz.com skip #@domain.tld skip #@domain2.tld check #@domain3.tld check 550 No more spam please #@domain4.tld check 450 Check your dns #@foundation.tld check 450 #@domain5.tld check HMARK #@[ip.a.d.dr] check # default action in last line (skip if empty) #* skip ################################################################################### # example 1: # standard spf1 but postmaster do not test # spf1 compatible # postmaster@ skip * check HMARK ################################################################################### # example 2: # only spf1 allowed !!! # hard filter # #* check 550 Good bye spamer