I had posted some of this before but since I wasn't a valid subscriber
I was "silently" ignored.. mybad.. :-)
---
I have an internal relay that I am replacing (sendmail with postfix)
I have followed :
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#firewall
and have my transport working with relay_host and transport maps.
Most everything goes out via the
relay_host =outbound.aaa.dom
but following Wieste's statement "transport ovrrides relay_host"
I have set up the exceptions that will relay out directly
and those are working correctly..
What isn't working is the ability for root to receive email for all the
"bounced / undeliverable" messages that are relay through this box.
I do have a user account that I want to receive "root's email" so I can
read via dovecot and an IMAP client.
I don't want all the messages coming to my work email account..
What happens is that the message To
[email protected]
goes directly out the relay_host..
I have tried
Particulars
- The current box relays about 30k messages daily.
- aaa.dom = my domain
- zzz.aaa.dom = my sub domain
here is the postfinger output..
(strange did not include )
myorigin = $myhostname
--System Parameters--
mail_version = 2.5.1
hostname = mailtest.zzz.aaa.dom
uname = Linux mailtest.zzz.aaa.dom 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20
07:39:04 EST 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
html_directory = /usr/share/doc/postfix-2.5.1-documentation/html
local_transport = error:local mail delivery is disabled
smtpd_helo_required = yes
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mime_header_checks = regexp:/etc/postfix/mime_header_checks.regexp
mydestination =
mynetworks = 127.0.0.0/8,172.dd.0.0/16, ddd.dd.0.0/16
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.5.1-documentation/readme
relay_domains = zzz.aaa.dom, aaa.dom, bbb.dom, ccc.dom
relayhost = outbound.aaa.dom
sendmail_path = /usr/sbin/sendmail.postfix
smtpd_data_restrictions = reject_unauth_pipelining,permit_mynetworks
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 450
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 --
Again...
aaa.dom = my domain
/etc/virtual
root [email protected]
/etc/transport
AAAAA.AAA.aaa.dom relay:[ddd.dd.dd.dd]
host.aaa.dom smtp:[mail.host.aaa.dom]
# to send through this box (no relay_host)
#.<domain> smtp:
Thx
Charles