Bowie Bailey writes:

Sam Varshavchik wrote:
Bowie Bailey writes:

> > Then, I built Courier from my new tarball:
>     rpmbuild -tb --define 'xflags --with-mailuser=mailuser
>     --with-mailgroup=mailuser' sources/courier-0.52.1.tar.bz2

That might be the problem.

Although the courier specfile does implement the xflags option,
Courier must use the same uid/gid as the courier-authlib package,
and, by default, Courier's configure script gets the uid/gid settings
from the courier-authlib package, and you overrid them with something
else.
This _might_ explain some of your problems.

I suggest that you remove just the courier package, leave the
courier-authlib packages in place, remove /usr/lib/courier,
/var/spool/courier, /etc/courier, then rebuild the courier rpm
without any options.

I can do that, but I would rather have things running as "mailuser"
since that is the way the rest of my servers are configured.  Is there
any way to build courier-authlib so that it uses mailuser?  I'm not
really familiar with the makefile and specfile syntax, but if you point
me in the right direction, I can figure it out.

Uninstall all rpms complete, including courier-authlib.

Extract the courier-authlib.spec file from the courier-authlib tarball. Edit it, and append the options at the end of "%configure --with-redhat".

Run rpmbuild -ba courier-authlib.spec

This should build courier-authlib with custom uid/gid settings.

After courier-authlib is installed, build the courier RPMs without any special options.

Attachment: pgpw13eLC2ye3.pgp
Description: PGP signature

Reply via email to