Skip to content

Commit

Permalink
Update MailScanner and MailWatch, fix opendkim install
Browse files Browse the repository at this point in the history
  • Loading branch information
shawniverson committed Apr 6, 2024
1 parent d449a4a commit ed2f6c4
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
/rpmbuild/SOURCES/eFa-*.tar.gz
/rpmbuild/SOURCES/eFa-base-4.0.0.tar.gz
/rpmbuild/SOURCES/eFa-base-4.0.0/eFaInit.old
/rpmbuild/SOURCES/eFa-base-4.0.0/eFaInit.tgz
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func_maxmind(){
FLAG=1
while [ $FLAG != "0" ]
do
if [[ $LICENSE =~ ^([0-9A-Za-z]{12}|[0-9A-Za-z]{16}|[0-9A-Za-z]{40})$ ]]; then
if [[ $LICENSE =~ ^([0-9A-Za-z]{12}|[0-9A-Za-z]{16}|[0-9A-Za-z_]{40})$ ]]; then
sed -i "/^\/\/ define('MAXMIND_LICENSE_KEY'/ c\define('MAXMIND_LICENSE_KEY','');" /var/www/html/mailscanner/conf.php
sed -i "/^define('MAXMIND_LICENSE_KEY'/ c\define('MAXMIND_LICENSE_KEY', '$LICENSE');" /var/www/html/mailscanner/conf.php
echo -e "$green[eFa]$clean Maxmind License Key installed"
Expand Down
Binary file removed rpmbuild/SOURCES/eFa-base-4.0.0/eFaInit.tgz
Binary file not shown.
28 changes: 28 additions & 0 deletions rpmbuild/SOURCES/eFa-base-4.0.0/opendkim-config-4.0.0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh
#-----------------------------------------------------------------------------#
# eFa 5.0.0 initial mailwatch-configuration script
#-----------------------------------------------------------------------------#
# Copyright (C) 2024 https://efa-project.org
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#-----------------------------------------------------------------------------#

#-----------------------------------------------------------------------------#
# Source the settings file
#-----------------------------------------------------------------------------#
source /usr/src/eFa/eFa-settings.inc
#-----------------------------------------------------------------------------#

sed -i "/^Socket / c\Socket inet:8891@localhost" /etc/opendkim.conf

4 changes: 2 additions & 2 deletions rpmbuild/SOURCES/eFa-base-4.0.0/postfix-config-4.0.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ postconf -e "smtpd_recipient_restrictions = permit_sasl_authenticated, permit_my
postconf -e "unverified_recipient_reject_reason = No user at this address"
postconf -e "unverified_recipient_reject_code = 550"
#postconf -e "masquerade_domains = \$mydomain"
postconf -e "smtpd_milters = inet:localhost:8891, inet:localhost:8893, inet:127.0.0.1:33333"
postconf -e "non_smtpd_milters = inet:localhost:8891, inet:localhost:8893"
postconf -e "smtpd_milters = inet:127.0.0.1:33333"
postconf -e "non_smtpd_milters ="
# 128 MB limit
postconf -e "message_size_limit = 133169152"
postconf -e "mailbox_size_limit = 133169152"
Expand Down
2 changes: 1 addition & 1 deletion rpmbuild/SPECS/MailWatch.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#-----------------------------------------------------------------------------#
Summary: MailWatch Web Front-End for MailScanner
Name: MailWatch
Version: 1.2.21
Version: 1.2.23
Epoch: 1
Release: 1.eFa%{?dist}
License: GNU GPL v2
Expand Down
10 changes: 7 additions & 3 deletions rpmbuild/SPECS/eFa4.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
Name: eFa
Summary: eFa Maintenance rpm
Version: 4.0.4
Release: 41.eFa%{?dist}
Release: 42.eFa%{?dist}
Epoch: 1
Group: Applications/System
URL: https://efa-project.org
Expand Down Expand Up @@ -215,7 +215,7 @@ Requires: unrar >= 6.1.7-1
# sqlgrey # eFa # Greylisting
Requires: spamassassin_eFa >= 3.4.6-1
# spamassassin # eFa # MailScanner
Requires: MailScanner >= 5.5.1-4
Requires: MailScanner >= 5.5.1-5
# MailScanner # eFa # MailScanner
Requires: clamav-unofficial-sigs >= 7.2.2-1
# clamav-unofficial-sigs # eFa # clamav
Expand All @@ -229,7 +229,7 @@ Requires: perl-libnet >= 3.11-1
# perl-libnet # eFa # Spamassassin
Requires: perl-Encoding-FixLatin >= 1.04-1
# perl-Encoding-FixLatin # eFa # MailWatch
Requires: MailWatch >= 1:1.2.21-1
Requires: MailWatch >= 1:1.2.23-1
# MailWatch # eFa # MailWatch Frontend
Requires: dcc >= 2.3.167-2
# dcc # eFa # Spamassassin, MailScanner
Expand Down Expand Up @@ -483,6 +483,7 @@ if [ "$1" = "1" ]; then
/bin/sh %{_usrsrc}/eFa/razor-config-4.0.0.sh
/bin/sh %{_usrsrc}/eFa/dcc-config-4.0.0.sh
/bin/sh %{_usrsrc}/eFa/unbound-config-4.0.0.sh
/bin/sh %{_usrsrc}/eFa/opendkim-config-4.0.0.sh
/bin/sh %{_usrsrc}/eFa/yum-cron-config-4.0.0.sh
/bin/sh %{_usrsrc}/eFa/service-config-4.0.0.sh
/bin/sh %{_usrsrc}/eFa/eFa-config-4.0.0.sh
Expand Down Expand Up @@ -568,6 +569,9 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644, root, root) %{_sysconfdir}/logrotate.d/eFa-logrotate

%changelog
* Sat Apr 06 2024 eFa Project <[email protected]> - 4.0.4-42
- Fix opendkim during install, update MailScanner and MailWatch

* Sat Mar 04 2023 eFa Project <[email protected]> - 4.0.4-40
- Add IUS Archive repo for centos7 hosts

Expand Down
2 changes: 1 addition & 1 deletion rpmbuild/SPECS/mailscanner.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define releasenum 4
%define releasenum 5
%undefine _disable_source_fetch

Name: MailScanner
Expand Down

0 comments on commit ed2f6c4

Please sign in to comment.