List Info

Thread: Deliver quarantined message




Deliver quarantined message
country flaguser name
Italy
2007-03-19 03:58:36
Hello,

I have a relay SMTP server system
Amavisd-new+Postfix+MySQL-based.

I have configured spamassassin to quarantine spam message.

Now I would like to know a simple way to release a
quarantined message
after, for example, I have verified that the message is a
false
positive..

Could someone explain how it is possible to setup amavis so
I can do
this?

TIA,

rocsca

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Deliver quarantined message
country flaguser name
United States
2007-03-19 09:13:37
Rocco wrote:


> Hello,

> I have a relay SMTP server system
Amavisd-new+Postfix+MySQL-based.

> I have configured spamassassin to quarantine spam
message.

> Now I would like to know a simple way to release a
quarantined message
> after, for example, I have verified that the message is
a false
> positive..

> Could someone explain how it is possible to setup
amavis so I can do
> this?

> TIA,
> rocsca

Check amavisd.conf and see if you have a $unix_socketname
configured.
Make a note of the current setting if it exists. If it does
not, then
configure it.

There is a program called amavisd-release. It comes with the
source
code. You may have to edit the $socketname in
amavisd-release to
match the $unix_socketname in amavisd.conf. If you need to
pick
a spot to place the socket, the amavis home directory should
work.
Place amavisd-release in /usr/sbin then:

In amavisd.conf add these (adjust path as required): 

Code: 
$unix_socketname = "/var/amavis/amavisd.sock"; 

$interface_policy{'SOCK'} = 'AM.PDP-SOCK'; 
$policy_bank{'AM.PDP-SOCK'} = { 
  protocol => 'AM.PDP', 
  auth_required_release => 0, # don't require secret-id
for release 
}; 

The $unix_socketname and $socketname should match. 

reload amavisd-new and:

amavisd-release spam-BF9E0-Z+FU2R.gz

Gary V



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Deliver quarantined message
country flaguser name
Israel
2007-03-21 06:33:06
> Hello,
> 
> I have a relay SMTP server system
Amavisd-new+Postfix+MySQL-based.
> 
> I have configured spamassassin to quarantine spam
message.
> 
> Now I would like to know a simple way to release a
quarantined message
> after, for example, I have verified that the message is
a false
> positive..
> 
> Could someone explain how it is possible to setup
amavis so I can do
> this?
> 
> TIA,
> 
> rocsca
> 

Hi,

You could use my script for resending ham and optionally
whitelisting
(whitelist_from_rcvd in local.cf) the senders of these ham
messages.

I suggest you run it in one of the following modes (from the
directory
antispam.php file is in or using full path to the script):
Actually I'm using only 3-rd option, the first two used in
the test period.

1) php antispam.php /var/spool/imap/user/spamcop/ham
/etc/mail/spamassassin/local.cf
/home/someuser/spam_scripts/resending/forbid.txt

2) php antispam.php /var/spool/imap/user/spamcop/ham
/etc/mail/spamassassin/local.cf

3) php antispam.php /var/spool/imap/user/spamcop/ham

Explanations (more explanations are in the script itself):
a) local.cf - at the end of all configurations you should
have:
####WHITELIST####
whitelist_from_rcvd name1ogroups.com yahoo.com
whitelist_from_rcvd name2ogroups.com yahoo.com
whitelist_from_rcvd name3ogroups.com yahoo.com

Never add anything below.

b) forbid.txt - file with the list of e-mails I won't add
to
whitelist_from_rcvd directive in any way even if it is the
sender of the ham
message

c) /var/spool/imap/user/spamcop/ham - this is where you
should have your
quarantined FP ham.

The script itself is attached.



Regards,
Leon Kolchinsky






------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )