mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
added install for sqlite, fixed email notify script
Added sqlite to clamsmtpd installscript. Switched to using sendmail instead of mail command since there are different commands for different mail(bsd/heirloom) installs.
This commit is contained in:
parent
830dea309b
commit
46cfb3e4f6
@ -9,7 +9,7 @@ echo "Installing clamsmtpd (ClamAV e-mail virus scanning)..."
|
|||||||
|
|
||||||
|
|
||||||
# Install clamav-daemon & clamsmtpd with additional scanning formats
|
# Install clamav-daemon & clamsmtpd with additional scanning formats
|
||||||
apt_install clamav-daemon clamav clamsmtp unzip p7zip zip arj bzip2 cabextract cpio file gzip lhasa nomarch pax rar unrar unzip zip zoo
|
apt_install sqlite clamav-daemon clamav clamsmtp unzip p7zip zip arj bzip2 cabextract cpio file gzip lhasa nomarch pax rar unrar unzip zip zoo
|
||||||
|
|
||||||
|
|
||||||
# Config /etc/clamsmtpd.conf
|
# Config /etc/clamsmtpd.conf
|
||||||
@ -34,9 +34,9 @@ content_filter=scan:127.0.0.1:10027 #\
|
|||||||
|
|
||||||
# Configure postfix master.cf
|
# Configure postfix master.cf
|
||||||
tools/editconf.py /etc/postfix/master.cf -s -w \
|
tools/editconf.py /etc/postfix/master.cf -s -w \
|
||||||
"scan unix - - n - 16 smtp
|
"scan=unix - - n - 16 smtp
|
||||||
-o smtp_send_xforward_command=yes" \
|
-o smtp_send_xforward_command=yes" \
|
||||||
"127.0.0.1:10028 inet n - n - 16 smtpd
|
"127.0.0.1:10028=inet n - n - 16 smtpd
|
||||||
-o content_filter=
|
-o content_filter=
|
||||||
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
|
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
|
||||||
-o smtpd_helo_restrictions=
|
-o smtpd_helo_restrictions=
|
||||||
@ -66,4 +66,3 @@ restart_service postfix
|
|||||||
restart_service clamsmtp
|
restart_service clamsmtp
|
||||||
restart_service clamav-daemon
|
restart_service clamav-daemon
|
||||||
restart_service clamav-freshclam
|
restart_service clamav-freshclam
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@ for j in $dest_email; do
|
|||||||
if [[ "$i" == "$j" ]]
|
if [[ "$i" == "$j" ]]
|
||||||
then
|
then
|
||||||
{
|
{
|
||||||
|
echo "Subject: Email Virus Scan Notification"
|
||||||
|
echo ""
|
||||||
echo "Hello $i,"
|
echo "Hello $i,"
|
||||||
echo ""
|
echo ""
|
||||||
echo "This is the email system of $PRIMARY_HOSTNAME."
|
echo "This is the email system of $PRIMARY_HOSTNAME."
|
||||||
@ -34,7 +36,7 @@ echo ""
|
|||||||
echo "Regards,"
|
echo "Regards,"
|
||||||
echo "The email server at $PRIMARY_HOSTNAME"
|
echo "The email server at $PRIMARY_HOSTNAME"
|
||||||
#sending email to recipient that is hosted on this system
|
#sending email to recipient that is hosted on this system
|
||||||
} | mail -a "From: postmaster@$PRIMARY_HOSTNAME" -s "Email Virus Scan Notificaton" "$i"
|
} | sendmail -f "postmaster@$PRIMARY_HOSTNAME" "$i"
|
||||||
#continue with next recipient
|
#continue with next recipient
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@ -42,4 +44,3 @@ fi
|
|||||||
done
|
done
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user