🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #5753

Re: SMTP mail size limit

#5753
From: Alan Connor
Date: Thu, 24 Jun 2004 20:09
47 lines
2677 bytes
On Thu, 24 Jun 2004 19:04:35 +0000 (UTC), Soruk <soruk@bitbucket.eridani.co.uk> wrote:
> 
> 
> Hi there.
> 
> I'm trying to write something that will enforce a message size limit, 
> intended for use over a modem connection.
> 
> The other catch: No ESMTP. It has to be workable with bog-standard SMTP.
> 
> Is there a way of doing this without having to wait for all 10Mb of a 
> message to squeeze its way down a 28k8 phone line?
> 
> I know just kicking the connection will make the sending server treat it 
> as a 4xx error and retry later. What I want to do is to somehow tell it to 
> get lost and don't bother retrying if the message hits a particular 
> size threshold.
> 

Fetchmail will dump mails over a certain size, but I am not clear whether
it downloads them first or not. Procmail downloads them and then dumps
them.

I have an nc (netcat) script (bash) that could be modified to pull down the
message numbers and sizes, and then delete any that were too large 
on the server (POP) and then either bring the rest of the mail down
or get out of the way.

You can also bring down the headers and scan them for anything else 
objectionable and have those mails deleted on the server too.

There is a tool called "mailfilter" that brings down the headers for
the same reasons, and I assume that it has the option to set a size
limit.

(I THINK I have that name right.)


AC



-- 
Pass-List -----> Block-List ----> Challenge-Response
The key to taking control of your mailbox.  Design Parameters:
http://tinyurl.com/2t5kp ||   http://tinyurl.com/3c3ag
Challenge-Response links -- http://tinyurl.com/yrfjb
Technical Details
Message-ID: <8yGCc.12533$w07.4779@newsread2.news.pas.earthlink.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!65807237!not-for-mail
References: <slrncdm9e3.dql.soruk@zeskia.int.eridani.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f4424,58f9c86c1fbf283a
X-Google-Thread: 10bb05,58f9c86c1fbf283a
X-Google-Attributes: gidf4424,gid10bb05,public
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!65807237!not-for-mail
Newsgroups: comp.mail.misc,demon.tech.unix,demon.ip.developers
From: Alan Connor <zzzzzz@xxx.yyy>
Subject: Re: SMTP mail size limit
References: <slrncdm9e3.dql.soruk@zeskia.int.eridani.co.uk>
Reply-To: xxxx@yyy.zzz
User-Agent: slrn/0.9.7.3 (Linux)
Lines: 47
Message-ID: <8yGCc.12533$w07.4779@newsread2.news.pas.earthlink.net>
Date: Thu, 24 Jun 2004 20:09:40 GMT
NNTP-Posting-Host: 63.187.202.17
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread2.news.pas.earthlink.net 1088107780 63.187.202.17 (Thu, 24 Jun 2004 13:09:40 PDT)
NNTP-Posting-Date: Thu, 24 Jun 2004 13:09:40 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net