2007-01-16 00:33:08 +01:00
|
|
|
#
|
2011-02-01 15:11:40 +01:00
|
|
|
# spec file for package postfix
|
2007-01-16 00:33:08 +01:00
|
|
|
#
|
2017-01-03 17:59:26 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:33:08 +01:00
|
|
|
#
|
2008-08-07 01:34:35 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:33:08 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-04-21 13:02:22 +02:00
|
|
|
|
2016-03-21 17:10:37 +01:00
|
|
|
%if 0%{?suse_version} >= 1320 || ( 0%{?suse_version} == 1315 && 0%{?is_opensuse} )
|
|
|
|
%bcond_without lmdb
|
|
|
|
%else
|
|
|
|
%bcond_with lmdb
|
|
|
|
%endif
|
2012-01-25 16:13:45 +01:00
|
|
|
|
2015-01-27 12:52:31 +01:00
|
|
|
#
|
|
|
|
# Some defines
|
|
|
|
#
|
|
|
|
%define pf_docdir %{_docdir}/%{name}-doc
|
|
|
|
%define pf_config_directory %{_sysconfdir}/%{name}
|
2017-10-09 11:13:42 +02:00
|
|
|
%define pf_daemon_directory /usr/lib/%{name}/bin/
|
2016-03-21 17:10:37 +01:00
|
|
|
%define _libexecdir /usr/lib
|
2017-10-09 11:13:42 +02:00
|
|
|
%define pf_shlib_directory /usr/lib/%{name}
|
2015-01-27 12:52:31 +01:00
|
|
|
%define pf_command_directory %{_prefix}/sbin
|
|
|
|
%define pf_queue_directory var/spool/%{name}
|
|
|
|
%define pf_sendmail_path %{_sbindir}/sendmail
|
|
|
|
%define pf_newaliases_path %{_bindir}/newaliases
|
|
|
|
%define pf_mailq_path %{_bindir}/mailq
|
|
|
|
%define pf_setgid_group maildrop
|
|
|
|
%define pf_readme_directory %{_docdir}/%{name}-doc/README_FILES
|
|
|
|
%define pf_html_directory %{_docdir}/%{name}-doc/html
|
|
|
|
%define pf_sample_directory %{_docdir}/%{name}-doc/samples
|
|
|
|
%define pf_data_directory %{_localstatedir}/lib/%{name}
|
|
|
|
%define pf_uid 51
|
|
|
|
%define pf_gid 51
|
|
|
|
%define maildrop_gid 59
|
2017-03-21 17:17:14 +01:00
|
|
|
%define mail_group mail
|
2015-01-27 12:52:31 +01:00
|
|
|
%define conf_backup_dir %{_localstatedir}/adm/backup/%{name}
|
|
|
|
%define omc_pdir %{_datadir}/omc/
|
|
|
|
%define omc_dir %{_datadir}/omc/svcinfo.d/
|
|
|
|
#
|
|
|
|
%define vmusr vmail
|
|
|
|
%define vmgid 303
|
|
|
|
%define vmid 303
|
|
|
|
%define vmdir /srv/maildirs
|
|
|
|
#
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
%define _unitdir %{_libexecdir}/systemd
|
|
|
|
%else
|
|
|
|
%define _unitdir /lib/systemd
|
|
|
|
%endif
|
2007-01-16 00:33:08 +01:00
|
|
|
Name: postfix
|
2017-09-25 19:08:25 +02:00
|
|
|
Version: 3.2.3
|
2015-01-27 12:52:31 +01:00
|
|
|
Release: 0
|
2009-10-12 16:51:23 +02:00
|
|
|
Summary: A fast, secure, and flexible mailer
|
2012-01-11 15:22:18 +01:00
|
|
|
License: IPL-1.0
|
2007-01-16 00:33:08 +01:00
|
|
|
Group: Productivity/Networking/Email/Servers
|
2009-10-12 16:51:23 +02:00
|
|
|
Url: http://www.postfix.org/
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
#Source: http://www.artfiles.org/postfix.org/postfix-release/official/postfix-%{version}.tar.gz
|
|
|
|
Source: postfix-%{version}.tar.gz
|
2013-04-22 16:07:22 +02:00
|
|
|
Source2: %{name}-SuSE.tar.gz
|
|
|
|
Source3: %{name}-mysql.tar.bz2
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
Source10: %{name}-rpmlintrc
|
2010-04-13 21:38:42 +02:00
|
|
|
Source11: check_mail_queue
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
Patch1: %{name}-no-md5.patch
|
2007-03-07 22:50:13 +01:00
|
|
|
Patch2: pointer_to_literals.patch
|
|
|
|
Patch3: ipv6_disabled.patch
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
Patch4: %{name}-main.cf.patch
|
|
|
|
Patch5: %{name}-master.cf.patch
|
2017-04-09 20:32:47 +02:00
|
|
|
Patch6: %{name}-linux45.patch
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
Patch7: %{name}-ssl-release-buffers.patch
|
2016-11-26 17:56:05 +01:00
|
|
|
Patch8: %{name}-vda-v14-3.0.3.patch
|
2017-09-28 16:24:06 +02:00
|
|
|
Patch9: fix-postfix-script.patch
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
|
2016-11-26 17:56:05 +01:00
|
|
|
BuildRequires: ca-certificates
|
2013-06-16 15:26:10 +02:00
|
|
|
BuildRequires: cyrus-sasl-devel
|
2009-10-12 16:51:23 +02:00
|
|
|
BuildRequires: db-devel
|
2017-04-13 11:23:37 +02:00
|
|
|
BuildRequires: diffutils
|
2013-06-16 15:26:10 +02:00
|
|
|
BuildRequires: libopenssl-devel
|
2016-03-21 17:10:37 +01:00
|
|
|
%if %{with lmdb}
|
|
|
|
BuildRequires: lmdb-devel
|
|
|
|
%endif
|
2016-04-21 13:02:22 +02:00
|
|
|
BuildRequires: libicu-devel
|
2017-09-05 09:39:34 +02:00
|
|
|
BuildRequires: libnsl-devel
|
2009-10-12 16:51:23 +02:00
|
|
|
BuildRequires: mysql-devel
|
2012-01-11 15:22:18 +01:00
|
|
|
BuildRequires: openldap2-devel
|
|
|
|
BuildRequires: pcre-devel
|
2016-03-21 17:10:37 +01:00
|
|
|
BuildRequires: pkgconfig
|
2012-01-11 15:22:18 +01:00
|
|
|
BuildRequires: postgresql-devel
|
2017-03-06 19:50:16 +01:00
|
|
|
BuildRequires: shadow
|
2015-01-27 12:52:31 +01:00
|
|
|
Requires: iproute2
|
|
|
|
Requires(pre): permissions
|
|
|
|
Requires(pre): %fillup_prereq
|
2017-03-06 19:50:16 +01:00
|
|
|
Requires(pre): shadow
|
2015-01-27 12:52:31 +01:00
|
|
|
Provides: smtp_daemon
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Conflicts: sendmail exim
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
Requires(pre): sysvinit(network)
|
|
|
|
Requires(pre): sysvinit(syslog)
|
|
|
|
%endif
|
2011-05-28 06:25:45 +02:00
|
|
|
%if 0%{?suse_version} >= 1100
|
2009-10-12 16:51:23 +02:00
|
|
|
BuildRequires: fdupes
|
2011-05-28 06:25:45 +02:00
|
|
|
%endif
|
2017-03-21 17:17:14 +01:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
Requires(pre): group(%{mail_group})
|
|
|
|
%endif
|
2015-01-27 12:52:31 +01:00
|
|
|
%if 0%{?suse_version} > 1210
|
2011-11-03 16:56:57 +01:00
|
|
|
BuildRequires: systemd
|
|
|
|
%{?systemd_requires}
|
2013-02-25 11:13:10 +01:00
|
|
|
%else
|
2017-02-20 11:00:51 +01:00
|
|
|
Requires(pre): %insserv_prereq
|
2016-03-21 17:10:37 +01:00
|
|
|
Requires(pre): %{_bindir}/getent
|
|
|
|
Requires(pre): pwdutils
|
|
|
|
Requires(pre): /bin/awk
|
|
|
|
Requires(pre): /bin/grep
|
|
|
|
Requires(pre): /bin/sed
|
|
|
|
Requires(pre): fileutils
|
|
|
|
Requires(pre): netcfg
|
|
|
|
Requires(pre): pcre
|
|
|
|
Requires(pre): sh-utils
|
|
|
|
Requires(pre): textutils
|
2013-02-25 11:13:10 +01:00
|
|
|
%endif
|
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%description
|
|
|
|
Postfix aims to be an alternative to the widely-used sendmail program.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development headers for the postfix package
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-01-27 12:52:31 +01:00
|
|
|
Requires(pre): %{name} = %{version}
|
2009-10-12 16:51:23 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Postfix aims to be an alternative to the widely-used sendmail program.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentations for the postfix package
|
|
|
|
Group: Productivity/Networking/Email/Servers
|
2010-01-21 11:04:31 +01:00
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2009-10-12 16:51:23 +02:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Postfix aims to be an alternative to the widely-used sendmail program.
|
|
|
|
This package contains the documentation for %{name}
|
|
|
|
|
|
|
|
%package mysql
|
|
|
|
Summary: Postfix plugin to support MySQL maps
|
|
|
|
Group: Productivity/Networking/Email/Servers
|
2015-01-27 12:52:31 +01:00
|
|
|
Requires(pre): %{name} = %{version}
|
2017-02-20 11:00:51 +01:00
|
|
|
Requires(pre): shadow
|
2009-10-12 16:51:23 +02:00
|
|
|
|
|
|
|
%description mysql
|
|
|
|
Postfix plugin to support MySQL maps. This library will be loaded by
|
|
|
|
starting %{name} if you'll access a postmap which is stored in mysql.
|
|
|
|
|
|
|
|
%package postgresql
|
|
|
|
Summary: Postfix plugin to support PostgreSQL maps
|
|
|
|
Group: Productivity/Networking/Email/Servers
|
2015-01-27 12:52:31 +01:00
|
|
|
Requires(pre): %{name} = %{version}
|
2009-10-12 16:51:23 +02:00
|
|
|
|
|
|
|
%description postgresql
|
|
|
|
Postfix plugin to support PostgreSQL maps. This library will be loaded
|
|
|
|
by starting %{name} if you'll access a postmap which is stored in
|
|
|
|
PostgreSQL.
|
|
|
|
|
2016-03-21 17:10:37 +01:00
|
|
|
%if %{with lmdb}
|
|
|
|
%package lmdb
|
|
|
|
Summary: Postfix plugin to support LMDB maps
|
|
|
|
Group: Productivity/Networking/Email/Servers
|
|
|
|
Requires(pre): %{name} = %{version}
|
|
|
|
|
|
|
|
%description lmdb
|
|
|
|
Postfix plugin to support LMDB maps. This library will be loaded
|
|
|
|
by starting %{name} if you'll access a postmap which is stored in
|
|
|
|
PostgreSQL.
|
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:33:08 +01:00
|
|
|
%prep
|
2013-04-22 16:07:22 +02:00
|
|
|
%setup -q -a 2 -a 3
|
2016-11-26 17:56:05 +01:00
|
|
|
%patch1
|
|
|
|
%patch2
|
2012-08-21 17:29:38 +02:00
|
|
|
%patch3
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
%patch4
|
|
|
|
%patch5
|
2017-04-09 20:32:47 +02:00
|
|
|
%patch6
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
%patch7
|
2016-11-26 17:56:05 +01:00
|
|
|
%patch8
|
2017-09-28 16:24:06 +02:00
|
|
|
%patch9
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
|
2007-01-16 00:33:08 +01:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%build
|
2016-03-21 17:10:37 +01:00
|
|
|
unset AUXLIBS AUXLIBS_LDAP AUXLIBS_PCRE AUXLIBS_MYSQL AUXLIBS_PGSQL AUXLIBS_SQLITE AUXLIBS_CDB
|
|
|
|
|
|
|
|
export CCARGS="${CCARGS} %{optflags} -Wno-comments -Wno-missing-braces -fPIC"
|
|
|
|
%ifarch s390 s390x ppc
|
|
|
|
export CCARGS="${CCARGS} -fsigned-char"
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
if pkg-config openssl ; then
|
|
|
|
export CCARGS="${CCARGS} -DUSE_TLS $(pkg-config --cflags openssl)"
|
|
|
|
export AUXLIBS="$AUXLIBS $(pkg-config --libs openssl)"
|
|
|
|
else
|
|
|
|
export CCARGS="${CCARGS} -DUSE_TLS"
|
|
|
|
export AUXLIBS="${AUXLIBS} -lssl -lcrypto"
|
|
|
|
fi
|
|
|
|
#
|
|
|
|
export CCARGS="${CCARGS} -DHAS_LDAP -DLDAP_DEPRECATED=1 -DUSE_LDAP_SASL"
|
|
|
|
export AUXLIBS_LDAP="-lldap -llber"
|
|
|
|
#
|
|
|
|
export CCARGS="${CCARGS} -DHAS_PCRE"
|
|
|
|
export AUXLIBS_PCRE="-lpcre"
|
|
|
|
#
|
|
|
|
export CCARGS="${CCARGS} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I%{_includedir}/sasl"
|
|
|
|
if pkg-config libsasl2 ; then
|
|
|
|
export AUXLIBS="$AUXLIBS $(pkg-config --libs libsasl2)"
|
|
|
|
else
|
|
|
|
export AUXLIBS="$AUXLIBS -lsasl2"
|
|
|
|
fi
|
|
|
|
#
|
|
|
|
export CCARGS="${CCARGS} -DHAS_MYSQL $(mysql_config --cflags)"
|
|
|
|
export AUXLIBS_MYSQL="$(mysql_config --libs)"
|
|
|
|
#
|
|
|
|
export CCARGS="${CCARGS} -DHAS_PGSQL -I$(pg_config --includedir)"
|
|
|
|
export AUXLIBS_PGSQL="-lpq"
|
|
|
|
#
|
|
|
|
%if %{with lmdb}
|
|
|
|
export CCARGS="${CCARGS} -DHAS_LMDB -I/usr/local/include" \
|
|
|
|
export AUXLIBS_LMDB="-llmdb"
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
# TODO
|
|
|
|
#export AUXLIBS_SQLITE
|
|
|
|
#export AUXLIBS_CDB
|
|
|
|
#export AUXLIBS_SDBM
|
|
|
|
|
2007-01-16 00:33:08 +01:00
|
|
|
export PIE=-pie
|
2016-03-21 17:10:37 +01:00
|
|
|
make makefiles pie=yes shared=yes dynamicmaps=yes \
|
|
|
|
shlib_directory=/usr/lib/postfix \
|
|
|
|
meta_directory=/usr/lib/postfix \
|
|
|
|
config_directory=/etc/postfix
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
make
|
2007-01-16 00:33:08 +01:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%install
|
2015-01-27 12:52:31 +01:00
|
|
|
groupadd -g %{pf_gid} -o -r %{name} 2> /dev/null || :
|
|
|
|
groupadd -g %{maildrop_gid} -o -r maildrop 2> /dev/null || :
|
|
|
|
useradd -r -o -g %{name} -u %{pf_uid} -s /bin/false -c "Postfix Daemon" -d /%{pf_queue_directory} %{name} 2> /dev/null || :
|
2017-03-21 17:17:14 +01:00
|
|
|
usermod -G %{maildrop_gid},%{mail_group} %{name} 2> /dev/null || :
|
2015-01-27 12:52:31 +01:00
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
mkdir -p %{buildroot}/etc/postfix
|
|
|
|
cp conf/* %{buildroot}/etc/postfix/
|
2016-11-26 17:56:05 +01:00
|
|
|
# create our default postfix ssl DIR (/etc/postfix/ssl)
|
|
|
|
mkdir -p %{buildroot}/etc/postfix/ssl/certs
|
|
|
|
# link cacerts to /etc/ssl/certs
|
|
|
|
ln -sf ../../ssl/certs %{buildroot}/etc/postfix/ssl/cacerts
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
cp lib/libpostfix-* %{buildroot}/%{_libdir}
|
2015-01-27 12:52:31 +01:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}/%{_libdir}
|
2007-01-16 00:33:08 +01:00
|
|
|
sh postfix-install -non-interactive \
|
|
|
|
install_root=%{buildroot} \
|
|
|
|
config_directory=%{pf_config_directory} \
|
|
|
|
daemon_directory=%{pf_daemon_directory} \
|
|
|
|
command_directory=%{pf_command_directory} \
|
2008-08-07 01:34:35 +02:00
|
|
|
queue_directory=/%{pf_queue_directory} \
|
2007-01-16 00:33:08 +01:00
|
|
|
sendmail_path=%{pf_sendmail_path} \
|
|
|
|
newaliases_path=%{pf_newaliases_path} \
|
|
|
|
mailq_path=%{pf_mailq_path} \
|
|
|
|
manpage_directory=%{_mandir} \
|
|
|
|
setgid_group=%{pf_setgid_group} \
|
2008-02-01 23:38:24 +01:00
|
|
|
readme_directory=%{pf_readme_directory} \
|
|
|
|
data_directory=%{pf_data_directory}
|
2015-01-27 12:52:31 +01:00
|
|
|
ln -sf ../sbin/sendmail %{buildroot}%{_libexecdir}/sendmail
|
2007-01-16 00:33:08 +01:00
|
|
|
for i in qmqp-source smtp-sink smtp-source; do
|
2015-01-27 12:52:31 +01:00
|
|
|
install -m 755 bin/$i %{buildroot}%{_sbindir}/$i
|
2007-01-16 00:33:08 +01:00
|
|
|
done
|
2017-01-03 17:59:26 +01:00
|
|
|
%if 0%{?suse_version} < 1210
|
2015-01-27 12:52:31 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
2017-01-03 17:59:26 +01:00
|
|
|
%endif
|
2015-01-27 12:52:31 +01:00
|
|
|
mkdir -p %{buildroot}/sbin/conf.d
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/permissions.d
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}/sasl2
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/sbin
|
|
|
|
mkdir -p %{buildroot}/%{conf_backup_dir}
|
|
|
|
mkdir -p %{buildroot}/%{pf_sample_directory}
|
|
|
|
mkdir -p %{buildroot}/%{pf_html_directory}
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
|
|
|
|
install -m 644 %{name}-SuSE/smtp %{buildroot}%{_sysconfdir}/pam.d/smtp
|
2007-01-16 00:33:08 +01:00
|
|
|
#mkdir samples
|
2015-01-27 12:52:31 +01:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
|
|
rm -f %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
|
|
|
sed -e 's;@lib@;%{_lib};g' %{name}-SuSE/sysconfig.%{name} > %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
|
|
|
install -m 644 %{name}-SuSE/sysconfig.mail-%{name} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.mail-%{name}
|
2007-01-16 00:33:08 +01:00
|
|
|
sed -e 's;@lib@;%{_lib};g' \
|
|
|
|
-e 's;@conf_backup_dir@;%{conf_backup_dir};' \
|
|
|
|
-e 's;@daemon_directory@;%{pf_daemon_directory};' \
|
|
|
|
-e 's;@readme_directory@;%{pf_readme_directory};' \
|
|
|
|
-e 's;@html_directory@;%{pf_html_directory};' \
|
|
|
|
-e 's;@sendmail_path@;%{pf_sendmail_path};' \
|
|
|
|
-e 's;@setgid_group@;%{pf_setgid_group};' \
|
|
|
|
-e 's;@manpage_directory@;%{_mandir};' \
|
|
|
|
-e 's;@newaliases_path@;%{pf_newaliases_path};' \
|
|
|
|
-e 's;@sample_directory@;%{pf_sample_directory};' \
|
2015-01-27 12:52:31 +01:00
|
|
|
-e 's;@mailq_path@;%{pf_mailq_path};' %{name}-SuSE/config.%{name} > %{buildroot}%{_sbindir}/config.%{name}
|
|
|
|
chmod 755 %{buildroot}%{_sbindir}/config.%{name}
|
|
|
|
install -m 644 %{name}-SuSE/dynamicmaps.cf %{buildroot}%{_sysconfdir}/%{name}/dynamicmaps.cf
|
|
|
|
install -m 644 %{name}-SuSE/ldap_aliases.cf %{buildroot}%{_sysconfdir}/%{name}/ldap_aliases.cf
|
|
|
|
install -m 644 %{name}-SuSE/helo_access %{buildroot}%{_sysconfdir}/postfix/helo_access
|
|
|
|
install -m 644 %{name}-SuSE/permissions %{buildroot}%{_sysconfdir}/permissions.d/%{name}
|
|
|
|
install -m 644 %{name}-SuSE/sender_canonical %{buildroot}%{_sysconfdir}/%{name}/sender_canonical
|
|
|
|
install -m 644 %{name}-SuSE/relay %{buildroot}%{_sysconfdir}/postfix/relay
|
|
|
|
install -m 644 %{name}-SuSE/relay_ccerts %{buildroot}%{_sysconfdir}/%{name}/relay_ccerts
|
|
|
|
install -m 600 %{name}-SuSE/sasl_passwd %{buildroot}%{_sysconfdir}/%{name}/sasl_passwd
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sasl2
|
|
|
|
install -m 600 %{name}-SuSE/smtpd.conf %{buildroot}%{_sysconfdir}/sasl2/smtpd.conf
|
|
|
|
install -m 644 %{name}-SuSE/openssl_%{name}.conf.in %{buildroot}%{_sysconfdir}/%{name}/openssl_%{name}.conf.in
|
|
|
|
install -m 755 %{name}-SuSE/mk%{name}cert %{buildroot}%{_sbindir}/mk%{name}cert
|
|
|
|
mkdir -p %{buildroot}/%{omc_dir}
|
|
|
|
install -m 644 %{name}-SuSE/%{name}.xml %{buildroot}/%{omc_dir}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/
|
|
|
|
install -m 644 %{name}-SuSE/%{name}-fw %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/smtp
|
2007-01-16 00:33:08 +01:00
|
|
|
{
|
|
|
|
cat<<EOF
|
|
|
|
#
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
# NOTE: Many parameters have already been added to the end of this file
|
2012-11-07 11:19:52 +01:00
|
|
|
# by config.postfix. So take care that you don't uncomment
|
2007-01-16 00:33:08 +01:00
|
|
|
# and set a parameter without checking whether it has been added
|
|
|
|
# to the end of this file.
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
EOF
|
|
|
|
cat conf/main.cf
|
2015-01-27 12:52:31 +01:00
|
|
|
} > %{buildroot}%{_sysconfdir}/%{name}/main.cf
|
|
|
|
%{buildroot}%{_sbindir}/postconf -c %{buildroot}%{_sysconfdir}/%{name} \
|
2007-01-16 00:33:08 +01:00
|
|
|
-e "manpage_directory = %{_mandir}" \
|
|
|
|
"setgid_group = %{pf_setgid_group}" \
|
|
|
|
"mailq_path = %{pf_mailq_path}" \
|
|
|
|
"newaliases_path = %{pf_newaliases_path}" \
|
|
|
|
"sendmail_path = %{pf_sendmail_path}" \
|
|
|
|
"readme_directory = %{pf_readme_directory}" \
|
|
|
|
"html_directory = %{pf_html_directory}" \
|
|
|
|
"sample_directory = %{pf_sample_directory}" \
|
2012-04-12 10:16:28 +02:00
|
|
|
"daemon_directory = %{pf_daemon_directory}" \
|
2012-05-09 12:28:12 +02:00
|
|
|
"smtpd_helo_required = yes" \
|
|
|
|
"smtpd_delay_reject = yes" \
|
|
|
|
"disable_vrfy_command = yes" \
|
2012-04-12 10:16:28 +02:00
|
|
|
'smtpd_banner = $myhostname ESMTP'
|
2011-05-04 13:36:12 +02:00
|
|
|
#Set Permissions
|
2017-10-09 11:13:42 +02:00
|
|
|
install -m 644 %{name}-SuSE/%{name}-files %{buildroot}%{pf_shlib_directory}/postfix-files
|
2009-10-12 16:51:23 +02:00
|
|
|
# postfix-mysql
|
2015-01-27 12:52:31 +01:00
|
|
|
install -m 644 %{name}-mysql/main.cf-mysql %{buildroot}%{_sysconfdir}/%{name}/main.cf-mysql
|
|
|
|
install -m 640 %{name}-mysql/*_maps.cf %{buildroot}%{_sysconfdir}/%{name}/
|
2007-01-16 00:33:08 +01:00
|
|
|
# create paranoid permissions file
|
2015-01-27 12:52:31 +01:00
|
|
|
printf '%%-38s %%-18s %%s\n' %{_sbindir}/postdrop "root.%{pf_setgid_group}" "0755" >> %{buildroot}%{_sysconfdir}/permissions.d/%{name}.paranoid
|
|
|
|
printf '%%-38s %%-18s %%s\n' %{_sbindir}/postqueue "root.%{pf_setgid_group}" "0755" >> %{buildroot}%{_sysconfdir}/permissions.d/%{name}.paranoid
|
|
|
|
install -m 644 include/*.h %{buildroot}%{_includedir}/%{name}/
|
2009-10-12 16:51:23 +02:00
|
|
|
# some rpmlint stuff
|
|
|
|
# remove unneeded examples/chroot-setup
|
|
|
|
for example in AIX42 BSDI* F* HPUX* IRIX* NETBSD1 NEXTSTEP3 OPENSTEP4 OSF1 Solaris*; do
|
2015-01-27 12:52:31 +01:00
|
|
|
rm examples/chroot-setup/${example}
|
2009-10-12 16:51:23 +02:00
|
|
|
done
|
2015-01-27 12:52:31 +01:00
|
|
|
cp -a examples/* %{buildroot}%{pf_sample_directory}
|
|
|
|
cp -a html/* %{buildroot}%{pf_html_directory}
|
|
|
|
cp -a auxiliary/ %{buildroot}%{pf_docdir}/
|
|
|
|
%if 0%{?suse_version} >= 1210
|
2013-02-25 11:13:10 +01:00
|
|
|
mkdir -p %{buildroot}%{_unitdir}/system
|
2015-01-27 12:52:31 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/postfix/system
|
2013-02-25 11:13:10 +01:00
|
|
|
install -m 0644 %{name}-SuSE/postfix.service %{buildroot}%{_unitdir}/system/postfix.service
|
2015-01-27 12:52:31 +01:00
|
|
|
install -m 0755 %{name}-SuSE/config_postfix.systemd %{buildroot}%{_sysconfdir}/postfix/system/config_postfix
|
|
|
|
install -m 0755 %{name}-SuSE/update_chroot.systemd %{buildroot}%{_sysconfdir}/postfix/system/update_chroot
|
|
|
|
install -m 0755 %{name}-SuSE/update_postmaps.systemd %{buildroot}%{_sysconfdir}/postfix/system/update_postmaps
|
|
|
|
install -m 0755 %{name}-SuSE/wait_qmgr.systemd %{buildroot}%{_sysconfdir}/postfix/system/wait_qmgr
|
|
|
|
install -m 0755 %{name}-SuSE/cond_slp.systemd %{buildroot}%{_sysconfdir}/postfix/system/cond_slp
|
|
|
|
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|
|
|
%else
|
|
|
|
install -m 755 %{name}-SuSE/rc.%{name} %{buildroot}%{_initddir}/%{name}
|
|
|
|
ln -s -f %{_initddir}/%{name} %{buildroot}%{_sbindir}/rc%{name}
|
2011-08-12 18:44:59 +02:00
|
|
|
%endif
|
2011-05-15 16:21:14 +02:00
|
|
|
%if 0%{?suse_version} >= 1100
|
2015-01-27 12:52:31 +01:00
|
|
|
%fdupes %{buildroot}%{pf_docdir}
|
|
|
|
%fdupes %{buildroot}%{_mandir}
|
2011-05-15 16:21:14 +02:00
|
|
|
%endif
|
2017-10-09 11:13:42 +02:00
|
|
|
for path in %{buildroot}%{pf_shlib_directory}/libpostfix-*.so
|
2017-04-13 11:23:37 +02:00
|
|
|
do
|
|
|
|
test -e "$path" || continue
|
|
|
|
name=${path##*/}
|
|
|
|
cmp "$path" %{buildroot}%{_libdir}/$name || continue
|
|
|
|
rm -vf $path
|
|
|
|
ln -sf %{_libdir}/$name $path
|
|
|
|
done
|
2009-10-12 16:51:23 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
2015-01-27 12:52:31 +01:00
|
|
|
install -m 755 %{SOURCE11} %{buildroot}%{_sbindir}/
|
2007-01-16 00:33:08 +01:00
|
|
|
|
|
|
|
%pre
|
2015-01-27 12:52:31 +01:00
|
|
|
%if 0%{?suse_version} > 1210
|
2011-11-03 16:56:57 +01:00
|
|
|
%service_add_pre %{name}.service
|
|
|
|
%endif
|
|
|
|
|
2013-10-11 16:51:15 +02:00
|
|
|
VERSIONTEST=$(test -x usr/sbin/postconf && usr/sbin/postconf proxy_read_maps 2>/dev/null || :)
|
2008-08-07 01:34:35 +02:00
|
|
|
if [ -z "$VERSIONTEST" -a -f %{pf_queue_directory}/pid/master.pid ]; then
|
2009-10-12 16:51:23 +02:00
|
|
|
if checkproc -p %{pf_queue_directory}/pid/master.pid usr/lib/%{name}/master; then
|
|
|
|
echo "%{name} is still running. You have to stop %{name} in order to"
|
2007-01-16 00:33:08 +01:00
|
|
|
echo "install a newer version."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
2017-03-06 19:50:16 +01:00
|
|
|
getent group %{name} >/dev/null || groupadd -g %{pf_gid} -o -r %{name}
|
|
|
|
getent group maildrop >/dev/null || groupadd -g %{maildrop_gid} -o -r maildrop
|
|
|
|
getent passwd %{name} >/dev/null || useradd -r -o -g %{name} -u %{pf_uid} -s /bin/false -c "Postfix Daemon" -d /%{pf_queue_directory} %{name}
|
2017-03-21 17:17:14 +01:00
|
|
|
usermod -G %{maildrop_gid},%{mail_group} %{name}
|
2009-10-12 16:51:23 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
2007-01-16 00:33:08 +01:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%pre mysql
|
|
|
|
#echo "PARAM_pre: "$1
|
|
|
|
# on `rpm -ivh` PARAM is 1
|
|
|
|
# on `rpm -Uvh` PARAM is 2
|
|
|
|
if [ "$1" = "1" ]; then
|
|
|
|
echo "Adding %{vmusr} user"
|
2015-01-27 12:52:31 +01:00
|
|
|
if [ -z "`getent group %{vmusr} 2>/dev/null`" ]; then
|
|
|
|
groupadd -r -g %{vmgid} %{vmusr}
|
2009-10-12 16:51:23 +02:00
|
|
|
fi
|
2015-01-27 12:52:31 +01:00
|
|
|
if [ -z "`getent passwd %{vmusr} 2>/dev/null`" ]; then
|
|
|
|
useradd -c "maildirs chef" -d %{vmdir} -g %{vmusr} -u %{vmid} -r -s /bin/false %{vmusr}
|
2009-10-12 16:51:23 +02:00
|
|
|
fi
|
2007-01-16 00:33:08 +01:00
|
|
|
fi
|
2009-10-12 16:51:23 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
2007-01-16 00:33:08 +01:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%preun
|
|
|
|
%stop_on_removal %{name}
|
2015-01-27 12:52:31 +01:00
|
|
|
%if 0%{?suse_version} > 1210
|
2011-11-03 16:56:57 +01:00
|
|
|
%service_del_preun %{name}.service
|
|
|
|
%endif
|
2009-10-12 16:51:23 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
2007-01-16 00:33:08 +01:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%preun mysql
|
2015-01-27 12:52:31 +01:00
|
|
|
#echo "PARAM_preun: "$1
|
2009-10-12 16:51:23 +02:00
|
|
|
# on `rpm -e` PARAM is 0
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
FILE=etc/%{name}/dynamicmaps.cf
|
2007-01-16 00:33:08 +01:00
|
|
|
if [ -e "$FILE" ] ; then
|
2009-10-12 16:51:23 +02:00
|
|
|
if grep -q "^mysql[[:space:]]" ${FILE}; then
|
|
|
|
echo "Removing mysql map entry from ${FILE}"
|
|
|
|
sed "/^mysql[[:space:]]/d" ${FILE} > ${FILE}.$$ && \
|
2007-01-16 00:33:08 +01:00
|
|
|
cp --remove-destination ${FILE}.$$ ${FILE} && \
|
|
|
|
rm ${FILE}.$$
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "Can not find \"$FILE\". Not updating the file." >&2
|
|
|
|
fi
|
|
|
|
fi
|
2009-10-12 16:51:23 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
2007-01-16 00:33:08 +01:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%preun postgresql
|
2007-01-16 00:33:08 +01:00
|
|
|
if [ "$1" = 0 ] ; then
|
2009-10-12 16:51:23 +02:00
|
|
|
FILE=etc/%{name}/dynamicmaps.cf
|
2007-01-16 00:33:08 +01:00
|
|
|
if [ -e "$FILE" ] ; then
|
2009-10-12 16:51:23 +02:00
|
|
|
if grep -q "^pgsql[[:space:]]" ${FILE}; then
|
|
|
|
echo "Removing pgsql map entry from ${FILE}"
|
|
|
|
sed "/^pgsql[[:space:]]/d" ${FILE} > ${FILE}.$$ && \
|
2007-01-16 00:33:08 +01:00
|
|
|
cp --remove-destination ${FILE}.$$ ${FILE} && \
|
|
|
|
rm ${FILE}.$$
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "Can not find \"$FILE\". Not updating the file." >&2
|
|
|
|
fi
|
|
|
|
fi
|
2009-10-12 16:51:23 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
2007-01-16 00:33:08 +01:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%post
|
|
|
|
# We never have to run suseconfig for postfix after installation
|
|
|
|
# We only start postfix own upgrade-configuration by update
|
2011-04-12 14:59:50 +02:00
|
|
|
if [ ${1:-0} -gt 1 ]; then
|
2015-01-27 12:52:31 +01:00
|
|
|
touch %{_localstatedir}/adm/postfix.configured
|
2014-06-09 14:19:18 +02:00
|
|
|
# Check if main.cf and master.cf was changed manualy
|
|
|
|
MAINCH=0
|
2015-01-27 12:52:31 +01:00
|
|
|
if [ -e %{_localstatedir}/adm/SuSEconfig/md5%{_sysconfdir}/postfix/main.cf ]; then
|
|
|
|
MD5SUM1=$( cat %{_localstatedir}/adm/SuSEconfig/md5%{_sysconfdir}/postfix/main.cf )
|
|
|
|
MD5SUM2=$( grep -v "^#" %{_sysconfdir}/postfix/main.cf | md5sum )
|
2014-06-09 14:19:18 +02:00
|
|
|
if [ "$MD5SUM1" != "$MD5SUM2" ]; then
|
|
|
|
MAINCH=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
MASTERCH=0
|
2015-01-27 12:52:31 +01:00
|
|
|
if [ -e %{_localstatedir}/adm/SuSEconfig/md5%{_sysconfdir}/postfix/master.cf ]; then
|
|
|
|
MD5SUM1=$( cat %{_localstatedir}/adm/SuSEconfig/md5%{_sysconfdir}/postfix/master.cf )
|
|
|
|
MD5SUM2=$( grep -v "^#" %{_sysconfdir}/postfix/master.cf | md5sum )
|
2014-06-09 14:19:18 +02:00
|
|
|
if [ "$MD5SUM1" != "$MD5SUM2" ]; then
|
|
|
|
MASTERCH=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "Executing upgrade-configuration."
|
2015-01-27 12:52:31 +01:00
|
|
|
%{_sbindir}/postfix set-permissions upgrade-configuration setgid_group=%{pf_setgid_group} || :
|
2014-06-09 14:19:18 +02:00
|
|
|
if [ $MASTERCH -eq 0 ]; then
|
2015-01-27 12:52:31 +01:00
|
|
|
test -e %{_localstatedir}/adm/SuSEconfig/md5%{_sysconfdir}/postfix/master.cf && grep -v "^#" %{_sysconfdir}/postfix/master.cf | md5sum > %{_localstatedir}/adm/SuSEconfig/md5%{_sysconfdir}/postfix/master.cf
|
2014-06-09 14:19:18 +02:00
|
|
|
fi
|
|
|
|
if [ $MAINCH -eq 0 ]; then
|
2015-01-27 12:52:31 +01:00
|
|
|
test -e %{_localstatedir}/adm/SuSEconfig/md5%{_sysconfdir}/postfix/main.cf && grep -v "^#" %{_sysconfdir}/postfix/main.cf | md5sum > %{_localstatedir}/adm/SuSEconfig/md5%{_sysconfdir}/postfix/main.cf
|
2014-06-09 14:19:18 +02:00
|
|
|
fi
|
2011-04-12 14:59:50 +02:00
|
|
|
fi
|
2015-01-27 12:52:31 +01:00
|
|
|
%if 0%{?suse_version} > 1210
|
2011-11-03 16:56:57 +01:00
|
|
|
%service_add_post %{name}.service
|
2015-01-27 12:52:31 +01:00
|
|
|
|
|
|
|
%set_permissions %{_sbindir}/postqueue
|
|
|
|
%set_permissions %{_sbindir}/postdrop
|
|
|
|
%set_permissions %{_sysconfdir}/%{name}/sasl_passwd
|
|
|
|
%set_permissions %{_sbindir}/sendmail
|
|
|
|
|
|
|
|
%{fillup_only -y postfix}
|
|
|
|
%else
|
|
|
|
%{fillup_and_insserv -y postfix}
|
2011-11-03 16:56:57 +01:00
|
|
|
%endif
|
2015-01-27 12:52:31 +01:00
|
|
|
%{fillup_only -an mail}
|
2010-01-21 11:04:31 +01:00
|
|
|
/sbin/ldconfig
|
2015-08-11 16:10:15 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
%verifyscript
|
|
|
|
%verify_permissions -e %{_sbindir}/postqueue
|
|
|
|
%verify_permissions -e %{_sbindir}/postdrop
|
|
|
|
%verify_permissions -e %{_sysconfdir}/%{name}/sasl_passwd
|
|
|
|
%verify_permissions -e %{_sbindir}/sendmail
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
%{fillup_only postfix}
|
|
|
|
%else
|
|
|
|
%{fillup_and_insserv -y postfix}
|
2015-08-11 16:10:15 +02:00
|
|
|
%endif
|
2009-10-12 16:51:23 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
2007-01-16 00:33:08 +01:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%postun
|
2015-01-27 12:52:31 +01:00
|
|
|
%if 0%{?suse_version} > 1210
|
2011-11-03 16:56:57 +01:00
|
|
|
%service_del_postun %{name}.service
|
2017-02-20 11:00:51 +01:00
|
|
|
%else
|
|
|
|
%restart_on_update %{name}
|
|
|
|
%insserv_cleanup
|
2011-11-03 16:56:57 +01:00
|
|
|
%endif
|
2015-01-27 12:52:31 +01:00
|
|
|
/sbin/ldconfig
|
2011-11-03 16:56:57 +01:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
2007-01-16 00:33:08 +01:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%post postgresql
|
|
|
|
FILE=etc/%{name}/dynamicmaps.cf
|
|
|
|
if ! grep -q "^pgsql[[:space:]]" ${FILE}; then
|
|
|
|
echo "Adding pgsql map entry to ${FILE}"
|
2017-10-09 11:13:42 +02:00
|
|
|
echo "pgsql %{pf_shlib_directory}/dict_pgsql.so dict_pgsql_open" >> ${FILE}
|
2009-10-12 16:51:23 +02:00
|
|
|
fi
|
|
|
|
# ---------------------------------------------------------------------------
|
2007-01-16 00:33:08 +01:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%post mysql
|
|
|
|
FILE=etc/%{name}/dynamicmaps.cf
|
|
|
|
if ! grep -q "^mysql[[:space:]]" ${FILE}; then
|
|
|
|
echo "Adding mysql map entry to ${FILE}"
|
2017-10-09 11:13:42 +02:00
|
|
|
echo "mysql %{pf_shlib_directory}/dict_mysql.so dict_mysql_open" >> ${FILE}
|
2009-10-12 16:51:23 +02:00
|
|
|
fi
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
2011-04-12 14:59:50 +02:00
|
|
|
%files
|
2007-01-16 00:33:08 +01:00
|
|
|
%defattr(-,root,root)
|
2011-02-10 12:44:16 +01:00
|
|
|
%doc LICENSE
|
2015-01-27 12:52:31 +01:00
|
|
|
%config %{_sysconfdir}/pam.d/*
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.mail-%{name}
|
|
|
|
%{_sbindir}/config.%{name}
|
2009-10-12 16:51:23 +02:00
|
|
|
%config(noreplace) %{omc_dir}/%{name}.xml
|
2015-01-27 12:52:31 +01:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%config %{_sysconfdir}/%{name}/main.cf.default
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/[^mysql]*[^mysql]
|
2015-01-27 12:52:31 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/access
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/aliases
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/canonical
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/header_checks
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/helo_access
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/ldap_aliases.cf
|
2015-01-27 12:52:31 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/main.cf
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/master.cf
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/post-install
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/postfix-files
|
2015-01-27 12:52:31 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/relay
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/relay_ccerts
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/sasl_passwd
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/sender_canonical
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/virtual
|
|
|
|
|
2015-01-27 12:52:31 +01:00
|
|
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/smtp
|
|
|
|
%dir %{_sysconfdir}/sasl2/
|
|
|
|
%config(noreplace) %{_sysconfdir}/sasl2/smtpd.conf
|
|
|
|
%config %{_sysconfdir}/%{name}/LICENSE
|
|
|
|
%config %{_sysconfdir}/%{name}/TLS_LICENSE
|
|
|
|
%config %{_sysconfdir}/permissions.d/%{name}
|
|
|
|
%config %{_sysconfdir}/permissions.d/%{name}.paranoid
|
|
|
|
%attr(0644, root, root) %config %{_sysconfdir}/%{name}/makedefs.out
|
2017-10-09 11:13:42 +02:00
|
|
|
%{pf_shlib_directory}/%{name}-files
|
2016-11-26 17:56:05 +01:00
|
|
|
# create our default postfix ssl DIR (/etc/postfix/ssl)
|
|
|
|
%dir %{_sysconfdir}/postfix/ssl
|
|
|
|
%dir %{_sysconfdir}/postfix/ssl/certs
|
|
|
|
%{_sysconfdir}/postfix/ssl/cacerts
|
2015-01-27 12:52:31 +01:00
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
%dir %{_sysconfdir}/postfix/system
|
|
|
|
%config %attr(0755,root,root) %{_sysconfdir}/postfix/system/*
|
2013-02-25 11:13:10 +01:00
|
|
|
%config %{_unitdir}/system/postfix.service
|
2015-01-27 12:52:31 +01:00
|
|
|
%else
|
|
|
|
%config %attr(0755,root,root) %{_initddir}/%{name}
|
2011-08-12 18:44:59 +02:00
|
|
|
%endif
|
2015-01-27 12:52:31 +01:00
|
|
|
%verify(not mode) %attr(2755,root,%{pf_setgid_group}) %{_sbindir}/postdrop
|
|
|
|
%verify(not mode) %attr(2755,root,%{pf_setgid_group}) %{_sbindir}/postqueue
|
|
|
|
%{_bindir}/mailq
|
|
|
|
%{_bindir}/newaliases
|
|
|
|
%attr(0755,root,root) %{_sbindir}/sendmail
|
|
|
|
%attr(0755,root,root) %{_sbindir}/postalias
|
|
|
|
%attr(0755,root,root) %{_sbindir}/postcat
|
|
|
|
%attr(0755,root,root) %{_sbindir}/postconf
|
|
|
|
%attr(0755,root,root) %{_sbindir}/postfix
|
|
|
|
%attr(0755,root,root) %{_sbindir}/postkick
|
|
|
|
%attr(0755,root,root) %{_sbindir}/postlock
|
|
|
|
%attr(0755,root,root) %{_sbindir}/postlog
|
|
|
|
%attr(0755,root,root) %{_sbindir}/postmap
|
|
|
|
%attr(0755,root,root) %{_sbindir}/postmulti
|
|
|
|
%attr(0755,root,root) %{_sbindir}/postsuper
|
|
|
|
%attr(0755,root,root) %{_sbindir}/qmqp-source
|
|
|
|
%attr(0755,root,root) %{_sbindir}/smtp-sink
|
|
|
|
%attr(0755,root,root) %{_sbindir}/smtp-source
|
|
|
|
%attr(0755,root,root) %{_sbindir}/mkpostfixcert
|
|
|
|
%attr(0755,root,root) %{_sbindir}/check_mail_queue
|
|
|
|
%attr(0755,root,root) %{_sbindir}/config.postfix
|
|
|
|
%{_sbindir}/rc%{name}
|
2007-01-16 00:33:08 +01:00
|
|
|
%{_libdir}/lib*
|
2015-01-27 12:52:31 +01:00
|
|
|
%{_libexecdir}/sendmail
|
2017-10-09 11:13:42 +02:00
|
|
|
%dir %{pf_shlib_directory}
|
|
|
|
%{pf_shlib_directory}/*[^.so]
|
|
|
|
%{pf_shlib_directory}/postfix-ldap.so
|
|
|
|
%{pf_shlib_directory}/postfix-pcre.so
|
|
|
|
%{pf_shlib_directory}/libpostfix-dns.so
|
|
|
|
%{pf_shlib_directory}/libpostfix-global.so
|
|
|
|
%{pf_shlib_directory}/libpostfix-master.so
|
|
|
|
%{pf_shlib_directory}/libpostfix-tls.so
|
|
|
|
%{pf_shlib_directory}/libpostfix-util.so
|
|
|
|
%{pf_shlib_directory}/main.cf.proto
|
|
|
|
%{pf_shlib_directory}/master.cf.proto
|
Accepting request 373635 from home:varkoly:branches:server:mail
- update to 3.1.0
- Since version 3.0 postfix supports dynamic loading of cdb:, ldap:,
lmdb:, mysql:, pcre:, pgsql:, sdbm:, and sqlite: database clients.
Thats why the patches dynamic_maps.patch and dynamic_maps_pie.patch
could be removed.
- Adapting all the patches to postfix 3.1.0
- The patch postfix-db6.diff is not more neccessary
- Backwards-compatibility safety net.
With NEW Postfix installs, you MUST install a main.cf file with
the setting "compatibility_level = 2". See conf/main.cf for an
example.
With UPGRADES of existing Postfix systems, you MUST NOT change the
main.cf compatibility_level setting, nor add this setting if it
does not exist.
Several Postfix default settings have changed with Postfix 3.0. To
avoid massive frustration with existing Postfix installations,
Postfix 3.0 comes with a safety net that forces Postfix to keep
running with backwards-compatible main.cf and master.cf default
settings. This safety net depends on the main.cf compatibility_level
setting (default: 0). Details are in COMPATIBILITY_README.
- Major changes - tls
* [Feature 20160207] A new "postfix tls" command to quickly enable
opportunistic TLS in the Postfix SMTP client or server, and to
manage SMTP server keys and certificates, including certificate
signing requests and TLSA DNS records for DANE.
* As of the middle of 2015, all supported Postfix releases no longer
nable "export" grade ciphers for opportunistic TLS, and no longer
use the deprecated SSLv2 and SSLv3 protocols for mandatory or
OBS-URL: https://build.opensuse.org/request/show/373635
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=232
2016-03-18 18:07:45 +01:00
|
|
|
|
2007-01-16 00:33:08 +01:00
|
|
|
%{conf_backup_dir}
|
2009-10-12 16:51:23 +02:00
|
|
|
%dir %attr(0700,%{name},root) %{pf_data_directory}
|
2007-01-16 00:33:08 +01:00
|
|
|
%{_mandir}/man?/*.gz
|
2014-06-11 13:33:28 +02:00
|
|
|
%dir %attr(0755,root,root) /%{pf_queue_directory}
|
2011-05-04 13:36:12 +02:00
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/active
|
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/bounce
|
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/corrupt
|
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/defer
|
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/deferred
|
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/flush
|
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/hold
|
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/incoming
|
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/private
|
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/saved
|
|
|
|
%dir %attr(0700,%{name},root) /%{pf_queue_directory}/trace
|
|
|
|
%dir %attr(0730,%{name},maildrop) /%{pf_queue_directory}/maildrop
|
|
|
|
%dir %attr(0710,%{name},maildrop) /%{pf_queue_directory}/public
|
2007-01-16 00:33:08 +01:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2015-01-27 12:52:31 +01:00
|
|
|
%{_includedir}/%{name}/
|
2008-10-22 18:42:21 +02:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%files doc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{pf_docdir}/
|
2008-10-22 18:42:21 +02:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%files mysql
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{name}-mysql/%{name}-mysql.sql
|
2015-01-27 12:52:31 +01:00
|
|
|
%config(noreplace) %attr(640, root, %{name}) %{_sysconfdir}/%{name}/*_maps.cf
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/main.cf-mysql
|
2017-10-09 11:13:42 +02:00
|
|
|
%{pf_shlib_directory}/postfix-mysql.so
|
2008-10-22 18:42:21 +02:00
|
|
|
|
2009-10-12 16:51:23 +02:00
|
|
|
%files postgresql
|
|
|
|
%defattr(-,root,root)
|
2017-10-09 11:13:42 +02:00
|
|
|
%{pf_shlib_directory}/postfix-pgsql.so
|
2007-01-16 00:33:08 +01:00
|
|
|
|
2016-03-21 17:10:37 +01:00
|
|
|
%if %{with lmdb}
|
|
|
|
%files lmdb
|
|
|
|
%defattr(-,root,root)
|
2017-10-09 11:13:42 +02:00
|
|
|
%{pf_shlib_directory}/postfix-lmdb.so
|
2016-03-21 17:10:37 +01:00
|
|
|
%endif
|
|
|
|
|
2007-02-26 19:06:55 +01:00
|
|
|
%changelog
|