Block Spam Email Based on Body Text

Taking care of your Linux box.
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

Postby shakirz1 » Thu Dec 11, 2003 9:27 am

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

Postby jargon » Thu Dec 11, 2003 10:41 am

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

Postby shakirz1 » Thu Dec 11, 2003 11:40 am

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

Postby jargon » Thu Dec 11, 2003 12:22 pm

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

Postby shakirz1 » Thu Dec 11, 2003 12:32 pm

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

Postby lambda » Thu Dec 11, 2003 3:36 pm


mahin_pk
Site Admin
Posts: 204
Joined: Sat Oct 25, 2003 10:43 am

Re: Block Spam Email Based on Body Text

Postby mahin_pk » Thu Dec 11, 2003 7:05 pm


lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: Block Spam Email Based on Body Text

Postby lambda » Thu Dec 11, 2003 7:19 pm

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

Postby jargon » Thu Dec 11, 2003 9:18 pm

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:

Postby lambda » Fri Dec 12, 2003 1:37 pm


kernel-trap
Havaldaar
Posts: 105
Joined: Thu Dec 25, 2003 2:31 pm

Postby kernel-trap » Thu Dec 25, 2003 3:01 pm

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:

Postby LinuxFreaK » Fri Dec 26, 2003 8:26 am

Dear shakirz1,
Salam,

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

Best Regards.
Farrukh Ahmed


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest