Accepting request 37592 from server:mail
Copy from server:mail/postfix based on submit request 37592 from user varkoly OBS-URL: https://build.opensuse.org/request/show/37592 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postfix?expand=0&rev=47
This commit is contained in:
commit
60c2275309
24
check_mail_queue
Normal file
24
check_mail_queue
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
nm()
|
||||||
|
{
|
||||||
|
NM=$( /usr/bin/mailq 2> /dev/null | tail -1 | /usr/bin/gawk '{ print $5 }' )
|
||||||
|
if [ "$NM" ]
|
||||||
|
then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
test -e /var/run/check_mail_queue.pid && exit;
|
||||||
|
echo $$ > /var/run/check_mail_queue.pid
|
||||||
|
while( nm )
|
||||||
|
do
|
||||||
|
/etc/init.d/postfix status || /etc/init.d/postfix start
|
||||||
|
sleep 10
|
||||||
|
/usr/sbin/postfix flush
|
||||||
|
done
|
||||||
|
/etc/init.d/postfix status && /etc/init.d/postfix stop
|
||||||
|
rm /var/run/check_mail_queue.pid
|
||||||
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 7 12:39:16 UTC 2010 - varkoly@novell.com
|
||||||
|
|
||||||
|
- New file check_mail_queue. This script checks if there are some
|
||||||
|
mails in the queue and starts postfix if necessary. After delivering
|
||||||
|
the mails postfix will be stoped.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 1 10:28:09 UTC 2010 - varkoly@novell.com
|
Thu Apr 1 10:28:09 UTC 2010 - varkoly@novell.com
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
Name: postfix
|
Name: postfix
|
||||||
Summary: A fast, secure, and flexible mailer
|
Summary: A fast, secure, and flexible mailer
|
||||||
Version: 2.7.0
|
Version: 2.7.0
|
||||||
Release: 2
|
Release: 3
|
||||||
License: IBM Public License ..
|
License: IBM Public License ..
|
||||||
Group: Productivity/Networking/Email/Servers
|
Group: Productivity/Networking/Email/Servers
|
||||||
Url: http://www.postfix.org/
|
Url: http://www.postfix.org/
|
||||||
@ -31,6 +31,7 @@ Source: %{name}-%{version}.tar.bz2
|
|||||||
Source1: %{name}-SuSE.tar.gz
|
Source1: %{name}-SuSE.tar.gz
|
||||||
Source2: %{name}-mysql.tar.bz2
|
Source2: %{name}-mysql.tar.bz2
|
||||||
Source10: rpmlintrc
|
Source10: rpmlintrc
|
||||||
|
Source11: check_mail_queue
|
||||||
Patch: dynamic_maps.patch
|
Patch: dynamic_maps.patch
|
||||||
Patch1: dynamic_maps_pie.patch
|
Patch1: dynamic_maps_pie.patch
|
||||||
Patch2: pointer_to_literals.patch
|
Patch2: pointer_to_literals.patch
|
||||||
@ -368,6 +369,7 @@ done
|
|||||||
%fdupes $RPM_BUILD_ROOT%{_mandir}
|
%fdupes $RPM_BUILD_ROOT%{_mandir}
|
||||||
%endif
|
%endif
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/usr/sbin/
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
VERSIONTEST=$(test -x usr/sbin/postconf && usr/sbin/postconf proxy_read_maps 2>/dev/null)
|
VERSIONTEST=$(test -x usr/sbin/postconf && usr/sbin/postconf proxy_read_maps 2>/dev/null)
|
||||||
@ -543,6 +545,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
/usr/sbin/smtp-sink
|
/usr/sbin/smtp-sink
|
||||||
/usr/sbin/smtp-source
|
/usr/sbin/smtp-source
|
||||||
/usr/sbin/mk%{name}cert
|
/usr/sbin/mk%{name}cert
|
||||||
|
/usr/sbin/check_mail_queue
|
||||||
/sbin/rc%{name}
|
/sbin/rc%{name}
|
||||||
%{_libdir}/lib*
|
%{_libdir}/lib*
|
||||||
/usr/lib/sendmail
|
/usr/lib/sendmail
|
||||||
|
Loading…
Reference in New Issue
Block a user