Probably trivial, but I am in holiday and using an emergency connection,
so I ask instead of searching again.
Problem: a website in a multidomain server is spamming probably due to a
bug in the site code.
The owners are also in holiday; I can't stop the website; I can't stop
postfix :-(
All mail are from or to an address like s...@domaincustomer.com
I need to block these mails
Tried http://www.ericmichaelstone.com/?p=4382 and similar using
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access
smtpd_recipient_restrictions = check_recipient_access
hash:/etc/postfix/recipient_access
Added
s...@domaincustomer.com REJECT
to both files.
but seems not work for local sender.
Where is my mistake?
Thanks, B.
# rpm -q postfix
postfix-2.6.6-2.2.el6_1.i686
# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sender_bcc_maps = hash:/etc/postfix/bcc
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = check_recipient_access
hash:/etc/postfix/recipient_access permit_mynetworks
permit_sasl_authenticated reject_unauth_destination check_policy_service
unix:/var/spool/postfix/postgrey/socket
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = check_sender_access
hash:/etc/postfix/sender_access
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual