Block Spam Email Based on Body Text

Taking care of your Linux box.

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.
shakirz1
Battalion Quarter Master Havaldaar
 
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Website: http://www.fattanis.cjb.net
WLM: shakirz1@hotmail.com
Yahoo Messenger: shakirz1@yahoo.com
Location: Karachi

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

I think you want to look into SpamAssassin...
http://spamassassin.org/index.html
jargon
jargon
Lieutenant Colonel
 
Posts: 691
Joined: Mon Oct 13, 2003 9:40 am

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 ?
shakirz1
Battalion Quarter Master Havaldaar
 
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Website: http://www.fattanis.cjb.net
WLM: shakirz1@hotmail.com
Yahoo Messenger: shakirz1@yahoo.com
Location: Karachi

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

Look over here for sendmail rules...
http://www.sendmail.org/m4/anti_spam.html
jargon
jargon
Lieutenant Colonel
 
Posts: 691
Joined: Mon Oct 13, 2003 9:40 am

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.
shakirz1
Battalion Quarter Master Havaldaar
 
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Website: http://www.fattanis.cjb.net
WLM: shakirz1@hotmail.com
Yahoo Messenger: shakirz1@yahoo.com
Location: Karachi

Re: Block Spam Email Based on Body Text

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

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.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Re: Block Spam Email Based on Body Text

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

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 :)
mahin_pk
Site Admin
 
Posts: 204
Joined: Sat Oct 25, 2003 10:43 am

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...
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

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
jargon
Lieutenant Colonel
 
Posts: 691
Joined: Mon Oct 13, 2003 9:40 am

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

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.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

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

Use www.mimedefang.org

it have all tools one need
kernel-trap
Havaldaar
 
Posts: 105
Joined: Thu Dec 25, 2003 2:31 pm

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Administration

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron