Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-server
Navigation:
Lists: gentoo-server: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-server@g.o
From: Paul Hartman <paul.hartman@...>
Subject: Re: Postfix: Can I insert a custom header to incoming mail?
Date: Fri, 15 Jul 2011 12:18:02 -0500
On Thu, Jul 7, 2011 at 7:41 PM, kashani <kashani-list@...> wrote:
> If you aren't using Sieve, I would try is using virtual_transport = virtual
> instead of virtual_transport = dovecot

Thanks! That seems to have worked. Mail is still being delivered, and
now the X-Original-To: header is in-place. Really great, now I can
start migrating my mail domains that depend on that feature.

I also found a semi-work-around posted by Wietse Venema on the postfix list:

[quote]
You can fake it in the SMTP server with

/etc/postfix/main.cf:
smtpd_recipient_restrictions =
check_recipient_access pcre:/etc/postfix/recipient_access.pcre

/etc/postfix/recipient_access.pcre
/(.+)/ prepend X-Original-To: $1
[end quote]

This method worked with virtual_transport = dovecot, however it had
problems dealing with multi-recipient mail. (for example if
user1@... and user2@... were both recipients on the
same message, both users' mail would have the first username as the
X-Original-To header). That situation is rare enough in my case that
it would have been acceptable if the virtual_transport = virtual
wasn't usable.

Thanks again,
Paul


References:
Postfix: Can I insert a custom header to incoming mail?
-- Paul Hartman
Re: Postfix: Can I insert a custom header to incoming mail?
-- kashani
Re: Postfix: Can I insert a custom header to incoming mail?
-- Paul Hartman
Re: Postfix: Can I insert a custom header to incoming mail?
-- kashani
Navigation:
Lists: gentoo-server: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Postfix: Can I insert a custom header to incoming mail?
Next by thread:
.ebuild for installing Citrix XenTools on Gentoo VMs
Previous by date:
dev-db/postgresql-server: support for multiple instances / clusters?
Next by date:
New Gentoo-Wiki Article (draft): Paravirtualizing Gentoo VMs on XenServer


Updated Jun 22, 2012

Summary: Archive of the gentoo-server mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.