commit b8397f30957d006ff7efdb923e07b4d573d57cce Author: Daniel Berteaud Date: Fri May 2 16:59:52 2014 +0200 Initial commit diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..811424f --- /dev/null +++ b/createlinks @@ -0,0 +1,29 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); + +service_link_enhanced("altqmail", "S80", "7"); +service_link_enhanced("altqmail", "K60", "6"); +service_link_enhanced("altqmail", "K60", "0"); +service_link_enhanced("altqmail", "K60", "1"); +service_link_enhanced("altqmail-smtpd", "S80", "7"); +service_link_enhanced("altqmail-smtpd", "K60", "6"); +service_link_enhanced("altqmail-smtpd", "K60", "0"); +service_link_enhanced("altqmail-smtpd", "K60", "1"); + +safe_touch("root/var/service/altqmail/down"); +safe_touch("root/var/service/altqmail-smtpd/down"); +safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/altqmail'); +safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/altqmail-smtpd'); + +safe_symlink("/var/service/altqmail" , 'root/service/altqmail'); +safe_symlink("/var/service/altqmail-smtpd" , 'root/service/altqmail-smtpd'); + +safe_symlink("sighup", "root/etc/e-smith/events/email-update/services2adjust/altqmail"); +safe_symlink("sighup", "root/etc/e-smith/events/email-update/services2adjust/altqmail-smtpd"); + +foreach my $f (qw(me bouncehost smtproutes concurrencyremote)){ + safe_touch("root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/$f/template-begin"); + templates2events("/var/service/altqmail/root/var/qmail/control/$f", qw(email-update bootstrap-console-save)); +} + diff --git a/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/TCPPort b/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/TCPPort new file mode 100644 index 0000000..f64f5d8 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/TCPPort @@ -0,0 +1 @@ +27 diff --git a/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/access b/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/access new file mode 100644 index 0000000..2fbb50c --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/access @@ -0,0 +1 @@ +localhost diff --git a/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/status b/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/status new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/status @@ -0,0 +1 @@ +enabled diff --git a/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/type b/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/type new file mode 100644 index 0000000..24e1098 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/altqmail-smtpd/type @@ -0,0 +1 @@ +service diff --git a/root/etc/e-smith/db/configuration/defaults/altqmail/status b/root/etc/e-smith/db/configuration/defaults/altqmail/status new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/altqmail/status @@ -0,0 +1 @@ +enabled diff --git a/root/etc/e-smith/db/configuration/defaults/altqmail/type b/root/etc/e-smith/db/configuration/defaults/altqmail/type new file mode 100644 index 0000000..24e1098 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/altqmail/type @@ -0,0 +1 @@ +service diff --git a/root/etc/e-smith/templates/var/qmail/control/smtproutes/15AltQmail b/root/etc/e-smith/templates/var/qmail/control/smtproutes/15AltQmail new file mode 100644 index 0000000..dcc0ac9 --- /dev/null +++ b/root/etc/e-smith/templates/var/qmail/control/smtproutes/15AltQmail @@ -0,0 +1,9 @@ +{ + +$OUT = ''; + +foreach my $domain (split /[,;]/, ($altqmail{'Domains'} || '')){ + $OUT .= "$domain:127.0.0.1:" . (${'altqmail-smtpd'}{'TCPPort'} || '27') . "\n"; +} + +} diff --git a/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/bouncehost/10all b/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/bouncehost/10all new file mode 100644 index 0000000..24c4714 --- /dev/null +++ b/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/bouncehost/10all @@ -0,0 +1 @@ +{ $DomainName } diff --git a/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/concurrencyremote/10all b/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/concurrencyremote/10all new file mode 100644 index 0000000..bbae8db --- /dev/null +++ b/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/concurrencyremote/10all @@ -0,0 +1 @@ +{ $DB->get('altqmail')->prop('ConcurrencyRemote') || "5"; } diff --git a/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/me/10all b/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/me/10all new file mode 100644 index 0000000..f3f11fc --- /dev/null +++ b/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/me/10all @@ -0,0 +1 @@ +altqmail.{$DomainName} diff --git a/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/smtproutes/10localdomains b/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/smtproutes/10localdomains new file mode 100644 index 0000000..f43ad10 --- /dev/null +++ b/root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/smtproutes/10localdomains @@ -0,0 +1,18 @@ +{ + $OUT = ''; + + use esmith::DomainsDB; + my $domainsdb = esmith::DomainsDB->open_ro(); + + for my $domain ($domainsdb->domains) + { + my $mail_server = $domain->prop('MailServer') + || $DelegateMailServer + || 'localhost'; + + next if ( $mail_server ne 'localhost' ); + + $emaildomain = $domain->key; + $OUT .= "$emaildomain:127.0.0.1\n"; + } +} diff --git a/root/var/service/altqmail-smtpd/log/run b/root/var/service/altqmail-smtpd/log/run new file mode 100644 index 0000000..7895cc5 --- /dev/null +++ b/root/var/service/altqmail-smtpd/log/run @@ -0,0 +1,9 @@ +#!/bin/sh + +NUM=$(/sbin/e-smith/db configuration getprop altqmail-smtpd KeepLogFiles) + +exec \ + /usr/local/bin/setuidgid qmaill \ + /usr/local/bin/multilog t s5000000 \ + n${NUM:-10} \ + /var/log/altqmail-smtpd diff --git a/root/var/service/altqmail-smtpd/run b/root/var/service/altqmail-smtpd/run new file mode 100644 index 0000000..d6e7e6f --- /dev/null +++ b/root/var/service/altqmail-smtpd/run @@ -0,0 +1,9 @@ +#!/bin/sh + +PORT=$(/sbin/e-smith/db configuration getprop altqmail-smtpd TCPPort) + +exec \ + /usr/bin/env - PATH="/var/qmail/bin:/bin:/usr/bin:/usr/local/bin" \ + tcpsvd -vv 127.0.0.1 ${PORT:-27} \ + chpst -u qmails -/ ../altqmail/root /var/qmail/bin/qmail-smtpd \ + 2>&1 diff --git a/root/var/service/altqmail/finish b/root/var/service/altqmail/finish new file mode 100644 index 0000000..5fb8159 --- /dev/null +++ b/root/var/service/altqmail/finish @@ -0,0 +1,5 @@ +#!/bin/sh + +umount /var/service/altqmail/root/var/qmail/bin +rm -rf root/etc +rm -rf root/lib diff --git a/root/var/service/altqmail/log/run b/root/var/service/altqmail/log/run new file mode 100644 index 0000000..0581428 --- /dev/null +++ b/root/var/service/altqmail/log/run @@ -0,0 +1,9 @@ +#!/bin/sh + +NUM=$(/sbin/e-smith/db configuration getprop altqmail KeepLogFiles) + +exec \ + /usr/local/bin/setuidgid qmaill \ + /usr/local/bin/multilog t s5000000 \ + n${NUM:-10} \ + /var/log/altqmail diff --git a/root/var/service/altqmail/run b/root/var/service/altqmail/run new file mode 100644 index 0000000..d0c22f7 --- /dev/null +++ b/root/var/service/altqmail/run @@ -0,0 +1,33 @@ +#! /bin/sh + +exec 2>&1 + +mount --bind /var/qmail/bin/ root/var/qmail/bin + +if [ ! -d root/etc ]; then + mkdir root/etc + cp -a /etc/resolv.conf root/etc + cp -a /etc/services root/etc + cp -a /etc/passwd root/etc + cp -a /etc/group root/etc +fi + +if [ ! -d root/lib ]; then + mkdir root/lib + cp -a /lib/libc-2.5.so root/lib + ln -s libc-2.5.so root/lib/libc.so.6 + cp -a /lib/ld-2.5.so root/lib/ + ln -s ld-2.5.so root/lib/ld-linux.so.2 + cp -a /lib/libnss_files-2.5.so root/lib + ln -s libnss_files-2.5.so root/lib/libnss_files.so.2 + cp -a /lib/libresolv-2.5.so root/lib + ln -s libresolv-2.5.so root/lib/libresolv.so.2 +fi + +chown qmails:qmail root/var/qmail/queue/lock/trigger +chmod 622 root/var/qmail/queue/lock/trigger + +exec \ + /usr/bin/env - PATH="/var/qmail/bin:/bin:/usr/bin:/usr/local/bin" \ + /usr/sbin/chroot root /var/qmail/bin/qmail-start \ + ./Maildir/ diff --git a/smeserver-altqmail.spec b/smeserver-altqmail.spec new file mode 100644 index 0000000..b026947 --- /dev/null +++ b/smeserver-altqmail.spec @@ -0,0 +1,209 @@ +%define version 0.1.0 +%define release 1 +%define name smeserver-altqmail + + +Summary: Second qmail instance +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +License: GPL +Group: Networking/Daemons +Source: %{name}-%{version}.tar.gz + +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot +BuildArchitectures: noarch +BuildRequires: e-smith-devtools + +Requires: e-smith-base >= 5.2.0 +Requires: qmail + +%description +Provides a second qmail instance, with its own configuration +Usefull if you want to reduce the ConcurrencyRemote option +only for some domains + +%changelog +* Wed May 7 2014 Daniel Berteaud - 0.1.0-1.sme +- Initial release + +%prep +%setup -q -n %{name}-%{version} + +%build +%{__mkdir_p} root/var/log/{altqmail,altqmail-smtpd} +perl createlinks +mkdir -p root/var/service/altqmail/root/var/qmail/{queue,control,bin} +# Create the chrooted qmail queue +pushd root/var/service/altqmail/root/var/qmail/queue +mkdir pid +mkdir mess +mkdir todo +mkdir bounce +for i in `seq 0 22`; do + mkdir -p mess/$i +done +cp -r mess info +cp -r mess intd +cp -r mess local +cp -r mess remote +mkdir lock +dd bs=1024 count=1 if=/dev/zero of=lock/tcpto +mkfifo lock/trigger +touch lock/sendmutex +popd + + +%install +/bin/rm -rf $RPM_BUILD_ROOT +(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) +/bin/rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + --file /var/service/altqmail/run 'attr(0755,root,root)' \ + --file /var/service/altqmail/finish 'attr(0755,root,root)' \ + --file /var/service/altqmail/log/run 'attr(0755,root,root)' \ + --file /var/service/altqmail-smtpd/run 'attr(0755,root,root)' \ + --file /var/service/altqmail-smtpd/log/run 'attr(0755,root,root)' \ + --dir /var/log/altqmail 'attr(0750,qmaill,root)' \ + --dir /var/log/altqmail-smtpd 'attr(0750,qmaill,root)' \ + --dir /var/service/altqmail/root/var/qmail/queue 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/bounce 'attr(0755,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/lock 'attr(0750,qmailq,qmail)' \ + --file /var/service/altqmail/root/var/qmail/queue/lock/tcpto 'attr(0644,qmailr,qmail)' \ + --file /var/service/altqmail/root/var/qmail/queue/lock/sendmutex 'attr(0600,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/0 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/1 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/2 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/3 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/4 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/5 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/6 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/7 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/8 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/9 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/10 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/11 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/12 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/13 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/14 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/15 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/16 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/17 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/18 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/19 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/20 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/21 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/intd/22 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/0 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/1 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/2 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/3 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/4 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/5 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/6 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/7 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/8 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/9 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/10 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/11 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/12 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/13 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/14 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/15 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/16 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/17 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/18 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/29 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/20 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/21 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/local/22 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/0 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/1 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/2 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/3 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/4 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/5 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/6 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/7 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/8 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/9 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/10 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/11 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/12 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/13 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/14 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/15 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/16 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/17 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/18 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/29 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/20 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/21 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/info/22 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/pid 'attr(0700,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/0 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/1 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/2 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/3 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/4 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/5 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/6 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/7 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/8 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/9 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/10 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/11 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/12 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/13 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/14 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/15 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/16 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/17 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/18 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/29 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/20 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/21 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/remote/22 'attr(0700,qmails,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/0 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/1 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/2 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/3 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/4 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/5 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/6 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/7 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/8 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/9 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/10 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/11 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/12 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/13 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/14 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/15 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/16 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/17 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/18 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/19 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/20 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/21 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/mess/22 'attr(0750,qmailq,qmail)' \ + --dir /var/service/altqmail/root/var/qmail/queue/todo 'attr(0750,qmailq,qmail)' \ + > %{name}-%{version}-filelist + +%files -f %{name}-%{version}-filelist +%defattr(-,root,root) + +%clean +rm -rf $RPM_BUILD_ROOT + +%pre + +%post + +%preun +