Block Spam Email Based on Body Text

Taking care of your Linux box.
Post Reply
shakirz1
Battalion Quarter Master Havaldaar
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Location: Karachi
Contact:

Block Spam Email Based on Body Text

Post by shakirz1 »

I have Red Hat Linux 7.3 with sendmail 8.11.

I want to block all spam email based on body text like if any text in body of email contains "Banded CD" text then sendmail auto reject that mail.
jargon
Lieutenant Colonel
Posts: 691
Joined: Mon Oct 13, 2003 9:40 am

Post by jargon »

I think you want to look into SpamAssassin...
http://spamassassin.org/index.html
jargon
shakirz1
Battalion Quarter Master Havaldaar
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Location: Karachi
Contact:

Block Spam Email Based on Body Text

Post by shakirz1 »

to install SpamAssassin and configure it, I think it is big job.

Is it possible that I create my own rule in sendmail.cf ?

Anybody can help me to create this sort of rule in sendmail.cf ?
jargon
Lieutenant Colonel
Posts: 691
Joined: Mon Oct 13, 2003 9:40 am

Post by jargon »

Look over here for sendmail rules...
http://www.sendmail.org/m4/anti_spam.html
jargon
shakirz1
Battalion Quarter Master Havaldaar
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Location: Karachi
Contact:

Block Spam Email Based on Body Text

Post by shakirz1 »

there are a lot of anti-spam rule like SMTP relay, Selected Relay, Valid Hostname and so on, but not on body text.
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: Block Spam Email Based on Body Text

Post by lambda »

shakirz1 wrote:to install SpamAssassin and configure it, I think it is big job.
i'll only charge you rs 600/hr.

Is it possible that I create my own rule in sendmail.cf ?
i think sendmail's .cf stuff only checks headers. you want a milter. i can write a milter, too. same rate.
mahin_pk
Site Admin
Posts: 204
Joined: Sat Oct 25, 2003 10:43 am

Re: Block Spam Email Based on Body Text

Post by mahin_pk »

I think it is about time we start a forum for members to solicit paid work. Are there any making any money doing this or this is first swallow :)
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: Block Spam Email Based on Body Text

Post by lambda »

i am all for a site (or even a forum in lp) for job contracts, even if i don't offer to work on stuff.

if lp doesn't do it, i'm sure my workplace will start up something similar. or heck, even if lp does it...
jargon
Lieutenant Colonel
Posts: 691
Joined: Mon Oct 13, 2003 9:40 am

Post by jargon »

Yeah, It should read "...Wire the money first, email your ip address and root
password and wait..."

shakirz1: I don't think its part of the MTA (Sendmail) to bother with body text (correct me someone if i'm wrong), thats something you would have to set in your mail client. Like Mozilla's mail client, and set up filters. You might want to check out qmail, it does the same as Sendmail, that is that it serves as a MTA, but its modern and it might have what you are looking for.
jargon
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

jargon wrote:Yeah, It should read "...Wire the money first, email your ip address and root
password and wait..."
i'm ok with being paid later. if they don't pay up, there goes their rep.
shakirz1: I don't think its part of the MTA (Sendmail) to bother with body text (correct me someone if i'm wrong), thats something you would have to set in your mail client. Like Mozilla's mail client, and set up filters. You might want to check out qmail, it does the same as Sendmail, that is that it serves as a MTA, but its modern and it might have what you are looking for.
sendmail looks at the body text for 8bit mime to qp translation, and some other mime foo. qmail doesn't do that.

really, switching to qmail for this body spam problem is overkill. milter is the way to go; it drops the message during the smtp conversation.
kernel-trap
Havaldaar
Posts: 105
Joined: Thu Dec 25, 2003 2:31 pm

Post by kernel-trap »

Use www.mimedefang.org

it have all tools one need
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear shakirz1,
Salam,

Check out http://lena.franken.de/linux/mail_sendmail_etc.html :)

Best Regards.
Farrukh Ahmed
Post Reply