LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2005, 04:36 AM   #1
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Red face clever email filter


Hello!

I use exim4/fetchmail system. I am afraid of email flood. What will happen if one send me 100M of mail? It ALL will be fetched to my poor machine! Of course it is impossible for I have limited Internet traffic, which will be consumed entirely on fetching these damned mails Is there any way to avoid this possibility? Does anyone else use exim4/fetchmail and what is you opinion in this question?

Thank you.
 
Old 11-16-2005, 06:56 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
I also use fetchmail, and back when I was on dialup, I used to NOT download any mail bigger than 800kB.

I'm not @home right now, but I'll try and give more details when I am. Meanwhile, you'll find the information you need in the fetchmail manpage.

Yves.
 
Old 11-16-2005, 09:56 AM   #3
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Original Poster
Rep: Reputation: 68
Quote:
Originally posted by theYinYeti
I also use fetchmail, and back when I was on dialup, I used to NOT download any mail bigger than 800kB.
Please, it is not a solution. Any baddy can send 1 million messages by 800 kbytes each.

Quote:
Originally posted by theYinYeti
Meanwhile, you'll find the information you need in the fetchmail manpage. [/B]
Of course I have looked thru the manpage. It offers 'fetchlimit', well, but "An explicit --fetchlimit of 0 overrides any limits set in your run control file." But is it possible to use at least 'fetchlimit' and 'limit' at the same time (and how)? It would be great.

Thank you for help, I am waiting for further information.
 
Old 11-16-2005, 10:32 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
I'm still not home, but it seems you've found it all by yourself
But indeed, this fetchmail feature doesn't help if someone sends thousands of mails.

I've got an idea: why not have a cronjob checking the incoming mail spool directory size, and kill the fetchmail process if this size is bigger than some limit? If you want, you could even have this same cronjob restart the fetchmail process when the spool directory size is down to, say, 50% the limit.

Yves.
 
Old 11-16-2005, 10:44 AM   #5
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Original Poster
Rep: Reputation: 68
Thumbs up

Huh, good idea! But it would be better such script will be invoked by fetchmail itself whenever it retrieves anything or, what is IMHO equal, exim4, when it is asked for to recieve anything. Don't anybody know is this script possible? Where to place it?

But I feel it is impossible...
 
Old 11-17-2005, 02:48 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
It is impossible for fetchmail, but maybe not for exim4. I don't know this MTA because I use Postfix at home.

With Postfix, you can choose the delivery program. This is usually some variation around procmail, but the default delivery program could be called from inside a custom wrapper script that does some sanity checks after having performed the delivery itself.
The same is probably possible with exim4 too.

Yves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter Email with Certain Words nevarlen Linux - General 2 02-05-2005 04:08 PM
Spam filter Email Gateway zzero LinuxQuestions.org Member Success Stories 1 07-08-2004 07:17 AM
Email filter graveworm Linux - Software 1 07-07-2004 10:39 AM
web email filter johnpayback Linux - Software 2 08-20-2002 11:24 AM
Filter unwanted Email tomdlam Linux - Security 1 11-10-2001 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration