Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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:

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

acl webmail dstdomain  #(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


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