After staring at my Postfix config for hours on end, I still can't seem to find the problem here. I'm sure I've done something stupid, but I'm not seeing it. I'm trying to block a sender by e-mail address using smtpd_recipient_restrictions and check_sender_access. Obviously, it's not working. Could someone take a look at my config here and tell me what I've screwed up? I've pasted the contents of main.cf and sender_blacklist file below... Thanks!

main.cf:

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
myhostname = smtp-in.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = /etc/postfix/vdomains
relayhost = virtual_alias_maps = hash:/etc/postfix/virtual_alias_maps
mynetworks = blahblahallmyallowednetworksblahblah
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
disable_vrfy_command = yes
message_size_limit=51200000
smtpd_helo_required = yes
smtpd_timeout = 45s

smtpd_recipient_restrictions =
  check_sender_access hash:/etc/postfix/sender_blacklist,
  check_recipient_access hash:/etc/postfix/recipient_blacklist,
  permit_mynetworks,
  reject_unauth_destination,
  check_client_access cidr:/etc/postfix/cidrblacklist,
  reject_invalid_hostname,
  reject_non_fqdn_sender,
  reject_non_fqdn_recipient,
  reject_unknown_sender_domain,
  reject_unknown_recipient_domain,
  reject_unauth_pipelining,
  reject_rbl_client blahblahblahblah.zen.dq.spamhaus.net,
  check_policy_service inet:127.0.0.1:60000,
  permit

smtpd_client_connection_count_limit = 15
smtpd_client_connection_rate_limit = 20
smtpd_client_message_rate_limit = 20

content_filter=smtp-amavis:[127.0.0.1]:10024

------------------------------

/etc/postfix/sender_blacklist:

badsen...@baddomain.com    REJECT




Craig


Reply via email to