RT 3.8.2, Postfix, and external aliases

Hi all. I need a little guidance on a problem I’m having with RT 3.8.2
using Postfix as the MTA.

The issue is that replies are not sent from RT when an external alias is
used; these messages are identified as bounces because their
‘Return-Path’ header is empty. Replies are sent without incident when
the actual address on the RT server is used.

I do not have control over the remote server’s configuration (running
Microsoft Exchange). I do have control over my own Postfix server.

The basic configuration is as follows:

helpdesk-support@provider.com – RT’s queue address (for the Support
queue)

support@consumer.com – Remote alias used for convenience

The support@consumer.com address points to helpdesk-support@provider.com
by way of a “Distribution List” which contains only one “Contact”, the
target address. I’m told this is how one creates an alias on Exchange
without having to create a new mailbox.

When Postfix receives mail by way of the alias the headers look
something like this:

From MAILER-DAEMON Wed Feb 4 14:21:39 2009
Return-Path: <>
X-Original-To: testinstance-support@provider.com

[etc.]

I do see the original destination address further down but that’s
expected since the message has to originate somewhere.

When Postfix receives mail sent to the actual local address, the headers
are more complete:

From testaccount@gmail.com Thu Feb 5 09:36:41 2009
Return-Path: testaccount@gmail.com
X-Original-To: helpdesk-support@provider.com

I realize this may be a Postfix question but I’m just not sure where to
start… My understanding is that the local delivery agent is
responsible for setting the “Return-Path” and “From” headers but I
assumed Postfix would do that if necessary. It is doing this for
messages sent directly to addresses. The remote server is not setting
these headers; I verified by sniffing the SMTP session.

Any suggestions would be most appreciated.

Thanks very much,

Damon

I don’t know if postfix supports this, but Sendmail proper allows “-
ba” which means that it populates the envelope sender from the From:
line in the message. Adding this to the sendmailpipe invocation would
solve your problem if postfix does this as well.On Feb 5, 2009, at 11:23 AM, Damon Miller wrote:

Hi all. I need a little guidance on a problem I’m having with RT
3.8.2
using Postfix as the MTA.

The issue is that replies are not sent from RT when an external
alias is
used; these messages are identified as bounces because their
‘Return-Path’ header is empty. Replies are sent without incident when
the actual address on the RT server is used.

I do not have control over the remote server’s configuration (running
Microsoft Exchange). I do have control over my own Postfix server.

The basic configuration is as follows:

helpdesk-support@provider.com – RT’s queue address (for the Support
queue)

support@consumer.com – Remote alias used for convenience

The support@consumer.com address points to helpdesk-support@provider.com
by way of a “Distribution List” which contains only one “Contact”, the
target address. I’m told this is how one creates an alias on Exchange
without having to create a new mailbox.

When Postfix receives mail by way of the alias the headers look
something like this:

From MAILER-DAEMON Wed Feb 4 14:21:39 2009
Return-Path: <>
X-Original-To: testinstance-support@provider.com

[etc.]

I do see the original destination address further down but that’s
expected since the message has to originate somewhere.

When Postfix receives mail sent to the actual local address, the
headers
are more complete:

From testaccount@gmail.com Thu Feb 5 09:36:41 2009
Return-Path: testaccount@gmail.com
X-Original-To: helpdesk-support@provider.com

I realize this may be a Postfix question but I’m just not sure where
to
start… My understanding is that the local delivery agent is
responsible for setting the “Return-Path” and “From” headers but I
assumed Postfix would do that if necessary. It is doing this for
messages sent directly to addresses. The remote server is not setting
these headers; I verified by sniffing the SMTP session.

Any suggestions would be most appreciated.

Thanks very much,

Damon


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source
and other randomness

Jo,

Thanks very much for your reply. I don’t think Postfix’s command-line
‘sendmail’ supports this option, unfortunately… Postfix’s
documentation states that the local delivery agent (‘local’) does
prepend Return-Path and From headers but this isn’t happening for me.
I’ll send a note to the Postfix list. Hopefully someone will provide
some guidance.

Thanks again,

Damon

Damon T. Miller
Director of Application Services
Thinking Phone Networks
damon@thinkingphones.com
617-649-1388 (Office)

-----Original Message-----
From: Jo Rhett [mailto:jrhett@netconsonance.com]
Sent: Thursday, February 05, 2009 2:56 PM
To: Damon Miller
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RT 3.8.2, Postfix, and external aliases

I don’t know if postfix supports this, but Sendmail proper allows “-
ba” which means that it populates the envelope sender from the From:
line in the message. Adding this to the sendmailpipe invocation would
solve your problem if postfix does this as well.

Hi all. I need a little guidance on a problem I’m having with RT
3.8.2
using Postfix as the MTA.

The issue is that replies are not sent from RT when an external
alias is
used; these messages are identified as bounces because their
‘Return-Path’ header is empty. Replies are sent without incident
when
the actual address on the RT server is used.

I do not have control over the remote server’s configuration
(running
Microsoft Exchange). I do have control over my own Postfix server.

The basic configuration is as follows:

helpdesk-support@provider.com – RT’s queue address (for the
Support
queue)

support@consumer.com – Remote alias used for convenience

The support@consumer.com address points to
helpdesk-support@provider.com
by way of a “Distribution List” which contains only one “Contact”,
the
target address. I’m told this is how one creates an alias on
Exchange
without having to create a new mailbox.

When Postfix receives mail by way of the alias the headers look
something like this:

From MAILER-DAEMON Wed Feb 4 14:21:39 2009
Return-Path: <>
X-Original-To: testinstance-support@provider.com

[etc.]

I do see the original destination address further down but that’s
expected since the message has to originate somewhere.

When Postfix receives mail sent to the actual local address, the
headers
are more complete:

From testaccount@gmail.com Thu Feb 5 09:36:41 2009
Return-Path: testaccount@gmail.com
X-Original-To: helpdesk-support@provider.com

I realize this may be a Postfix question but I’m just not sure where
to
start… My understanding is that the local delivery agent is
responsible for setting the “Return-Path” and “From” headers but I
assumed Postfix would do that if necessary. It is doing this for
messages sent directly to addresses. The remote server is not
setting