[Rspamd-Users] Rspamd does not reject virus mails
Ralf Kania
ralf at lx-work.de
Fri Apr 11 08:47:25 UTC 2025
Hello Benny,
I use this script here to copy holded mails to qurantine folder, and
afterwards it executes
postsuper -d queue-id
#### script ###
#!/bin/bash
QUARANTINEDIR="/var/quarantine"
# 2022-11-03 #
DATE="`date +%F`"
cd $QUARANTINEDIR
# Anzahl Mails in der Hold Queue #
COUNT_MAILS="`ls -l /var/spool/postfix/hold/|wc -l`"
# wenn Folder von heute schon existiert, wechsel rein #
if [ -d "$DATE" ]
then
cd $DATE
cp /var/spool/postfix/hold/* .
# wenn es den Folder noch nicht gibt, erstell ihn und wechsel rein #
else
mkdir $DATE
cd $DATE
cp /var/spool/postfix/hold/* .
fi
/usr/sbin/postsuper -d ALL hold
### LOG ###
echo -e "DATUM: $DATE\nAnzahl Mails: $COUNT_MAILS\n" >>
/scripts/quarantine-to-folder/moved.log
############
Regards
Ralf
-----Ursprüngliche Nachricht-----
Von: Users <users-bounces at lists.rspamd.com> Im Auftrag von Benny Pedersen
via Users
Gesendet: Donnerstag, 10. April 2025 17:02
An: users at lists.rspamd.com
Cc: Benny Pedersen <me at junc.eu>
Betreff: Re: [Rspamd-Users] Rspamd does not reject virus mails
Ralf Kania via Users skrev den 2025-04-10 16:09:
> Hello Danjel,
>
> when you set the option
> quarantine_on_reject = true;
> Than the spam mails will not rejected. They will be moved to the
> postfix hold queue.
> Afterwards you can move it via a script to /var/quarantine as example
> to check false positives.
dont touch internal data in postfix quede
use postcat queue-id and possible postsuper -d queue-id
just heads up there
/var/quarantine is imho not internal data on postfix, only saying be
carefull
--
Users mailing list
Users at lists.rspamd.com
https://lists.rspamd.com/mailman/listinfo/users
More information about the Users
mailing list