Skip to Content.
Sympa Menu

en - [sympa-users] Virtual robot and Postfix : changed "To" headers

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: address@concealed
  • To: address@concealed
  • Subject: [sympa-users] Virtual robot and Postfix : changed "To" headers
  • Date: Thu, 9 Dec 2004 16:46:02 +0100

Hello,

I try to implement the solution proposed in the FAQ "Postfix and Regexp
aliases: how to do away with alias_manager.pl", with Postfix 2.1.4-2, and
sympa 4.1.2, and a virtual robot named sympa.unicaen.fr on a server named
clenche.unicaen.fr

The headers of the messages posted on a list "address@concealed" are:

Received: by clenche.unicaen.fr (Postfix, from userid 104)
id EEDE7434003; Thu, 9 Dec 2004 10:59:53 +0100 (CET)
X-Original-To: address@concealed
Delivered-To: address@concealed
Received: by clenche.unicaen.fr (Postfix, from userid 104)
id A1AB1434003; Thu, 9 Dec 2004 10:59:48 +0100 (CET)
To: address@concealed
From: address@concealed
Message-ID: address@concealed
In-Reply-To:
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Date: Thu, 9 Dec 2004 10:59:48 +0100 (CET)
X-Loop: address@concealed
X-Sequence: 51
Errors-To: address@concealed
Precedence: list
X-no-archive: yes
List-Id: <essai.sympa.unicaen.fr>
List-Help: <mailto:address@concealed?subject=help>
List-Subscribe: <mailto:address@concealed?subject=subscribe%20essai>
List-Unsubscribe: <mailto:address@concealed?subject=unsubscribe%20essai>
List-Post: <mailto:address@concealed>
List-Owner: <mailto:address@concealed>
List-Archive: <http://sympa.unicaen.fr/wws/arc/essai>

The name of the server (clenche.unicaen.fr) replaces that of the virtual
robot (sympa.unicaen.fr) in the following headers: Delivered-To, To, and
Errors-To.
I

Part of my configuration is:

main.cf:

mydestination = clenche.unicaen.fr, localhost
virtual_alias_maps = regexp:/etc/postfix/virtual.regexp
recipient_delimiter = +
alias_maps = hash:/etc/postfix/aliases , hash:/etc/mail/sympa_aliases
alias_database = $alias_maps

myhostname, mydomain, myorigin are not explicitly defined

virtual.regexp:
/^sympa\.unicaen\.fr$/ DOMAIN
/^(.*)-(request|editor|owner|subscribe|unsubscribe)@sympa\.unicaen\.fr$/
robot-
$2+$1
/^(.*)@sympa\.unicaen\.fr$/ "robot+$1"

/etc/mail/sympa_aliases:
robot: "|/home/sympa/bin/queue $address@concealed"
robot-request: "|/home/sympa/bin/queue $address@concealed"
robot-editor: "| /home/sympa/bin/queue $address@concealed"
robot-subscribe: "| /home/sympa/bin/queue
$address@concealed"
robot-unscribe: "| /home/sympa/bin/queue
$address@concealed
"
robot-owner: "| /home/sympa/bin/bouncequeue $address@concealed"

Thank you for your help.

J. Leyrat


  • [sympa-users] Virtual robot and Postfix : changed "To" headers, leyrat, 12/09/2004

Archive powered by MHonArc 2.6.19+.

Top of Page