I have a workign mx server (virtual) which I cloned to create a second mx server. I changed the hostname and /etc/hosts and any reference I could find to the old "mx4" name to "mx2". I also made sure reverse dns and dns is OK. However, when I send mail, the recipient mail server reports the below information (NOTE: the top header line where it shows the old mx4 name AND the mx4 IP). I don't get where this is coming from and am not sure why mail would appear to be getting routed through the old mx server. the mx.domain.com server should have the IP AAA.BBB.CCC.159. My postfix configuration uses a variable for the hostname

Received: from*mx2.domain.com*  (*mx4.domain.com*  [*AAA.BBB.CCC.157*])
        by mtain-mp01.r1000.mx.aol.com (Internet Inbound) with ESMTP id 
9E2A0380000BE
        for<u...@aol.com>; Tue, 18 Jan 2011 09:18:57 -0500 (EST)
Received: from localhost (mx2.domain.com [127.0.0.1])
        by mx2.domain.com (Postfix) with ESMTP id 32F1AE403C
        for<u...@aol.com>; Tue, 18 Jan 2011 09:18:57 -0500 (EST)
X-Virus-Scanned: amavisd-new at domain.com
Received: from mx2.domain.com ([127.0.0.1])
        by localhost (mx2.domain.com [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id vwFldejbuVQD for<u...@aol.com>;
        Tue, 18 Jan 2011 09:18:57 -0500 (EST)
To: u...@aol.com
Subject: Test
Message-Id:<20110118141856.ee015e4...@mx2.domain.com>
Date: Tue, 18 Jan 2011 09:18:56 -0500 (EST)
From: jch...@domain.com
x-aol-global-disposition: G
X-AOL-SCOLL-SCORE: 0:2:251173456:93952408
X-AOL-SCOLL-URL_COUNT: 0
x-aol-sid: 3039ac1dc1454d35a151263f
X-AOL-IP: AAA.BBB.CCC.157


Here is postconf -n

address_verify_map = btree:/var/lib/postfix/address_verify.map

address_verify_negative_cache = yes

address_verify_negative_expire_time = 3d

address_verify_negative_refresh_time = 12h

address_verify_positive_expire_time = 31d

address_verify_positive_refresh_time = 7d

address_verify_sender = postmaster

alias_database = hash:/etc/postfix/aliases

alias_maps = hash:/etc/postfix/aliases

biff = no

body_checks = pcre:/etc/postfix/HEADER_AND_BODY_CHECKS/body_checks.regexp

bounce_size_limit = 10000

command_directory = /usr/sbin

config_directory = /etc/postfix

content_filter = smtp-amavis:[127.0.0.1]:10024

daemon_directory = /usr/libexec/postfix

data_directory = /var/lib/postfix

debug_peer_level = 2

default_destination_concurrency_limit = 100

default_destination_recipient_limit = 50

delay_warning_time = 4h

disable_vrfy_command = yes

header_checks = pcre:/etc/postfix/HEADER_AND_BODY_CHECKS/header_checks.regexp

html_directory = no

ignore_mx_lookup_error = no

in_flow_delay = 1s

inet_interfaces = all

local_destination_concurrency_limit = 2

local_recipient_maps =

mail_owner = postfix

mail_spool_directory = /var/spool/mail

mailbox_command = /usr/bin/procmail

mailq_path = /usr/bin/mailq.postfix

manpage_directory = /usr/share/man

maximal_backoff_time = 1000s

maximal_queue_lifetime = 5d

message_size_limit = 20000000

mime_header_checks = 
pcre:/etc/postfix/HEADER_AND_BODY_CHECKS/mime_header_checks.regexp

minimal_backoff_time = 300s

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

mydomain = domain.com

mynetworks = 127.0.0.0/8, 127.0.0.1, 192.168.1.0/24, 216.195.213.48/28

myorigin = $mydomain

newaliases_path = /usr/bin/newaliases.postfix

queue_directory = /var/spool/postfix

readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES

recipient_delimiter = +

reject_code = 550

relay_domains = clientdomain.com, hash:/etc/postfix/transport.map

sample_directory = /usr/share/doc/postfix-2.3.3/samples

sendmail_path = /usr/sbin/sendmail.postfix

setgid_group = postdrop

smtp_always_send_ehlo = yes

smtpd_banner = $myhostname ESMTP $mail_name

smtpd_client_restrictions = reject_unauth_pipelining, reject_rbl_client 
b.barracudacentral.org, reject_rbl_client bl.spamcop.net, reject_rbl_client 
zen.spamhaus.org, reject_rbl_client dnsbl.njabl.org, reject_rbl_client 
bl.mailspike.net, reject_rhsbl_sender dsn.rfc-ignorant.org, reject_rbl_client 
spamsources.fabel.dk, reject_invalid_helo_hostname, warn_if_reject 
reject_unknown_hostname, warn_if_reject reject_non_fqdn_hostname, permit

smtpd_delay_reject = yes

smtpd_hard_error_limit = 20

smtpd_helo_required = yes

smtpd_recipient_restrictions = permit_mynetworks, check_sender_access 
hash:/etc/postfix/EMAIL_ADDRESS_CHECKS/mywhitelist.map, check_sender_access 
hash:/etc/postfix/EMAIL_ADDRESS_CHECKS/myspamlist.map, 
reject_unauth_destination, check_sender_access 
hash:/etc/postfix/NETWORK_CHECKS/disallow_my_domain.map, 
reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unverified_recipient, 
reject_unknown_sender_domain, check_sender_access 
pcre:/etc/postfix/MISC_CHECKS/ascii.pcre, check_recipient_access 
pcre:/etc/postfix/MISC_CHECKS/ascii.pcre, check_sender_mx_access 
cidr:/etc/postfix/NETWORK_CHECKS/drop.cidr, check_policy_service 
inet:127.0.0.1:10023, check_helo_access 
pcre:/etc/postfix/NETWORK_CHECKS/helo_hostnames.pcre, 
pcre:/etc/postfix/EMAIL_ADDRESS_CHECKS/to_recipients_bw.regexp 
reject_non_fqdn_helo_hostname reject_invalid_helo_hostname

strict_rfc821_envelopes = yes

transport_maps = hash:/etc/postfix/transport.map

unknown_address_reject_code = 550

unknown_client_reject_code = 554

unknown_hostname_reject_code = 554

unknown_local_recipient_reject_code = 550

unverified_recipient_reject_code = 550

Reply via email to