On 15 Sep 2000  21:34 Dan Horth wrote:
>Anyway - since we've started doing mail relaying for a client we've 
>noticed a few of these "message rejected because it is too big" 
>messages from sendmail...
>
>Sep 16 02:41:07 server sendmail[4577]: AAA04577: message size 
>(7376264) exceeds maximum (6000000)
>
>I was just wondering if someone could clarify as to whether sendmail 
>would have received 6000000 bytes of the message before realising it 
>was too big and rejecting it... or would it have rejected it before 
>any data was transferred?

When establishing and Extended SMTP (ESMTP) connection, the client machine
sends EHLO instead of HELO. In response, the server SMTP will send various
information like maximum message size. From RFC1870:

 The following example illustrates the use of size declaration with
   some permanent and temporary failures.

   S: <wait for connection on TCP port 25> C: <open connection to server> S:
220 sigurd.innosoft.com -- Server SMTP (PMDF V4.2-6 #1992)
   C: EHLO ymir.claremont.edu
   S: 250-sigurd.innosoft.com
   S: 250-EXPN
   S: 250-HELP
   S: 250 SIZE 1000000
   C: MAIL FROM:<[EMAIL PROTECTED]> SIZE=500000
   S: 250 Address Ok.
   C: RCPT TO:<[EMAIL PROTECTED]> S: 250 [EMAIL PROTECTED] OK; can accomodate
500000 byte message
   C: RCPT TO:<[EMAIL PROTECTED]> S: 552 Channel size limit exceeded:
[EMAIL PROTECTED]
   C: RCPT TO:<[EMAIL PROTECTED]> S: 452 Insufficient channel
storage: [EMAIL PROTECTED]
   C: DATA
   S: 354 Send message, ending in CRLF.CRLF.
    ...
   C: .
   S: 250 Some recipients OK
   C: QUIT
   S: 221 Goodbye


As you can see, the client knows at the beginning of the transaction whether
the mail will be too large for the server to accept. This value is set in
the "Options" section of sendmail.cf.

Tony
-- 
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AIM: TonyG05    ICQ: 91183266/TonyGreene   Jabber: TonyGreene
Linux. The choice of a GNU Generation. <http://www.linux.org/>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to