On 05/05/2011 05:37 PM, Sahil Tandon wrote:
On Thu, 2011-05-05 at 13:16:31 -0500, CT wrote:
I would like a simple way to drop other "internal domains" email
that can't be delivered.
something like :
#@internal-2.example.com /dev/null
Google 'postfix + discard'.
I have tried :
-- header_checks
-- smtpd_sender_restrictions = hash:/etc/postfix/access
but none has worked..
It is the recipient domain that I want to DISCARD..
Here is the postfinger output..
Thx
Charles
postfinger - postfix configuration on Fri May 6 13:10:54 CDT 2011
version: 1.30
--System Parameters--
mail_version = 2.5.1
hostname = intrelay.internal-1.example.com
uname = Linux intrelay.internal-1.example.com 2.6.18-238.9.1.el5 #1 SMP
Tue Apr 12 18:10:56 EDT 2011 i686 i686 i386 GNU/Linux
--Packaging information--
looks like this postfix comes from RPM package: postfix-2.5.1-1.rhel5
--main.cf non-default parameters--
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
default_process_limit = 150
header_checks = regexp:/etc/postfix/header_checks
html_directory = /usr/share/doc/postfix-2.5.1-documentation/html
mailbox_command = /usr/libexec/dovecot/deliver
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mime_header_checks = regexp:/etc/postfix/mime_header_checks.regexp
mynetworks = 10.0.0.0/8, 172.25.0.0/16, 172.16.0.0/16
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.5.1-documentation/readme
relayhost = [master-relay]
sendmail_path = /usr/sbin/sendmail.postfix
smtpd_client_message_rate_limit = 10
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, reject_unauth_pipelining,
check_helo_access hash:/etc/postfix/helo_access, check_client_access
hash:/etc/postfix/blacklist
smtpd_sender_restrictions = hash:/etc/postfix/access
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = hash:/etc/postfix/virtual
--master.cf--
smtp inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
-- end of postfinger output --
-- /etc/postfix/access --
internal-2.example.com DISCARD
internal-3.example.com DISCARD
-- end of /etc/postfix/access output --
-- /etc/postfix/header_checks --
/^To:*.internal-2.example.com/ DISCARD
/^to:*.internal-3.example.com/ DISCARD
-- end of /etc/postfix/header_checks output --