|
Bugzilla – Full Text Bug Listing |
| Summary: | postfix: deamon_directory is invalid | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Adam Majer <amajer> |
| Component: | Other | Assignee: | Peter Varkoly <varkoly> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | amajer, chris |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Adam Majer
2023-09-25 15:25:54 UTC
The default is not wrong it is the build in. The right one is ok: sudo postconf daemon_directory daemon_directory = /usr/lib/postfix/bin/ That's kind of my point, the built in values do not represent the real values used by the deamon. When using postfix in a container where the default is may mean no default config, results in things blowing up. And having non-default values (ie. overriding built-in values) makes the installation fragile. For example, if the location changes in some future version, all the installations will need to adjust config files. I do not know why but by building not all paramaters will be set suse-like:
%make_build makefiles pie=yes shared=yes dynamicmaps=yes \
shlib_directory=%{_prefix}/lib/%{name} \
meta_directory=%{_prefix}/lib/%{name} \
config_directory=%{_sysconfdir}/%{name} \
SHLIB_RPATH="-Wl,-rpath,%{pf_shlib_directory} -Wl,-z,relro,-z,now"
Only by the installation will all parameters modified:
sh postfix-install -non-interactive \
install_root=%{buildroot} \
config_directory=%{pf_config_directory} \
daemon_directory=%{pf_daemon_directory} \
command_directory=%{pf_command_directory} \
queue_directory=/%{pf_queue_directory} \
sendmail_path=%{pf_sendmail_path} \
newaliases_path=%{pf_newaliases_path} \
mailq_path=%{pf_mailq_path} \
manpage_directory=%{_mandir} \
setgid_group=%{pf_setgid_group} \
readme_directory=%{pf_readme_directory} \
data_directory=%{pf_data_directory}
As a result, the built-in values deviate from the current values.
If this can be a problem for alp I can adapt the build part.
I've created request id 1180009 which adds all the settings from install section to the build section. Testing this with TW, it seems that postconf -d daemon_directory now returns the correct value and the same as with postconf daemon_directory I've tried removing the parameters from the install section, but this somehow failed the -bdb flavour while the regular one worked. Regarding whether this breaks ALP/SLFO or not, it's mostly about ease of use. If you run postfix from container without config files, it's strange that it wants to look for things in wrong directories. |