generated from smedev/Template-for-SMEServer-Contribs-Package
initial release
This commit is contained in:
43
createlinks
43
createlinks
@@ -1,43 +1,14 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
use esmith::Build::CreateLinks qw(:all);
|
use esmith::Build::CreateLinks qw(:all);
|
||||||
use esmith::Build::Backup qw(:all);
|
|
||||||
|
|
||||||
# our event specific for updating with yum without reboot
|
|
||||||
$event = 'smeserver-rspamd-update';
|
|
||||||
#add here the path to your templates needed to expand
|
|
||||||
#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
|
|
||||||
|
|
||||||
# Maybe need ths in here as well:
|
|
||||||
# /etc/dar/DailyBackup.dcf - if backup requested
|
|
||||||
|
|
||||||
foreach my $file (qw(
|
|
||||||
/etc/systemd/system-preset/49-koozali.preset
|
|
||||||
))
|
|
||||||
{
|
|
||||||
templates2events( $file, $event );
|
|
||||||
};
|
|
||||||
#action needed in case we have a systemd unit
|
|
||||||
event_link('systemd-default', $event, '10');
|
|
||||||
event_link('systemd-reload', $event, '50');
|
|
||||||
|
|
||||||
#services we might need to restart
|
|
||||||
#event_services($event, 'xxxx' => 'restart', 'yyyy' => 'restart');
|
|
||||||
|
|
||||||
#Backup contrib files
|
|
||||||
# backup_includes("smeserver-rspamd", qw(
|
|
||||||
# files(s) to be backed up
|
|
||||||
#));
|
|
||||||
|
|
||||||
#Other possible entries:
|
|
||||||
#Server manager entry
|
|
||||||
#panel_link("smeserver-rspamd", 'manager');
|
|
||||||
#Events to smeserver-rspamd
|
|
||||||
#$event = 'smeserver-rspamd-smeserver-rspamd';
|
|
||||||
# safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/smeserver-rspamd");
|
|
||||||
# templates2events("/etc/smeserver-rspamd/smeserver-rspamd.conf", $event);
|
|
||||||
|
|
||||||
|
|
||||||
|
my $event = "smeserver-rspamd-update";
|
||||||
|
|
||||||
|
templates2events("/etc/systemd/system-preset/49-koozali.preset",$event);
|
||||||
|
templates2events("/etc/postfix/main.cf",$event);
|
||||||
|
|
||||||
|
event_link("systemd-default",$event,"10");
|
||||||
|
event_link("systemd-reload",$event,"50");
|
||||||
|
|
||||||
|
safe_symlink("restart","root/etc/e-smith/events/$event/services2adjust/redis");
|
||||||
|
safe_symlink("restart","root/etc/e-smith/events/$event/services2adjust/rspamd");
|
||||||
|
|||||||
0
root/.gitignore
vendored
0
root/.gitignore
vendored
1
root/etc/e-smith/db/configuration/defaults/rspamd/access
Normal file
1
root/etc/e-smith/db/configuration/defaults/rspamd/access
Normal file
@@ -0,0 +1 @@
|
|||||||
|
private
|
||||||
1
root/etc/e-smith/db/configuration/defaults/rspamd/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/rspamd/status
Normal file
@@ -0,0 +1 @@
|
|||||||
|
enabled
|
||||||
1
root/etc/e-smith/db/configuration/defaults/rspamd/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/rspamd/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
service
|
||||||
4
root/etc/e-smith/templates/etc/postfix/main.cf/87rspamd
Normal file
4
root/etc/e-smith/templates/etc/postfix/main.cf/87rspamd
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Enable Rspamd milter
|
||||||
|
non_smtpd_milters = inet:localhost:11332
|
||||||
|
milter_default_action = accept
|
||||||
|
milter_protocol = 6
|
||||||
2
root/etc/rspamd/local.d/redis.conf
Normal file
2
root/etc/rspamd/local.d/redis.conf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Redis connection for statistics and caching
|
||||||
|
servers = "127.0.0.1:6379";
|
||||||
2
root/etc/rspamd/local.d/worker-controller.inc
Normal file
2
root/etc/rspamd/local.d/worker-controller.inc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Replace with your generated password
|
||||||
|
password = "$2$jbpc8abs4im4yo5dfffjrsxfhmgqc7og$pnquipu5dsq1joa9yft8nytfrokzijfzbk883iy6ed6n4oh7namb";
|
||||||
7
root/etc/rspamd/local.d/worker-proxy.inc
Normal file
7
root/etc/rspamd/local.d/worker-proxy.inc
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Enable milter mode for Postfix integration
|
||||||
|
milter = yes;
|
||||||
|
timeout = 120s;
|
||||||
|
upstream "local" {
|
||||||
|
default = yes;
|
||||||
|
self_scan = yes; # Scan messages directly
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
[Install]
|
||||||
|
WantedBy=sme-server.target
|
||||||
1075
root/usr/share/perl5/vendor_perl/Net/Milter.pm
Normal file
1075
root/usr/share/perl5/vendor_perl/Net/Milter.pm
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
%define name smeserver-rspamd
|
%define name smeserver-rspamd
|
||||||
%define version 1.0
|
%define version 11.0
|
||||||
%define release 1
|
%define release 1
|
||||||
Summary: This is what smeserver-rspamd does.
|
Summary: SME Server Rspamd
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
@@ -13,14 +13,17 @@ Prefix: %{_prefix}
|
|||||||
BuildArchitectures: noarch
|
BuildArchitectures: noarch
|
||||||
BuildRequires: smeserver-devtools
|
BuildRequires: smeserver-devtools
|
||||||
Requires: smeserver-release >= 11.0
|
Requires: smeserver-release >= 11.0
|
||||||
|
Requires: smeserver-redis
|
||||||
|
Requires: rspamd >= 3.13.2
|
||||||
|
|
||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
SME Server templates for Rspamd support
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
* Wed Nov 05 2025 Vasarhelyi Zsolt <zsoltv@koozali.org> 11.0-1.sme
|
||||||
- Initial code - create RPM [SME:99999]
|
- Initial release
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user