1

Topic: Quarantined shows allways 0

hello,

why the "Quarantined" category shows allways 0 emails and the same does the virus ... ?
I am asking this because I see in the mail log that spam emails are blocked ....

Is is possible to see which emails are blocked ? I mean watch them trough the iRedAdmin ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Quarantined shows allways 0

Did you config Amavisd to quarantine SPAM and VIRUS into MySQL? Here's tutorial:
http://www.iredmail.org/wiki/index.php? … dAdmin-Pro

3

Re: Quarantined shows allways 0

thank You for quick response Zhang !!

you`re right I have not enabled it will go ahead an do it now... I saw You will implement the option so we can let users control their
Quarantined emails ... it`s nice ! But for now I would like to see those emails..

I assume they fill up the database at the time, is it enough just "delete" them after some time ?

Thank You again !!

4

Re: Quarantined shows allways 0

in my case the first line in the Amavisd config file looks like this:

# $final_spam_destiny       = D_BOUNCE;

which means I have to UNCOMMENT it first remove the # and than change the D_BOUNCE to D_DISCARD ??

5

Re: Quarantined shows allways 0

OviVan wrote:

I assume they fill up the database at the time, is it enough just "delete" them after some time ?

Quarantined mails will be deleted automatically, default is 30 days.

OviVan wrote:

# $final_spam_destiny       = D_BOUNCE;

There's another '$final_spam_destiny' setting in amavisd config file, search it again please.

6

Re: Quarantined shows allways 0

I tryed, I find only one line as I posted...

# $final_virus_destiny      = D_DISCARD;
# $final_banned_destiny     = D_BOUNCE;
# $final_spam_destiny       = D_BOUNCE; <---------- I find only this one and there is no other lines
# $final_bad_header_destiny = D_PASS;
# $bad_header_quarantine_method = undef;

7

Re: Quarantined shows allways 0

from : nano /etc/amavisd.conf in CentOS 5.6

8

Re: Quarantined shows allways 0

Try to search 'final_spam_destiny' in amavisd.conf.
If it doesn't exist, then uncomment exist line and change to 'D_DISCARD'.

9

Re: Quarantined shows allways 0

now I found it:

$final_spam_destiny  = D_PASS;
change it to:
$final_spam_destiny  = D_DISCARD;

Thank You very much again for helping !!

10

Re: Quarantined shows allways 0

everything changed now, will follow it from now....

11

Re: Quarantined shows allways 0

the configuration in the : /var/www/iredadmin/settings.ini
these lines was configured as default I have not changed it and I assume they are ok ?

logging_into_sql = True

host = localhost
port = 3306
db = amavisd
user = amavisd
passwd = [password]

# #### Quarantining ####
# Release quarantined SPAM/Virus mails: True, False.
# iRedAdmin-Pro will connect to @quarantine_server to release quarantined mails.
# How to enable quarantining in Amavisd-new:
# http://www.iredmail.org/wiki/index.php? … g.Messages
quarantine = True

# Amavisd server address.
server = 127.0.0.1

# Port of 'AM.PDP-INET'. Default is 9998.
quarantine_port = 9998

12

Re: Quarantined shows allways 0

It's OK.

Do not paste password and other sensitive information here.

13

Re: Quarantined shows allways 0

I know, this is a fake one wink not orginal pass....
Thank You

14

Re: Quarantined shows allways 0

it should count on all blocked emails or ? because I see it`s still "0" in the iRedAdmin Pro...
does it take some time to collect them and dump on to mysql db or ?

15

Re: Quarantined shows allways 0

If Amavisd detects a spam, it will quarantine spam into MySQL database, and you can see it in iRedAdmin-Pro immediately.

16

Re: Quarantined shows allways 0

ok, I see in the maillog that spam emails are rejected, but they don`t appear in the iRedAdmin pro yet...

17

Re: Quarantined shows allways 0

Do you have these settings in amavisd.conf?

$spam_quarantine_to = 'spam-quarantine';
$spam_quarantine_method = 'sql:';

$virus_quarantine_to = 'virus-quarantine';
$virus_quarantine_method = 'sql:';

Please follow the tutorial strictly:
http://www.iredmail.org/wiki/index.php? … g.Messages

18

Re: Quarantined shows allways 0

I did... all these lines are uncomented .... removed the "#" .....
just checked again.....

19

Re: Quarantined shows allways 0

and of course this line is changed as You can see below I changed it to D_DISCARD:

$final_spam_destiny       = D_DISCARD;

20

Re: Quarantined shows allways 0

all services are restarted too... including amavisd

21

Re: Quarantined shows allways 0

Do you have MySQL integrated in Amavisd? Please follow this section:
http://www.iredmail.org/wiki/index.php? … in_Amavisd

Then you can follow section "Testing" to test your settings:
http://www.iredmail.org/wiki/index.php? … es#Testing

22

Re: Quarantined shows allways 0

hmm being little confused now, Amavisd should be default integrated in the MySql ??
I am little afraid to mess up the thing in the production server

23

Re: Quarantined shows allways 0

any way that I can provide You the server access ?

24

Re: Quarantined shows allways 0

I just checked, everything described on this link was configured as default....

http://www.iredmail.org/wiki/index.php? … in_Amavisd

25

Re: Quarantined shows allways 0

You can test it this way:

*) SpamAssassin ships a sample SPAM email, on RHEL/CentOS, it's /usr/share/doc/spamassassin-3.2.5/sample-spam.txt.
*) Send an email to your mail user, copy whole content of file sample-spam.txt as mail body, and this mail will be detected as SPAM and quarantined into MySQL database.
*) Wait some seconds, then login to iRedAdmin-Pro, you can see number of quarantined mails is not zero anymore in Dashboard page.