You might find it much easier, although still a lot of work, to install a relaying mail server on the firewall that uses SpamAssassin and Razor called from the MIMEDefang milter in sendmail. I've also seen a Webpage somewhere on doing this using Qmail and SpamAssassin (you might google for it). This is all free software - the only investment is your time. Asking iptables to do it is putting the load in the wrong place, and failing to take advantage of the work already done in using mail daemons for this task. Whit On Wed, Aug 06, 2003 at 03:07:31PM +0530, Deshwal Chand wrote: > Hi, > > I am running IPTABLES on Redhat 7.2 box. We are running a mail server behind > this firewall. We receive lot of spam e-mails. Instead of investing into the > anti-spam s/w, I want to configure the IPTABLES to read the contents on the > packets and drop them based upon the filter defined. > > Any help ...... > > > Regards, > > Chand