Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-16-2005, 04:36 AM
|
#1
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
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.
|
|
|
11-16-2005, 06:56 AM
|
#2
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
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.
|
|
|
11-16-2005, 09:56 AM
|
#3
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Original Poster
Rep:
|
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.
|
|
|
11-16-2005, 10:32 AM
|
#4
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
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.
|
|
|
11-16-2005, 10:44 AM
|
#5
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Original Poster
Rep:
|
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...
|
|
|
11-17-2005, 02:48 AM
|
#6
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|