Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running a squid proxy server and one of my clients used the ip for spamming. My question is... how do I set squid to block emailing?

share|improve this question
    
Are you sure squid is implicated in the spamming ? –  Dominik Feb 25 '10 at 1:33
    
Suggest you post your squid.conf here, or if it is large a link to it on a pastebin style site. Also have you checked whether you have a misconfigured MTA on the squid server? –  jamespo Apr 3 '11 at 20:03

2 Answers 2

Squid doesn't email. Squid proxies HTTP/FTP traffic. If your squid acl (see @Andy Smith) permits IP addresses that aren't under your control to use your proxy, you need to lock that down, an open proxy is commonly used by spammers to access webmail sites to send spam.

Take a look at: http://www.visolve.com/squid/squid24s1/access_controls.php

If you are trying to prevent your (legitimate) clients from accessing web mail sites, you can add something like

acl webmail dstdomain hotmail.com mail.yahoo.com gmail.com mail.google.com live.com  #(add domains you want to block)   
http_access deny webmail      
http_access allow all
share|improve this answer

Squid shouldn't by default allow proxying of everything - the default configuration is rather tied down.

What are your ACLs like? The output of grep "^acl" /etc/squid/squid.conf (with anything sensitive taken out, obviously) would be useful.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.