On 07/22/2010 08:20 PM, Sahil Tandon wrote:
On Thu, 2010-07-22 at 16:38:14 -0500, groups wrote:
I have an internal relay..
- relay is mx for my-sub-domain
- relay forwards of emails to many domains through trusted_networks
Hm? What is trusted_networks in the Postfix context?
- I want to drop all email to anyu...@my-sub-domain
Then don't be MX for my-sub-domain.
what is the simplest way to do this..
Please read DEBUG_README and provide additional information to convey
what "this" is.
My bad.. I should have posted this first.. postfinger below..
I have been chasing a mail loop issue for a while between
*my.sub.domain* relay and the *master-relay*...
What was happening is that my *sub.domain.relay* would
forward all emails to the *master-relay* for *my.sub.domain* then the
*master-relay* would send then back to *my.sub.domain* relay..
=> mail loop..
I initially wanted to be a good "net citizen" and follow up on
misc-configured sending hosts (all on my internal network) but I came
to the conclusion that I did not have enough time.. so just
wanted to "drop" or not relay any emails for *my.sub.domain*..
Dovecot is set up to dump all the un-deliverable email to mailbox
on local system..
In my previous Configuration - (now removed (see postfinger below))
# relayhost = *master-relay*
# relay_domains = "parent domain" , my.sub.domain
# notify_classes = resource, software, bounce
Additional
- The configuration I have now does *drop" all email destined
for *my.sub.domain*.
- *my.sub.domain* is the mx for for *my.sub.domain*
- I can not receive "any" email on the system.. which is ok..
This is not really an elegant solution.. but it does work..
Welcome any construction suggestions.
Charles
-- log sample --
Jul 26 06:52:05 mailhost postfix/smtp[17380]: 9177C5679F:
to=<r...@box-15.*my.sub.domain* >, relay=none, delay=0.05,
delays=0.05/0/0/0, dsn=5.4.6, status=bounced (mail for *my.sub.domain*
loops back to myself)
-- end log sample --
postfinger - postfix configuration on Mon Jul 26 06:41:42 CDT 2010
version: 1.30
--System Parameters--
mail_version = 2.5.1
hostname = mailhost.my.sub.doman.
uname = Linux mailhost.my.sub.doman. 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1
19:07:06 EDT 2010 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
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 = 172.25.0.0/16, 192.168.0.0/16
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.5.1-documentation/readme
sendmail_path = /usr/sbin/sendmail.postfix
smtpd_helo_restrictions = permit_mynetworks, reject_unauth_pipelining,
check_helo_access hash:/etc/postfix/helo_access, check_client_access
hash:/etc/postfix/blacklist
transport_maps = hash:/etc/postfix/transport
--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/transport --
# Modified transport file...
# Note: transport takes precedent over relay_host
parent.domain smtp:[master-relay]
.net smtp:[master-relay]
.com smtp:[master-relay]
.org smtp:[master-relay]
.mil smtp:[master-relay]
.gov smtp:[master-relay]
.my.sub.domain smtp:my.sub.domain