Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[AMaViS-user] $spam_quarantine_to = "user@mydomain" loops (?)

192 views
Skip to first unread message

Norberto Bensa

unread,
Aug 20, 2007, 1:37:53 AM8/20/07
to
This message is in MIME format.

--=_6r7f3wbyhdc
Content-Type: text/plain;
charset=ISO-8859-1;
DelSp="Yes";
format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello list,

I'm trying to implement "quarantine to mailbox" where:

$mydomain =3D "bensa.ar";
(bensa.ar is my "local" or "internal" domain and is not accessible =20
from internet)

$spam_quarantine_to =3D "spam\@$mydomain";

I've disabled spam/virus/etc check for the sp...@bensa.ar account:

@bypass_spam_checks_maps =3D ( [ "sp...@bensa.ar" ] );
@bypass_virus_checks_maps =3D ( [ "sp...@bensa.ar" ] );
@bypass_header_checks_maps =3D ( [ "sp...@bensa.ar" ] );
@bypass_banned_checks_maps =3D ( [ "sp...@bensa.ar" ] );

Postfix queue:

093887A649F 2445 Mon Aug 20 01:43:59 fbrand...@fraise.be
(host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, =20
id=3D18603-03, quar+notif FAILED: temporarily unable to quarantine: 451 =20
4.5.0 From MTA([[127.0.0.1}]:10026) during fwd-connect (errno=3DInvalid =20
argument): id=3D18603-03 at /usr/sbin/amavisd line 10285, <GEN19> line =20
292. (in reply to end of DATA command))
nbe...@bensa.ar


Is this the correct way to do what I want (basically all spam, viruses =20
to spam@mydomain)?

BTW, this is amavisd-new-2.5.3-r2 running on a Gentoo box.

I've attached the gzipped log in case it is needed.


Many thanks in advance,
Norberto


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


--=_6r7f3wbyhdc
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
--=_6r7f3wbyhdc
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
AMaViS-user mailing list
AMaVi...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
--=_6r7f3wbyhdc--


Gary V

unread,
Aug 20, 2007, 12:52:19 PM8/20/07
to
On 8/19/07, Norberto Bensa <nbe...@gmail.com> wrote:
> Hello list,
>
> I'm trying to implement "quarantine to mailbox" where:
>
> $mydomain = "bensa.ar";
Don't think it makes a difference here, but use single quotes here.

> (bensa.ar is my "local" or "internal" domain and is not accessible

> from internet)
>
> $spam_quarantine_to = "spam\@$mydomain";

Try the explicit method:
$spam_quarantine_to = 'sp...@bensa.ar';
(with single quotes when being literal)

What happens if you simply send an email to sp...@bensa.ar? If that is
broken, then the problem probably lies in your Postfix setup. Also try
it with amavisd-new disabled just to make sure it's a Postfix setup
problem.

>
> I've disabled spam/virus/etc check for the sp...@bensa.ar account:
>

> @bypass_spam_checks_maps = ( [ "sp...@bensa.ar" ] );
> @bypass_virus_checks_maps = ( [ "sp...@bensa.ar" ] );
> @bypass_header_checks_maps = ( [ "sp...@bensa.ar" ] );
> @bypass_banned_checks_maps = ( [ "sp...@bensa.ar" ] );
>

Should not need to do this. Mail destined for quarantine should not be
scanned again (at least not when using Postifx).

> Postfix queue:
>
> 093887A649F 2445 Mon Aug 20 01:43:59 fbrand...@fraise.be
> (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing,

> id=18603-03, quar+notif FAILED: temporarily unable to quarantine: 451
> 4.5.0 From MTA([[127.0.0.1}]:10026) during fwd-connect (errno=Invalid
> argument): id=18603-03 at /usr/sbin/amavisd line 10285, <GEN19> line


> 292. (in reply to end of DATA command))
> nbe...@bensa.ar
>
>
> Is this the correct way to do what I want (basically all spam, viruses

> to spam@mydomain)?

If you want viruses to go there too, you would have to set:
$virus_quarantine_to = 'sp...@bensa.ar';

>
> BTW, this is amavisd-new-2.5.3-r2 running on a Gentoo box.
>

AFAIK 2.5.3 has not been released

> I've attached the gzipped log in case it is needed.
>
>
> Many thanks in advance,
> Norberto
>

--
Gary V

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

Norberto Bensa

unread,
Aug 20, 2007, 1:25:22 PM8/20/07
to
Hi Gary,

Gary V <mr88t...@gmail.com> ha escrito:

>> $spam_quarantine_to = "spam\@$mydomain";
>
> Try the explicit method:
> $spam_quarantine_to = 'sp...@bensa.ar';
> (with single quotes when being literal)

Same problem.


>
> What happens if you simply send an email to sp...@bensa.ar?

I can send email to sp...@bensa.ar without problems. AFAIK, the mailbox
is working.


>> I've disabled spam/virus/etc check for the sp...@bensa.ar account:
>>
>> @bypass_spam_checks_maps = ( [ "sp...@bensa.ar" ] );

>> ...


>
> Should not need to do this. Mail destined for quarantine should not be
> scanned again (at least not when using Postifx).

Perhaps I need to re-check my postfix config again :-/


>> Is this the correct way to do what I want (basically all spam, viruses
>> to spam@mydomain)?
>
> If you want viruses to go there too, you would have to set:
> $virus_quarantine_to = 'sp...@bensa.ar';

I have:

$spam_quarantine_to =
$virus_quarantine_to =
$banned_quarantine_to =
$bad_header_quarantine_to = 'sp...@bensa.ar';

>> BTW, this is amavisd-new-2.5.3-r2 running on a Gentoo box.
>>
>
> AFAIK 2.5.3 has not been released

Heh, I'm sorry. It was late...
The installed version is 2.5.2. There was an 2.3.3-r2 available on
Gentoo repositories.


> Gary V


Many thanks Gary. I'll recheck everything again.

Oh BTW; Is there a way to see what options are passed to amavis?
Something like postfix's "postconf"?


Regards,
Norberto


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------------------------------------------------------------------

Gary V

unread,
Aug 20, 2007, 2:32:02 PM8/20/07
to
On 8/20/07, Norberto Bensa <nbe...@gmail.com> wrote:
> Hi Gary,
>
> Gary V <mr88t...@gmail.com> ha escrito:
>
> >> $spam_quarantine_to = "spam\@$mydomain";
> >
> > Try the explicit method:
> > $spam_quarantine_to = 'sp...@bensa.ar';
> > (with single quotes when being literal)
>
> Same problem.

Show the error and a few lines before it.

>
>
> >
> > What happens if you simply send an email to sp...@bensa.ar?
>
> I can send email to sp...@bensa.ar without problems. AFAIK, the mailbox
> is working.
>

Then Postfix should be OK. What have you set these to?

#$virus_quarantine_method = 'local:virus-%m'; # default
#$spam_quarantine_method = 'local:spam-%m.gz'; # default
#$banned_files_quarantine_method = 'local:banned-%m'; # default
#$bad_header_quarantine_method = 'local:badh-%m'; # default

Leave them at default.

>
> >> I've disabled spam/virus/etc check for the sp...@bensa.ar account:
> >>
> >> @bypass_spam_checks_maps = ( [ "sp...@bensa.ar" ] );
> >> ...
> >
> > Should not need to do this. Mail destined for quarantine should not be
> > scanned again (at least not when using Postifx).
>
> Perhaps I need to re-check my postfix config again :-/
>

Or not. If you can send mail to sp...@bensa.ar then Postfix should be OK.

>
> >> Is this the correct way to do what I want (basically all spam, viruses
> >> to spam@mydomain)?
> >
> > If you want viruses to go there too, you would have to set:
> > $virus_quarantine_to = 'sp...@bensa.ar';
>
> I have:
>
> $spam_quarantine_to =
> $virus_quarantine_to =
> $banned_quarantine_to =
> $bad_header_quarantine_to = 'sp...@bensa.ar';
>

Should work.

> >> BTW, this is amavisd-new-2.5.3-r2 running on a Gentoo box.
> >>
> >
> > AFAIK 2.5.3 has not been released
>
> Heh, I'm sorry. It was late...
> The installed version is 2.5.2. There was an 2.3.3-r2 available on
> Gentoo repositories.
>
>
> > Gary V
>
>
> Many thanks Gary. I'll recheck everything again.
>
> Oh BTW; Is there a way to see what options are passed to amavis?
> Something like postfix's "postconf"?

http://marc.info/?l=amavis-user&m=117757891604611

>
> Regards,
> Norberto
>

--
Gary V

0 new messages