OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Blocking emails from certain addresses

From: Oliver Marshall (omskillsearch.co.uk)
Date: Wed Nov 02 2005 - 05:17:52 CST


Hi,

I *thought* I had setup postfix to bounce emails from certain users with
a given error, using an access file. However, turns out that I never
added the access file to my main.cf list of stuff, so it wasn't used.
Ooops.

Can anyone tell me where I should put the /etc/postfix/access in order
for the contents of /etc/postfix/access to be used to block email
addresses ? ("access" is a text file containing email
address<tab>error#<tab>description and is postmap'd when edited).

Heres my main.cf:

readme_directory = /usr/share/doc/postfix-2.1.4/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.4/samples
html_directory = /usr/share/doc/postfix-2.1.4/html
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
queue_directory = /var/spool/postfix
mail_owner = postfix

# User configurable parameters
relay_domains = $mydestination, /etc/postfix/relay_domains
#inet_interfaces = 192.168.100.0/24, 127.0.0.0/8
mynetworks=192.168.100.0/24, 127.0.0.0/8
mydestination= $myhostname, localhost.$mydomain, localhost
#mynetworks_style = host
smtpd_recipient_restrictions =
permit_mynetworks,reject_unauth_destination, reject_non_fqdn_recipient,
check_policy_servic\
e inet:127.0.0.1:10023
delay_warning_time = 4h
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake
Linux)
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
mydomain = skillsearch.co.uk
#content_filter = smtp-amavis:[127.0.0.1]:10024
alias_database = hash:/etc/postfix/aliases
content_filter = smtp-amavis:[localhost]:10024
maps_rbl_domains = sbl.spamhaus.org, relays.ordb.org, opm.blitzed.org,
dun.dnsrbl.net, spam.dnsrbl.net
smtpd_helo_required = yes
transport_maps = hash:/etc/postfix/transport