On 01.10.14, 15:29, Wietse Venema wrote: > giacomo: > > On 30.09.14, 16:26, Wietse Venema wrote: > > > giacomo: > > > > Hello at all, > > > > I would like to split email from an external mail server (from my ISP) > > > > to > > > > an internal mail server. The ISP receive all mail of the domain in one > > > > mail address (the server use zimbra with postfix). > > > > > > Does this mean that us...@example.com, us...@example.com, etc., are > > > delivered to the same ISP mailbox, and you want to deliver it to > > > separate mailboxes on your server? (Replace "example.com" with your > > > real domain name). > > > > Not exactly. The ISP mailbox catch all users of real domain name in > > a unique mail box (example chatch...@realdomain.com). > > I want to deliver it on a internal server to separate mailboxes. > > Is possible this action? > > I see no difference with my description above. Multiple recipients > are delivered to the same ISP mailbox, and you want to deliver that > email elsewhere to separate mailboxes. > > I suggest that you look at my solution below. > > Wietse > > > > > > > I would like to split this email on the relative folder of the > > > > target user of domain. The internal mail server use postfix. The > > > > server work fine with virtual user sending e receiving mail > > > > internally. It's possible this operation? Is there any program > > > > or procedure to use with postfix to do this? > > > > > > You "should" be able to do this with a fetchmail-like program that > > > looks at the Postfix X-Original-To address header. > > > > > > DO NOT USE the To: address header for this purpose. Doing so will > > > result in delivery loops with mailing list articles. For example, > > > this reply message does not have your address in the To: header; > > > and you would be sending it back to postfix-users@postfix.org. > > > That would cause you to lose your mailing list membership.
I've one problem, the messages are without X-Original-To header. The header of the ISP mail server is this (is not inserted any IP address or email address): Return-Path: fromsome...@somedomain.com Received: from xxx.xxx.xxx.xx (LHLO isp.mailserver.com) (xxx.xxx.xxx.xx) by isp.mailserver.com with LMTP; Fri, 3 Oct 2014 18:05:04 +0200 (CEST) Received: from localhost (localhost [xxx.x.x.x]) by isp.mailserver.com (Postfix) with ESMTP id BD1BC4AC5C8 for <catch...@realdomain.com>; Fri, 3 Oct 2014 18:05:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at isp.mailserver.com X-Spam-Flag: NO X-Spam-Score: -2.566 X-Spam-Level: X-Spam-Status: No, score=-2.566 tagged_above=-10 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, LOTS_OF_MONEY=0.001, RP_MATCHES_RCVD=-0.668, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from isp.mailserver.com ([xxx.x.x.x]) by localhost (isp.mailserver.com [xxx.x.x.x]) (amavisd-new, port 10024) with ESMTP id 7FO08wsiMVCK for <catch...@realdomain.com>; Fri, 3 Oct 2014 18:05:00 +0200 (CEST) Received: from mail.somedomain.com (mail.somedomain.com [yyy.yyy.yyy.yy]) by isp.mailserver.com (Postfix) with ESMTP id F09FD4AC55F for <us...@realdomain.com>; Fri, 3 Oct 2014 18:04:57 +0200 (CEST) Received: from paperino01.pippo.pluto.somedomain.com (paperino01.pippo.pluto.somedomain.com [10.81.93.92]) by mail.somedomain.com (Postfix) with ESMTP id D6DDCA11D7 for <us...@realdomain.com>; Fri, 3 Oct 2014 18:04:57 +0200 (CEST) MIME-Version: 1.0 Date: Fri, 03 Oct 2014 18:04:57 +0200 X-Priority: 3 (Normal) Subject: Your holiday is here. Reply-To: "News" <n...@somedomain.com> From: "News" <n...@somedomain.com> To: us...@realdomain.com X-TokenInfo-CID: 1009 X-TokenInfo-UID: 117909776 Message-ID: <20141003180457.-631422...@somedomain.com> Where isp.mailserver.com is the name of mail server of the ISP, us...@realdomain.com is the recipient, catch...@realdomain.com is the mail collector of ISP. How to spit with this headers? Thanks. -- Luciano ---------------------------------------------- Le informazioni contenute nella presente e-mail e nei documenti/files eventualmente allegati sono confidenziali. Essi sono riservati esclusivamente al destinatario della stessa. La loro eventuale comunicazione, diffusione o, comunque, rivelazione a terzi, nonche' la copiatura e/o conservazione e' vietata. Se avete ricevuto questa e-mail per errore, Vi preghiamo cortesemente di informare immediatamente il mittente della stessa e di distruggerla o, comunque, cancellarla dal Vostro sistema. This e-mail contains confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorised communication, diffusion, disclosure and copy of the material in this e-mail is strictly forbidden. ---------------------------------------------- > > > > > > Wietse > > > > Thanks > > > > -- > > Luciano > > ---------------------------------------------- > > Le informazioni contenute nella presente e-mail e nei documenti/files > > eventualmente allegati sono confidenziali. Essi sono riservati > > esclusivamente al destinatario della stessa. La loro eventuale > > comunicazione, diffusione o, comunque, rivelazione a terzi, nonche' la > > copiatura e/o conservazione e' vietata. Se avete ricevuto questa e-mail per > > errore, Vi preghiamo cortesemente di informare immediatamente il mittente > > della stessa e di distruggerla o, comunque, cancellarla dal Vostro sistema. > > > > This e-mail contains confidential and/or privileged information. If you are > > not the intended recipient (or have received this e-mail in error), please > > notify the sender immediately and destroy this e-mail. Any unauthorised > > communication, diffusion, disclosure and copy of the material in this > > e-mail is strictly forbidden. > > ---------------------------------------------- > >