Index: [Article Count Order] [Thread]

Date:  Sun, 5 Feb 2006 14:19:14 +0100
From:  Maurice de Laat <muisnetw (at mark) xs4all.nl>
Subject:  [coba-e:04011] cgiemail enable-owner-bounce
To:  coba-e (at mark) bluequartz.org
Message-Id:  <20060205131914.GA70308 (at mark) xs4all.nl>
X-Mail-Count: 04011


Using cgiemail on centos+bq.

By default, cgiemail uses the users apache as the from in the smtp 
envelope. This causes bounces to go to that user.

I would like to set the smtp envelope from to the user of the vsite. 
Cgiemail has an option for this, --enable-owner-bounce.

However, when configuring and compiling cgiemail with this option, the 
smtp envelope from doesn't change at all.

In the source of cgiemail, I see an attempt to get the owner of the 
template file, and use that as the smtp envelope from:

 /* Get owner of template */
  if (0 == stat(templatefile, &st))
    {
      pw = getpwuid(st.st_uid);
      if (pw)
        owner = pw->pw_name;
    }

Anybody knows why this doesn't work on bq, and how I can make it work?

Thank you.
-- 
Maurice de Laat