block spam from my network to outside

Massimo Dalla Nora (Real Comm srl) massimo.dallanora at realcomm.it
Tue May 26 15:33:26 CEST 2015


Hi,
my mail server based on CentOS 6 and uses postfix-2.6.6-6, amavisd-new 
2.8.0 and spamassassin-3.3.1.
The system works fine and filter correctly spam mails.
If it detects some spam mails, those mails are put in a special folder 
"spam" by maildrop packet.

Now i need modify the behavior of mail server to block spam from my 
network to outside.

E.g.: If one of my users send a spam mail to outside (internet), I want 
to block it.

This block should be work only for my network, not for inbound spam.

E.g.: If one user from gmail send spam mail to a user of my mail server, 
I want the system continue to work like now and put this email in a 
special folder "spam".

I tried several configurations but no one works

E.g.:

$inet_socket_port = [10024,10026]; # listen on multiple TCP ports

$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
originating => 1, # is true in MYNETS by default, but let's make it explicit
sa_kill_level_deflt => [2],
};

Does anyone could give me some suggestion or some configuration example?

Thanks
-- 
logo

Massimo Dalla Nora
Real Comm srl
Via dei Serviti, 12 - 33080 Porcia (PN)
Tel +39 0434 1831559 - Fax +39 0434 1831564
Mob +39 338 5282917
Web http://www.realcomm.it

Questo messaggio è ad uso esclusivo di colui al quale è indirizzato, e 
potrebbe contenere informazioni riservate.
Se aveste ricevuto questo messaggio per errore, ci scusiamo per 
l'accaduto e Vi invitiamo cortesemente a darcene notizia e a distruggere 
il messaggio ricevuto.
Vi ricordiamo che la diffusione, l'utilizzo e/o la conservazione dei 
dati ricevuti per errore costituisce violazione alle disposizioni del 
Decreto Legislativo n. 196/2003 (Codice in materia di protezione dei 
dati personali).


-- 
e-mail filtrata da virus e contenuti dannosi con Mail Wash.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20150526/46f210e5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logoEmail.png
Type: image/png
Size: 35272 bytes
Desc: not available
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20150526/46f210e5/attachment.png>


More information about the amavis-users mailing list