# Reject anybody that HELO's as being in our own domain(s)
# (Note that if you followed the order suggested in the main.cf
# examples, above, that machines in mynetworks will be okay.)
mydomain.com REJECT You are not me
mail.mydomain.com REJECT You are not me

# Somebody HELO'ing with our IP address?
185.228.43.164 REJECT You are not me

# Somebody HELO'ing with localhost
localhost REJECT You are not my localhost
127.0.0.1 REJECT You are not my localhost

#Или можно так:
IF/^(.*)(body|filename|name=)/
/(.*)\.(lnk|dll|shs|vbe|hta|com|vbs|vbe|js|jse|bat|cmd|vxd|scr|shm|pif|chm|exe)$/ REJECT We are not accept attachments in ${2} format.
/\"(.*)\.(lnk|dll|shs|vbe|hta|com|vbs|vbe|js|jse|bat|cmd|vxd|scr|shm|pif|chm|exe)$/ REJECT We are not accept attachments in ${2} format.
ENDIF