Hi all, Silly question, I did a quick search for this but didn't find an answer. How can one tell smtpd or cleanup to add the email address given in the RCPT TO for a given email?
I don't mind if the header becomes duplicated. The use case: I have a "physical" domain and a virtual one, both on 'yi.org', and I'll be moving my stuff across to a new 'id.au' (and possibly one other) in the near future. The virtual one is configured in /etc/postfix/virtual (hash) as virtual_alias_maps. I receive mail from a number of mailing lists, so it'd be good to know where a particular email was sent to, so I know which email address I need to use when resubscribing. At present, if someone sends me an email to my alias, it looks like this: Return-Path: <stua...@vrt.com.au> X-Original-To: stua...@longlandclan.yi.org Delivered-To: stua...@longlandclan.yi.org Received: by atomos.longlandclan.yi.org (Postfix, from userid 8) id 02A7F2185057; Mon, 7 Sep 2015 08:56:53 +1000 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on atomos.longlandclan.yi.org X-Spam-Level: X-Spam-Status: No, score=-0.6, required=5.0, tests=[RP_MATCHES_RCVD=-0.571, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no version=3.4.0 Received: from bne.vrt.com.au (bne-eth.vrt.com.au [103.225.70.82]) by atomos.longlandclan.yi.org (Postfix) with ESMTPS id BA7A32185056 for <m...@vk4msl.yi.org>; Mon, 7 Sep 2015 08:56:25 +1000 (EST) Received: by bne.vrt.com.au (Postfix, from userid 8) id 574ED8333C469; Mon, 7 Sep 2015 08:56:24 +1000 (EST) Received: from … (…) by bne.vrt.com.au (Postfix) with ESMTP id 230C48333C456 for <m...@vk4msl.yi.org>; Mon, 7 Sep 2015 08:56:24 +1000 (EST) What would be *ideal* would be this: Return-Path: <stua...@vrt.com.au> X-Original-To: m...@vk4msl.yi.org Delivered-To: stua...@longlandclan.yi.org although the following is fine too: Return-Path: <stua...@vrt.com.au> X-Original-To: stua...@longlandclan.yi.org Delivered-To: stua...@longlandclan.yi.org X-some-other-header: m...@vk4msl.yi.org (where X-some-other-header maybe gets repeated, that is fine.) How does one achieve this? -- Stuart Longland (aka Redhatter, VK4MSL) I haven't lost my mind... ...it's backed up on a tape somewhere.