From: Keld Simonsen on
Hi

I now trached down my sendlail delivery line for my email
list server, and adding the -XV option I changed it to :

/usr/lib/sendmail -XV -odq -oee -oi -f $LIST-request $LIST-list < munge1$$

My problem is now that it does not generate the return addresses I want.
I want the recipient address to be reflected in the envelope, instead
I get the sender address:


> Fromm dansk-request+dansk-list=ghz.klid.dk(a)klid.dk Sat Jun 26 22: 7:50 2010
> Return-Path: <dansk-request+dansk-list=ghz.klid.dk(a)klid.dk>
> X-Original-To: keld(a)rap.rap.dk
> Delivered-To: keld(a)rap.rap.dk

postfix-2.3.5-0.2.20060mlcs4

best regards
keld

From: Keld Simonsen on
On Sat, Jun 26, 2010 at 11:02:40PM +0200, Keld Simonsen wrote:
> Hi
>
> I now trached down my sendlail delivery line for my email
> list server, and adding the -XV option I changed it to :
>
> /usr/lib/sendmail -XV -odq -oee -oi -f $LIST-request $LIST-list < munge1$$
>
> My problem is now that it does not generate the return addresses I want.
> I want the recipient address to be reflected in the envelope, instead
> I get the sender address:
>
>
> > Fromm dansk-request+dansk-list=ghz.klid.dk(a)klid.dk Sat Jun 26 22: 7:50 2010
> > Return-Path: <dansk-request+dansk-list=ghz.klid.dk(a)klid.dk>
> > X-Original-To: keld(a)rap.rap.dk
> > Delivered-To: keld(a)rap.rap.dk
>
> postfix-2.3.5-0.2.20060mlcs4

Nah, it does get the recipient address dansk-list(a)klid.dk - but - it is not
expanded via the *include* expansion. how do I do that?

Best regards
Keld

From: Wietse Venema on
Keld Simonsen:
> On Sat, Jun 26, 2010 at 11:02:40PM +0200, Keld Simonsen wrote:
> > Hi
> >
> > I now trached down my sendlail delivery line for my email
> > list server, and adding the -XV option I changed it to :
> >
> > /usr/lib/sendmail -XV -odq -oee -oi -f $LIST-request $LIST-list < munge1$$
> >
> > My problem is now that it does not generate the return addresses I want.
> > I want the recipient address to be reflected in the envelope, instead
> > I get the sender address:
> >
> >
> > > Fromm dansk-request+dansk-list=ghz.klid.dk(a)klid.dk Sat Jun 26 22: 7:50 2010
> > > Return-Path: <dansk-request+dansk-list=ghz.klid.dk(a)klid.dk>
> > > X-Original-To: keld(a)rap.rap.dk
> > > Delivered-To: keld(a)rap.rap.dk
> >
> > postfix-2.3.5-0.2.20060mlcs4
>
> Nah, it does get the recipient address dansk-list(a)klid.dk - but - it is not
> expanded via the *include* expansion. how do I do that?
>

With an aliases entry like this:
whatever: :include:/file/name

If you don't have the machine itself listed in mydestination:
/usr/lib/sendmail -XV ... -f stuff whatever(a)localhost ...

If you have the machine itself listed in mydestination:
/usr/lib/sendmail -XV ... -f stuff whatever

Wietse

From: Keld Simonsen on
On Sat, Jun 26, 2010 at 05:55:09PM -0400, Wietse Venema wrote:
> Keld Simonsen:
> > On Sat, Jun 26, 2010 at 11:02:40PM +0200, Keld Simonsen wrote:
> > > Hi
> > >
> > > I now trached down my sendlail delivery line for my email
> > > list server, and adding the -XV option I changed it to :
> > >
> > > /usr/lib/sendmail -XV -odq -oee -oi -f $LIST-request $LIST-list < munge1$$
> > >
> > > My problem is now that it does not generate the return addresses I want.
> > > I want the recipient address to be reflected in the envelope, instead
> > > I get the sender address:
> > >
> > >
> > > > Fromm dansk-request+dansk-list=ghz.klid.dk(a)klid.dk Sat Jun 26 22: 7:50 2010
> > > > Return-Path: <dansk-request+dansk-list=ghz.klid.dk(a)klid.dk>
> > > > X-Original-To: keld(a)rap.rap.dk
> > > > Delivered-To: keld(a)rap.rap.dk
> > >
> > > postfix-2.3.5-0.2.20060mlcs4
> >
> > Nah, it does get the recipient address dansk-list(a)klid.dk - but - it is not
> > expanded via the *include* expansion. how do I do that?
> >
>
> With an aliases entry like this:
> whatever: :include:/file/name
>
> If you don't have the machine itself listed in mydestination:
> /usr/lib/sendmail -XV ... -f stuff whatever(a)localhost ...
>
> If you have the machine itself listed in mydestination:
> /usr/lib/sendmail -XV ... -f stuff whatever

Oh, I may have been a bit unclear here. I was talking about VERP
expansion. That is that the from address gets expanded to
list-owner+recipient=recipient-domain(a)site.tld

I do of cause have an include line of the kind you mention ala

whatever: :include:/file/name

This does not get expanded as VERP addresses with each of the email addresses
in the /file/name file, but only generated VERP addresses
as list-owner+whatever=site.tld(a)site.tld

where "whatever" is the list name.

the mail does get sent to each recipient on the list, but with the list name
as the sender and bounce address in the envelope.

best regards
keld

From: Wietse Venema on
I checked out a few details, and the result is that turning on
VERP, before sending to a mailing list alias, does not turn on VERP
when delivering to the members of that mailing list (except in a
very special case that involves only local recipients).

It can (and should) be made to work outside that special case, but
that requires a few changes to Postfix internals, and that will
take more time than I have available now.

There is a workaround to turn on VERP after the mailing list. For
example, deliver mail to the mailing list alias with one Postfix
instance, then deliver mail to the members of that list with a
second Postfix instance that turns on VERP via one of the methods
in message <20100626210934.27B7E1F3EA8(a)spike.porcupine.org> (this
involves content filters, or the Postfix 2.7 smtpd_command_filter
feature).

Wietse