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