OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: problem with sendmail -XV - VERP expansion

From: Wietse Venema (wietseporcupine.org)
Date: Sat Jun 26 2010 - 16:55:09 CDT


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.dkklid.dk Sat Jun 26 22: 7:50 2010
> > > Return-Path: <dansk-request+dansk-list=ghz.klid.dkklid.dk>
> > > X-Original-To: keldrap.rap.dk
> > > Delivered-To: keldrap.rap.dk
> >
> > postfix-2.3.5-0.2.20060mlcs4
>
> Nah, it does get the recipient address dansk-listklid.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 whateverlocalhost ...

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

        Wietse