We have dedicated server with Godaddy running Postfix as a mail sever and SpamAssassin as a mail filter. There are some contact mails specified on our websites, which were getting 1000’s of spam mails daily. SpamAssassin is active on our server but it was just adding extra [SPAM] in the subject of the emails. I was looking for how to discard these mails, instead of just modifying the subject of the mails.
Here is the solution which I found.
1. You should have SpamAssassin active on your server, which will analyze the mails coming in and mark them as SPAM. If SpamAssassin is not active, then you can activate on Godaddy dedicated server using the Simple Control Panel.
2. Next, edit the /etc/postfix/header_checks file, which uses a regular expression to check the header of the email message and then apply a rule to the message accordingly.
3. add the following lines to the bottom of the header_checks file:
/^X-Spam-Flag: YES/ DISCARD SpamAssassin Confirmed Spam Content
/^(Subject: \[SPAM\])(.+)$/ DISCARD Spam Content
/^X-Spam-Level: \*{15,}.*/ DISCARD
You can checkout more header_checks rules here : http://www.techiepark.com/wp-content/uploads/2009/09/header_checks.txt
4. In /etc/postfix/main.cf, add header_checks = regexp:/etc/postfix/header_checks
5. Now reload postfix configuration using the following command
postfix reload or service postfix restart
What this does is, it will check for the rules specified in the header_checks file and effectively discard the spam emails from forwarding into your users email accounts.
More Information :
http://www.akadia.com/services/postfix_uce.html
Share or Bookmark This Post With :
Compression is a simple and effective way to speed up your site. Modern browsers supports gzip compressed content and are capable of uncompressing gzip data into plain text.
The gzip module configuration depends on your Apache Server version:
Apache 1.3 uses mod_gzip while Apache 2.x uses mod_deflate.
mod_gzip configuration for Apache 1.3.x:
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
Share or Bookmark This Post With :
What will seem familiar is the need to access information very quickly – often with just a few minutes to spare. The problem we face is that the notebook PCs on which that information is stored may take that much time or more just to boot up and launch the applications you need to get to the information.
HP QuickLook3 and QuickWeb are innovative software solutions that sit outside your computer’s operating system, enabling you to access the web without having to boot into Windows. With a single touch of a button, you can enjoy a fast connection to your Outlook Contacts/eMail/Tasks or the Internet in under 20 seconds from a power-off state. (HP QuickLook3 and QuickWeb are included with select HP Business notebook PCs)
Share or Bookmark This Post With :
- mtop – MySQL terminal based query monitor
- Kohana – Swift, Secure, and Small PHP 5 Fram...
- FormMail – free form processing PHP script
- Xataface – The fastest way to build a front-...
- dotProject – the Open Source Project Managem...
- The jQuery Form Plugin
- DocVerse has officially been acquired by Google
- HDGraph – a free tool for Windows to draw mu...
- RandomClass jQuery Plugin
- Paparazzi – a small utility for Mac OS X to ...
- Send emails using PHPMailer an...
- Firefox Addons Essential for S...
- Free SEO Tools From SEOMoz.org...
- URL Rewriting for PHP Web Appl...
- Multiple Instances of Tomcat w...
- Apache 2.x + Tomcat 4.x + Load...
- Pagination in JSP/Java
- PHP – Mysql Open Source ...
- java.lang.OutOfMemoryError: Ja...
- HOW TO Subversion+Apache on Fe...




