rafaello wrote: Here main.cf transport_maps = proxy: ldap hmm etc / postfix / ldap / transport_maps_user.cf, proxy: ldap hmm etc / postfix / ldap / transport_maps_domain.cf, transport_maps = tcp: [127.0.0.1]: 2527
Oh, yes, of course it's a typo. That must be right:
transport_maps = proxy: ldap hmm etc / postfix / ldap / transport_maps_user.cf, proxy: ldap hmm etc / postfix / ldap / transport_maps_domain.cf, tcp: [127.0.0.1]: 2527
I use as a program for sending messages INTERSPIRE EMAIL MARKETER. So, as the address mail (FROM), the program uses the address to bounce Return-Path. When it is sending messages, then all the letters the same Return-Path. But when the flow passes through letters POSTFIX, rotation occurs and letters sent from different IP and different subdomains. Now here are a few examples. Suppose at some point in a letter passed through rotate1. It corresponds to the domain my-office1.com and IP address 46.30.43.8 (see sample in the previous report). That quote headers delivered to the GMAIL:
Delivered-To: drafaello65@gmail.com
Received: by 10.114.190.197 with SMTP id gs5csp638571ldc;
Wed, 9 Jul 2014 10:41:15 -0700 (PDT)
X-Received: by 10.194.48.103 with SMTP id k7mr49071697wjn.68.1404927675036;
Wed, 09 Jul 2014 10:41:15 -0700 (PDT)
Return-Path: <raf19652008@my-office1.com>
Received: from my-office1.com (my-office1.com. [46.30.43.8])
by mx.google.com with ESMTPS id bo7si8993553wib.66.2014.07.09.10.41.14
for <drafaello65@gmail.com>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 09 Jul 2014 10:41:14 -0700 (PDT)
Received-SPF: pass (google.com: domain of raf19652008@my-office1.com designates 46.30.43.8 as permitted sender) client-ip=46.30.43.8;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of raf19652008@my-office1.com designates 46.30.43.8 as permitted sender)
smtp.mail=raf19652008@my-office1.com;
dkim=pass header.i=@my-office1.com;
Received: from localhost (localhost [127.0.0.1])
by mx.my-office1.com (Postfix) with ESMTP id 780E5160074
for <drafaello65@gmail.com>; Wed, 9 Jul 2014 21:41:14 +0400 (MSK)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=my-office1.com; h=
content-transfer-encoding:content-type:content-type
:list-unsubscribe:mime-version:reply-to:from:from:date:date
:message-id:subject:subject:to; s=dkim; t=1404927670; x=
1405791671; bh=NVzyQDJtKrYl2cP6heTzOl8U2jQfiUsMRZtmM7pYg4M=; b=D HoyhSXR9Pr14p9Pdl9T46PakgVpZBCH47OIgZeOumXtklSlwNQgRRytCQF5XR2gq knN6yKSxOWzKXinYCvmA7jN8gmBOmg7Ycy4Y5qH8wg1Bpq6pyzDpo9XJfNJtOYvq hupGfpVqdNg/sJQjqziA3jwCNU7PyzAlpMeJOkoG+U=
Please note that the Return-Path: (@ my-office1.com) corresponds smtp.mail = (@ my-office1.com)
Also, note that dkim = pass header.i = @ my-office1.com and d = my-office1.com
Now, suppose that the letter passed through rotate3. It corresponds to the subdomain mail2.my-office1.com and IP address 46.30.42.229
That quote headers delivered to the GMAIL:
Delivered-To: drafaello65@gmail.com
Received: by 10.114.190.197 with SMTP id gs5csp637909ldc;
Wed, 9 Jul 2014 10:28:17 -0700 (PDT)
X-Received: by 10.180.8.10 with SMTP id n10mr13201552wia.41.1404926897376;
Wed, 09 Jul 2014 10:28:17 -0700 (PDT)
Return-Path: <raf19652008@my-office1.com>
Received: from mail2.my-office1.com (mail2.my-office1.com. [46.30.42.229])
by mx.google.com with ESMTPS id lr2si59105585wjb.97.2014.07.09.10.28.17
for <drafaello65@gmail.com>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 09 Jul 2014 10:28:17 -0700 (PDT)
Received-SPF: pass (google.com: domain of raf19652008@my-office1.com designates 46.30.42.229 as permitted sender) client-ip=46.30.42.229;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of raf19652008@my-office1.com designates 46.30.42.229 as permitted sender)
smtp.mail=raf19652008@my-office1.com;
dkim=pass header.i=@my-office1.com;
Received: from localhost (localhost [127.0.0.1])
by mx.my-office1.com (Postfix) with ESMTP id DA13A16144E
for <drafaello65@gmail.com>; Wed, 9 Jul 2014 21:28:13 +0400 (MSK)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=my-office1.com; h=
content-transfer-encoding:content-type:content-type
:list-unsubscribe:mime-version:reply-to:from:from:date:date
:message-id:subject:subject:to; s=dkim; t=1404926889; x=
1405790890; bh=6yU07ggljK7h/0bjz4ZzlsvXtTggsQ5DdPQawxP5Yoc=; b=s
2loYtj0OFrnkWs+xZhidkdAfqpRTL2NOrFD5VpxFNVRbdorhU0NiEVL0FZuxtKaa
lzf4FXOcb61728m5TiBLDr3TrBiWp47bfiYsUYQC1SN7Vzord62JCQZA7SlQZ3Rr
ekXqfqW+h6kk0UM9QADNk6MRWTQK6kHOeoL9qUI47w=
Note that GMAIL ignored here this line:
Received: from mail2.my-office1.com (mail2.my-office1.com. [46.30.42.229])
and pointed smtp.mail =, header.i = d = and all the same domain (@ my-office1.com), although made with shipping subdomen @mail2.my-office1.com
Thereby, I want to say that crucial address Return-Path:. On the basis of a field determines GMAIL
smtp.mail =, header.i = and d =
And now an example of how it should be correct.
Suppose that the letter passed through rotate2. It corresponds to the subdomain mail1.my-office1.com and IP address 46.30.42.229
Also, I deliberately altered Return-Path program INTERSPIRE EMAIL MARKETER. I instead of @my-office1.com has registered @mail1.my-office1.com
That quote headers delivered to the GMAIL:
Delivered-To: drafaello65@gmail.com
Received: by 10.114.190.197 with SMTP id gs5csp639854ldc;
Wed, 9 Jul 2014 11:06:14 -0700 (PDT)
X-Received: by 10.180.10.168 with SMTP id j8mr13413829wib.73.1404929174582;
Wed, 09 Jul 2014 11:06:14 -0700 (PDT)
Return-Path: <raf19652008@mail1.my-office1.com>
Received: from mail1.my-office1.com (mail1.my-office1.com. [46.30.41.13])
by mx.google.com with ESMTPS id xn13si9106308wib.13.2014.07.09.11.06.14
for <drafaello65@gmail.com>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 09 Jul 2014 11:06:14 -0700 (PDT)
Received-SPF: pass (google.com: domain of raf19652008@mail1.my-office1.com designates 46.30.41.13 as permitted sender) client-ip=46.30.41.13;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of raf19652008@mail1.my-office1.com designates 46.30.41.13 as permitted sender) smtp.mail=raf19652008@mail1.my-office1.com;
dkim=pass header.i=@mail1.my-office1.com;
Received: from localhost (localhost [127.0.0.1])
by mx.my-office1.com (Postfix) with ESMTP id AA4A91601F6
for <drafaello65@gmail.com>; Wed, 9 Jul 2014 22:06:13 +0400 (MSK)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail1.my-office1.com;
h=content-transfer-encoding:content-type:content-type
:list-unsubscribe:mime-version:reply-to:from:from:date:date
:message-id:subject:subject:to; s=dkim; t=1404929169; x=
1407521170; bh=ffHl+nBvM81rFL/1H8N4bk0W/YvHtVYKDIiIGomlW2Y=; b=U
sNLUrNgNkAU7StR7tOLEMRz1ftc5Ry5Ihl0jnHfTV9Bh1LNhowbj3Do5eBhKq6aQ
FMa1AxugL3wtOnICtok5oEyGmJk1TBJ1ON2h7lVp14ICPwqMIb4ZHWqkWkhirpmQ
LU5wDPSeXpXRE4/O32wpuxuHoJqrlVO1mghzdoelAo=
As you can see, address Return-Path: is crucial for defining such fields as smtp.mail =, header.i = and d =
I want to say that the meaning of this topic to field smtp.mail =, header.i = d = and each time corresponded to that domain / subdomain, with which at the moment is sending a message. Therefore, the only way - is to replace the mail (FROM) or Return-Path to the address from which you are shipping at the moment.
For example, if it is sent to the subdomain mail2.oni4you.ru, then mail (FROM) or Return-Path must be @mail2.my-office1.com, and if shipping comes with mail1.oni4you.ru, then mail (FROM) or Return-Path must be @mail1.my-office1.com