|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Maier,Chris (maier.chris
heb.com)
Date: Fri Mar 07 2008 - 00:35:57 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have a couple of Postfix smart hosts (postfix 2.4.3) that handle most
of my internal and external relaying. There are NO local mailboxes on
the smart hosts. All of my companies *NIX systems have either Sendmail
or submit configured to use the postfix smart hosts as their next hop.
This means that I have HELO commands that look like "serverOne.heb.com"
and from addresses like "userA
serverOne.heb.com". The smart hosts are
doing domain masquerading for "heb.com", and rewrite works exactly as
expected for email that can be successfully delivered.
As is the case anywhere, I have messages that are not deliverable due to
bad addresses etc.
(host names and IP's have been masked)
Based on the email/host information above, how do I get the from address
rewritten prior to generating an NDR so that instead of trying to return
the message to the email address "userA
serverOne.heb.com" on the
"serverOne.heb.com" host, the NDR message is instead re-routed and
delivered to "userA
heb.com" where the "real" mailbox exists?
Sample log entry:
maillog.4:Feb 6 06:59:50 {relay-server} postfix/smtpd[29026]: NOQUEUE:
reject: RCPT from serverOne.heb.com[10.1.1.217]: 450 4.1.2
<Ecerrillo
not-deliverable.com>: Recipient address rejected: Domain not
found; from=<userA
serverOne.heb.com> to=<Ecerrillo
not-deliverable.com>
proto=ESMTP helo=<serverOne.heb.com>
Postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
append_at_myorigin = yes
append_dot_mydomain = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
delay_warning_time = 4h
disable_vrfy_command = yes
empty_address_recipient = MAILER-DAEMON
html_directory = /usr/share/doc/postfix-2.4.3-documentation/html
inet_interfaces = 10.1.1.159
local_header_rewrite_clients = permit_mynetworks
local_recipient_maps =
local_transport = error:local email delivery is disabled, relay only
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient,
envelope_recipient
masquerade_domains = heb.com
mydestination =
mydomain = heb.com
myhostname = {relay-server}
mynetworks = 10.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.4.3-documentation/readme
relay_domains = hash:/etc/postfix/relay_domains.conf
relayhost = [host.heb.com]
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_fallback_relay = [host3.heb.com], [host2.heb.com]
smtp_helo_timeout = 180s
smtp_mail_timeout = 180s
smtp_quit_timeout = 180s
smtp_rcpt_timeout = 180s
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_helo_required = yes
smtpd_helo_restrictions = reject_invalid_hostname
reject_non_fqdn_hostname reject_unknown_hostname
smtpd_recipient_restrictions = reject_non_fqdn_recipient
reject_unknown_recipient_domain reject_unauth_destination
reject_non_fqdn_hostname reject_invalid_hostname
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
Thank you in advance,
Chris
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]