1 |
Summary: Second qmail instance |
Summary: Second qmail instance |
2 |
Name: smeserver-altqmail |
Name: smeserver-altqmail |
3 |
Version: 0.1.2 |
Version: 0.1.2 |
4 |
Release: 1%{?dist} |
Release: 2%{?dist} |
5 |
License: GPL |
License: GPL |
6 |
Group: Networking/Daemons |
Group: Networking/Daemons |
7 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
8 |
|
Patch0: smeserver-altqmail-0.1.2-sme10-throttle.patch |
9 |
|
|
10 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
11 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
only for some domains |
only for some domains |
21 |
|
|
22 |
%changelog |
%changelog |
23 |
|
* Thu Mar 23 2023 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.2-2.sme |
24 |
|
- import to SME10 [SME: 12344] |
25 |
|
adapt for systemd and add update event |
26 |
|
add throttle capability |
27 |
|
|
28 |
* Sun Nov 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.1.2-1 |
* Sun Nov 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.1.2-1 |
29 |
- Fixes in spec file (daniel@firewall-services.com) |
- Fixes in spec file (daniel@firewall-services.com) |
30 |
- Add tito's global lib_dir (daniel@firewall-services.com) |
- Add tito's global lib_dir (daniel@firewall-services.com) |
46 |
|
|
47 |
%prep |
%prep |
48 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
49 |
|
%patch0 -p1 |
50 |
|
|
51 |
%build |
%build |
52 |
%{__mkdir_p} root/var/log/{altqmail,altqmail-smtpd} |
%{__mkdir_p} root/var/log/{altqmail,altqmail-smtpd} |
53 |
perl createlinks |
perl createlinks |
54 |
mkdir -p root/var/service/altqmail/root/var/qmail/{queue,control,bin} |
mkdir -p root/var/service/altqmail/root/var/qmail/{queue,control,bin} |
55 |
|
mkdir -p root/var/service/altqmail/root/tmp |
56 |
|
mkdir -p root/var/service/altqmail/root/var/qmail/control/ |
57 |
|
echo "20/3600" > root/var/service/altqmail/root/var/qmail/control/outratelimit |
58 |
|
touch root/var/service/altqmail/root/var/qmail/control/qmail-remote-semaphore |
59 |
|
touch root/var/service/altqmail/root/var/qmail/control/outlog |
60 |
|
|
61 |
# Create the chrooted qmail queue |
# Create the chrooted qmail queue |
62 |
pushd root/var/service/altqmail/root/var/qmail/queue |
pushd root/var/service/altqmail/root/var/qmail/queue |
63 |
mkdir pid |
mkdir pid |
87 |
--file /var/service/altqmail/finish 'attr(0755,root,root)' \ |
--file /var/service/altqmail/finish 'attr(0755,root,root)' \ |
88 |
--file /var/service/altqmail/log/run 'attr(0755,root,root)' \ |
--file /var/service/altqmail/log/run 'attr(0755,root,root)' \ |
89 |
--file /var/service/altqmail-smtpd/run 'attr(0755,root,root)' \ |
--file /var/service/altqmail-smtpd/run 'attr(0755,root,root)' \ |
90 |
|
--file /var/service/altqmail/qmail-remote-throttle 'attr(0755,root,qmail)' \ |
91 |
--file /var/service/altqmail-smtpd/log/run 'attr(0755,root,root)' \ |
--file /var/service/altqmail-smtpd/log/run 'attr(0755,root,root)' \ |
92 |
--dir /var/log/altqmail 'attr(0750,qmaill,root)' \ |
--dir /var/log/altqmail 'attr(0750,qmaill,root)' \ |
93 |
--dir /var/log/altqmail-smtpd 'attr(0750,qmaill,root)' \ |
--dir /var/log/altqmail-smtpd 'attr(0750,qmaill,root)' \ |
94 |
|
--dir /var/service/altqmail/root/tmp 'attr(0777,root,root)' \ |
95 |
|
--file /var/service/altqmail/root/var/qmail/control/outratelimit 'attr(0644,root,root)' \ |
96 |
|
--file /var/service/altqmail/root/var/qmail/control/qmail-remote-semaphore 'attr(0554,root,qmail)' \ |
97 |
|
--file /var/service/altqmail/root/var/qmail/control/outlog 'attr(0554,root,qmail)' \ |
98 |
--dir /var/service/altqmail/root/var/qmail/queue 'attr(0750,qmailq,qmail)' \ |
--dir /var/service/altqmail/root/var/qmail/queue 'attr(0750,qmailq,qmail)' \ |
99 |
--dir /var/service/altqmail/root/var/qmail/queue/bounce 'attr(0755,qmails,qmail)' \ |
--dir /var/service/altqmail/root/var/qmail/queue/bounce 'attr(0755,qmails,qmail)' \ |
100 |
--dir /var/service/altqmail/root/var/qmail/queue/lock 'attr(0750,qmailq,qmail)' \ |
--dir /var/service/altqmail/root/var/qmail/queue/lock 'attr(0750,qmailq,qmail)' \ |