Bug 437042 - postfix >= 2.5 needs data_directory packaged
postfix >= 2.5 needs data_directory packaged
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: postfix (Show other bugs)
rawhide
All Linux
low Severity medium
: ---
: ---
Assigned To: Thomas Woerner
Fedora Extras Quality Assurance
http://www.mail-archive.com/postfix-u...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-11 16:16 EDT by Aaron Richton
Modified: 2008-03-12 08:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-03-12 08:48:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Aaron Richton 2008-03-11 16:16:32 EDT
Description of problem:
See URL, postfix 2.5 introduces new postfix-owned data_directory, default
/var/lib/postfix.

Suggest:

--- postfix.spec~       2008-03-11 15:43:40.000000000 -0400
+++ postfix.spec        2008-03-11 15:48:37.000000000 -0400
@@ -32,6 +32,7 @@
 %define postfix_daemon_dir     %{_libexecdir}/postfix
 %define postfix_command_dir    %{_sbindir}
 %define postfix_queue_dir      %{_var}/spool/postfix
+%define postfix_data_dir       %{_var}/lib/postfix
 %define postfix_doc_dir                %{_docdir}/%{name}-%{version}
 %define postfix_sample_dir     %{postfix_doc_dir}/samples
 %define postfix_readme_dir     %{postfix_doc_dir}/README_FILES
@@ -244,6 +245,7 @@
        daemon_directory=%{postfix_daemon_dir} \
        command_directory=%{postfix_command_dir} \
        queue_directory=%{postfix_queue_dir} \
+       data_directory=%{postfix_data_dir} \
        sendmail_path=%{postfix_command_dir}/sendmail.postfix \
        newaliases_path=%{_bindir}/newaliases.postfix \
        mailq_path=%{_bindir}/mailq.postfix \
@@ -419,6 +421,7 @@
 
 %dir %attr(0755, root, root) %{postfix_config_dir}
 %dir %attr(0755, root, root) %{postfix_daemon_dir}
+%dir %attr(0700, %{postfix_user}, root) %{postfix_data_dir}
 %dir %attr(0755, root, root) %{postfix_queue_dir}
 %dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/active
 %dir %attr(0700, %{postfix_user}, root) %{postfix_queue_dir}/bounce


Version-Release number of selected component (if applicable):
2.5.1-1

How reproducible:
install postfix 2.5.1-1

Steps to Reproduce:
1. install postfix 2.5.1-1
2. ls -ld /var/lib/postfix
3.
  
Actual results:
ls: /var/lib/postfix: No such file or directory


Expected results:
drwx------ 2 postfix root 4096 Mar 11 15:49 /var/lib/postfix

Additional info:
not relevant postfix < 2.5
Comment 1 Thomas Woerner 2008-03-12 08:48:31 EDT
Fixed in rawhide in package postfix-2.5.1-2.fc9.

Note You need to log in before you can comment on or make changes to this bug.