Группа :: Система/Серверы
Пакет: postgrey
Главная Изменения Спек Патчи Загрузить Bugs and FR
# This spec for backport to M24 is autogenerated. Do not edit it.
%define postgrey_user postgrey
%define postgrey_group postgrey
%define postgrey_home %_localstatedir/%name
Name: postgrey
Version: 1.27
Release: alt0.M24.1
Summary: Greylisting Policy Server for Postfix and Exim
License: GPL
Group: System/Servers
URL: http://isg.ee.ethz.ch/tools/postgrey
BuildArch: noarch
Source0: http://isg.ee.ethz.ch/tools/postgrey/pub/%name-%version.tar.gz
Source1: %name.init
Source2: %name.sysconfig
Source3: %{name}_clients_dump
Source4: %name.dogwatch
Source5: %name.dogwatch.cron
Source6: %name.README.ALT
Patch0: postgrey-1.24-alt.patch
Packager: Vladimir V Kamarzin <vvk at altlinux.ru>
BuildPreReq: perl, perl-IO-Multiplex, perl-Net-Server, perl-BerkeleyDB, perl-Net-DNS
Requires: perl-IO-Multiplex
BuildRequires: rpm-build-compat >= 0.4
%description
Postgrey is a Postfix policy server implementing greylisting.
When a request for delivery of a mail is received by Postfix
via SMTP, the triplet CLIENT_IP / SENDER / RECIPIENT is built.
If it is the first time that this triplet is seen, or if the
triplet was first seen less than 5 minutes, then the mail gets
rejected with a temporary error. Hopefully spammers or viruses
will not try again later, as it is however required per RFC.
Edit your configuration files:
/etc/postfix/main.cf:
smtpd_recipient_restrictions = ...
check_policy_service unix:postgrey/socket, ...
or if you like to use inet sockets (modify the IP if needed):
/etc/sysconfig/postgrey:
OPTIONS="--inet=127.0.0.1:60000"
/etc/postfix/main.cf:
smtpd_recipient_restrictions = ...
check_policy_service inet:127.0.0.1:60000, ...
%package dogwatch
Summary: script and cron job for checking that postgrey is running
Group: System/Servers
Requires: %name = %version-%release
%description dogwatch
Script and cron job for checking that postgrey is running.
I wrote this script by dfo at 's request.
%prep
%setup -q -n %name-%version
%patch0 -p1
%install
install -d -m1711 %buildroot%_localstatedir/%name
install -d -m1755 %buildroot%_var/run/%name
install -pD -m0755 %name %buildroot%_sbindir/%name
install -pD -m0755 %SOURCE4 %buildroot%_sbindir/%name-dogwatch
install -pD -m0755 %SOURCE1 %buildroot%_initdir/%name
install -pD -m0644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/%name
install -pD -m0644 %SOURCE5 %buildroot%_sysconfdir/cron.d/%name-dogwatch
install -pD -m0644 postgrey_whitelist_clients %buildroot%_sysconfdir/%name/whitelist_clients
install -pD -m0644 postgrey_whitelist_recipients %buildroot%_sysconfdir/%name/whitelist_recipients
install -pD -m0644 %SOURCE6 README.ALT
install -m0755 %SOURCE3 contrib
touch %buildroot%_sysconfdir/%name/whitelist_clients.local
%pre
/usr/sbin/groupadd -r -f %postgrey_group ||:
/usr/sbin/useradd -g %postgrey_group -c 'The Postgrey Daemon' \
-d %postgrey_home -s /dev/null -r %postgrey_user >/dev/null 2>&1 ||:
%post
%post_service %name
%preun
%preun_service %name
%files
%_sbindir/%name
%_initdir/%name
%config(noreplace) %_sysconfdir/sysconfig/*
%config(noreplace) %_sysconfdir/%name/*
%dir %attr(1771,root,%postgrey_group) %_localstatedir/%name
%dir %attr(1775,root,%postgrey_group) %_var/run/%name
%doc README* Changes contrib
%files dogwatch
%_sbindir/%name-dogwatch
%_sysconfdir/cron.d/%name-dogwatch
%changelog
…
Полный changelog можно просмотреть здесь
%define postgrey_user postgrey
%define postgrey_group postgrey
%define postgrey_home %_localstatedir/%name
Name: postgrey
Version: 1.27
Release: alt0.M24.1
Summary: Greylisting Policy Server for Postfix and Exim
License: GPL
Group: System/Servers
URL: http://isg.ee.ethz.ch/tools/postgrey
BuildArch: noarch
Source0: http://isg.ee.ethz.ch/tools/postgrey/pub/%name-%version.tar.gz
Source1: %name.init
Source2: %name.sysconfig
Source3: %{name}_clients_dump
Source4: %name.dogwatch
Source5: %name.dogwatch.cron
Source6: %name.README.ALT
Patch0: postgrey-1.24-alt.patch
Packager: Vladimir V Kamarzin <vvk at altlinux.ru>
BuildPreReq: perl, perl-IO-Multiplex, perl-Net-Server, perl-BerkeleyDB, perl-Net-DNS
Requires: perl-IO-Multiplex
BuildRequires: rpm-build-compat >= 0.4
%description
Postgrey is a Postfix policy server implementing greylisting.
When a request for delivery of a mail is received by Postfix
via SMTP, the triplet CLIENT_IP / SENDER / RECIPIENT is built.
If it is the first time that this triplet is seen, or if the
triplet was first seen less than 5 minutes, then the mail gets
rejected with a temporary error. Hopefully spammers or viruses
will not try again later, as it is however required per RFC.
Edit your configuration files:
/etc/postfix/main.cf:
smtpd_recipient_restrictions = ...
check_policy_service unix:postgrey/socket, ...
or if you like to use inet sockets (modify the IP if needed):
/etc/sysconfig/postgrey:
OPTIONS="--inet=127.0.0.1:60000"
/etc/postfix/main.cf:
smtpd_recipient_restrictions = ...
check_policy_service inet:127.0.0.1:60000, ...
%package dogwatch
Summary: script and cron job for checking that postgrey is running
Group: System/Servers
Requires: %name = %version-%release
%description dogwatch
Script and cron job for checking that postgrey is running.
I wrote this script by dfo at 's request.
%prep
%setup -q -n %name-%version
%patch0 -p1
%install
install -d -m1711 %buildroot%_localstatedir/%name
install -d -m1755 %buildroot%_var/run/%name
install -pD -m0755 %name %buildroot%_sbindir/%name
install -pD -m0755 %SOURCE4 %buildroot%_sbindir/%name-dogwatch
install -pD -m0755 %SOURCE1 %buildroot%_initdir/%name
install -pD -m0644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/%name
install -pD -m0644 %SOURCE5 %buildroot%_sysconfdir/cron.d/%name-dogwatch
install -pD -m0644 postgrey_whitelist_clients %buildroot%_sysconfdir/%name/whitelist_clients
install -pD -m0644 postgrey_whitelist_recipients %buildroot%_sysconfdir/%name/whitelist_recipients
install -pD -m0644 %SOURCE6 README.ALT
install -m0755 %SOURCE3 contrib
touch %buildroot%_sysconfdir/%name/whitelist_clients.local
%pre
/usr/sbin/groupadd -r -f %postgrey_group ||:
/usr/sbin/useradd -g %postgrey_group -c 'The Postgrey Daemon' \
-d %postgrey_home -s /dev/null -r %postgrey_user >/dev/null 2>&1 ||:
%post
%post_service %name
%preun
%preun_service %name
%files
%_sbindir/%name
%_initdir/%name
%config(noreplace) %_sysconfdir/sysconfig/*
%config(noreplace) %_sysconfdir/%name/*
%dir %attr(1771,root,%postgrey_group) %_localstatedir/%name
%dir %attr(1775,root,%postgrey_group) %_var/run/%name
%doc README* Changes contrib
%files dogwatch
%_sbindir/%name-dogwatch
%_sysconfdir/cron.d/%name-dogwatch
%changelog
…
Полный changelog можно просмотреть здесь