1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-qpsmtpd-1.2.1/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/37check_smtp_forward mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/37check_smtp_forward |
2 |
|
|
--- smeserver-qpsmtpd-1.2.1/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/37check_smtp_forward 1970-01-01 10:00:00.000000000 +1000 |
3 |
|
|
+++ mezzanine_patched_smeserver-qpsmtpd-1.2.1/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/37check_smtp_forward 2006-08-18 16:42:10.349994767 +1000 |
4 |
|
|
@@ -0,0 +1,13 @@ |
5 |
|
|
+{ |
6 |
|
|
+ return "check_smtp_forward" if $DelegateMailServer; |
7 |
|
|
+ |
8 |
|
|
+ use esmith::DomainsDB; |
9 |
|
|
+ my $ddb = esmith::DomainsDB->open_ro(); |
10 |
|
|
+ |
11 |
|
|
+ for my $domain ( $ddb->domains ) |
12 |
|
|
+ { |
13 |
|
|
+ return "check_smtp_forward" if $domain->prop('MailServer'); |
14 |
|
|
+ } |
15 |
|
|
+ |
16 |
|
|
+ return "# check_smtp_forward not required"; |
17 |
|
|
+} |