🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #5755

Re: SMTP mail size limit

#5755
From: Alan Connor
Date: Thu, 24 Jun 2004 21:23
80 lines
3543 bytes
On Thu, 24 Jun 2004 20:09:40 GMT, Alan Connor <zzzzzz@xxx.yyy> wrote:
> 
> 
> 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.)
> 

I checked to see whether fetchmail downloads oversized  mail before deleting
it, and it doesn't. Here are the strings from my packet logger for fetchmail
checking for new mail in a POP mailbox with only one, oversized mail in it:
The size limit set in fetchmail is 20K.

pop     earthlink
pop     earthlink
itchy
scratchy
+OK NGPopper vEL_7_8 at earthlink.net ready <14247.1078111293@scaup.mail.paz.ear
thlink.net>
8CAPA
user
pass
uidl
KUSER me@earthlink.net
^PASS XXXXXXXXX
+OK me has 1 messages (36416 octets).
pSTAT
+OK 1 36416
LIST
<'+OK
1 36416
DELE 1
<7+OK
QUIT
<H+OK


(no, I have no idea what "itchy\nscratchy" means :-)

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: <LDHCc.12607$w07.1710@newsread2.news.pas.earthlink.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!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> <8yGCc.12533$w07.4779@newsread2.news.pas.earthlink.net>

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!elnk-pas-nf1!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> <8yGCc.12533$w07.4779@newsread2.news.pas.earthlink.net>
Reply-To: xxxx@yyy.zzz
User-Agent: slrn/0.9.7.3 (Linux)
Lines: 80
Message-ID: <LDHCc.12607$w07.1710@newsread2.news.pas.earthlink.net>
Date: Thu, 24 Jun 2004 21:23:55 GMT
NNTP-Posting-Host: 63.187.200.113
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread2.news.pas.earthlink.net 1088112235 63.187.200.113 (Thu, 24 Jun 2004 14:23:55 PDT)
NNTP-Posting-Date: Thu, 24 Jun 2004 14:23:55 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net