[GF-Users] postfix-tlspol rpm
Michael Webb
michael.webb at integrilog.com
Sat Jul 26 03:26:36 MST 2025
Hi Peter
Thanks for the guidance. I have made and tested a spec file that builds using mock for centos-stream+epel-9-x86_64.cfg and I have installed the output rpm in both my Rocky 9.6 production servers. BUT I HAVE A SMALL PROBLEM (see below) and it is not quite ready for release.
spec
https://integrilog.com/adhj5jkuuk2sfsf0/postfix-tlspol/postfix-tlspol-1.8.12.spec.txt
sample srpm & rpm
https://www.integrilog.com/adhj5jkuuk2sfsf0/postfix-tlspol/
The file builds directly from github source and modifies the IP address inside the config.yaml file (assumes dns service is installed on the host)
My build sequence was
rpmbuild -bs /root/rpmbuild/SPECS/postfix-tlspol.spec
mock -r centos-stream+epel-9-x86_64 --rebuild /root/rpmbuild/SRPMS/postfix-tlspol-1.8.12-1.el9.src.rpm
After enabling and restarting the service I was able to execute a successful query.
/usr/bin/postfix-tlspol -config /etc/postfix-tlspol/config.yaml -query integrilog.com
The following entries are also recommended in /etc/named.conf
min-cache-ttl 10;
max-cache-ttl 240;
PROBLEM
The %gobuild is not picking up the version so when I run "systemctl status postfix-tlspol.service", the service reports "vundefined"
Jul 26 03:56:41 mx01.integrilog.com postfix-tlspol[924717]: postfix-tlspol (c) 2024-2025 Zuplu - vundefined
I think there is supposed to be arguments passed like
"%gobuild -ldflags="-d -extldflags='-static' -s -X 'main.Version=1.8.12'"
Or %global VERSION 1.8.12
but I haven't been able to figure it out yet.
Regards
Mike
More information about the users
mailing list