On 2011-07-21 21:39, Zhou, Yan wrote:
-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
us...@postfix.org] On Behalf Of Victor Duchovni
Sent: Thursday, July 21, 2011 3:09 PM
To: postfix-users@postfix.org
Subject: Re: setting for one single message with multiple domains

On Thu, Jul 21, 2011 at 03:03:53PM -0400, Zhou, Yan wrote:

Hi there,

I thought this is a Postfix setting.  Postfix 2.3.3.

Say, my postfix server manages domain1 and domain2.  If I send a
message
to X@domain1 and Y@domain2.  Right now I get two separate messages
(both
identical), how can I get just one single message for ALL domains?
For mail others send, you can't. For mail you send, if it is important
(I would suggest not), configure the same transport:nexthop for both
domains:

        example.com     smtp:example.com
        example.net     smtp:example.net

Adjust as necessary if the destination is not remote, making sure in
all
cases (including content filters) that the transport and nexthop are
the
same for both domains.

--
        Viktor.
[Zhou, Yan]

This actually used to work already, until recently I introduced mail
relay.

My application used to send to the remote Postfix server directly, which
delivers one single message (for both recipients).

Now my application is connecting to a local Postfix, which then relays
to the same remote Postfix.  Now this same remote Postfix is delivering
two messages. I do not know why that is the case.

Because the two postfix machines do not communicate that both messages should go to the same destination - you have to configure this on both machines independently. Since the first postfix apparently uses the second as relayhost, the first is already taken care of - it only has one destination. You need to configure domain-dependent transports on the second postfix instead.


Yan





Confidentiality Notice: The information contained in this electronic 
transmission is confidential and may be legally privileged. It is intended only 
for the addressee(s) named above. If you are not an intended recipient, be 
aware that any disclosure, copying, distribution or use of the information 
contained in this transmission is prohibited and may be unlawful. If you have 
received this transmission in error, please notify us by telephone (513) 
229-5500 or by email (postmas...@medplus.com). After replying, please erase it 
from your computer system.


--
J.

Reply via email to