Ситуация. Есть внутренний домен svgc.net и внешний svgc.ru. В домене svgc.net стоит Exchange, который всю почту наружу шлет через шлюз Postfix. Хочется, чтобы почта от юзеров svgc.net наружу уходила как от пользователей svgc.ru, для чего воспользовался возможностями sender_canonical_maps. Но вот что получается:Return-Path: <shrdluex@svgc.ru>
Это поле Postfix поменял как мне и надо...
X-Original-To: shrdlu@svgc.ru
Delivered-To: shrdlu@svgc.ru
Received: from mail.svgc.ru (localhost [127.0.0.1])
by mail.svgc.ru (Postfix) with ESMTP id 4ABE97D12A
for <shrdlu@svgc.ru>; Wed, 11 Jan 2006 09:34:40 +0400 (SAMT)
Received: from serv-ex.svgc.net (unknown [10.0.1.111])
by mail.svgc.ru (Postfix) with ESMTP id 315047D127
for <shrdlu@svgc.ru>; Wed, 11 Jan 2006 09:34:40 +0400 (SAMT)
Received: from shrdlu.svgc.net ([10.0.0.70]) by serv-ex.svgc.net with Microsoft SMTPSVC(6.0.3790.1830);
Wed, 11 Jan 2006 09:23:44 +0400
Date: Wed, 11 Jan 2006 09:23:45 +0400
From: shrdlu <shrdluex@svgc.net>
- ??? а вот тут почему-то адрес отправителя не изменился.
X-Mailer: The Bat! (v2.01)
Reply-To: shrdlu <shrdluex@svgc.net>
X-Priority: 3 (Normal)
Message-ID: <17490655343.20060111092345@svgc.net>
To: shrdlu@svgc.ru
Subject: test
MIME-Version: 1.0
Content-Type: text/plain; charset=Windows-1251
Content-Transfer-Encoding: 8bit
X-OriginalArrivalTime: 11 Jan 2006 05:23:44.0904 (UTC) FILETIME=[312FE080:01C6166F]
X-TM-AS-Product-Ver: SMEX-7.0.0.1345-3.5.1048-14198.000
X-TM-AS-Result: No-0.000000-8.000000-31
X-AV-Checked: ClamAV using ClamSMTP
Насколько я понимаю, sender_canonical_maps должна бы и поле From поменять, ан нет. Или я неправ? В таком случае, как его можно изменить на Postfix?
Postfix v. 2.2.2, ниже вывод postconf -n:
alias_database = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = scan:127.0.0.1:10025
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_destination_recipient_limit = 5
disable_vrfy_command = yes
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
local_recipient_maps =
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 4200000
mydestination = $myhostname, localhost.$mydomain, $mydomain,
mydomain = svgc.ru
myhostname = mail.svgc.ru
mynetworks = 127.0.0.0/8, 192.168.70.0/24, 10.0.0.0/8,
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /etc/postfix/readme
receive_override_options = no_address_mappings
relay_domains = $mydestination
sample_directory = /etc/postfix/sample
sender_canonical_classes = envelope_sender, header_sender
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $myorigin
smtpd_helo_required = yes
smtpd_helo_restrictions = check_recipient_access hash:/etc/postfix/postmaster_access, permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_unknown_hostname, reject_non_fqdn_hostname
smtpd_recipient_restrictions = hash:/etc/postfix/protected_destinations, check_sender_access hash:/etc/postfix/restricted_senders, check_recipient_access hash:/etc/postfix/postmaster_access, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, reject_rbl_client relays.ordb.org, reject_rbl_client sbl.spamhaus.org, permit
smtpd_restriction_classes = local_only, insiders_only
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
transport_maps = hash:/etc/postfix/transport_map
unknown_local_recipient_reject_code = 550