Re: Problem with Yahoo SMTP server SIZE attribute.
Ned Freed <[email protected]>
| Newsgroups | gmane.ietf.imapext |
|---|---|
| Message-ID | <[email protected]> |
> I am facing a problem with Yahoo account. > Yahoo SMTP server broadcast the SIZE as "SIZE 41697280". Which means that Yahoo won't accept any message larger than that. It does not mean that they will accept any message that's smaller. There can be per-account limits, per-domain limits, limits due to forwarding somewhere else, etc. etc. etc. > So when I am trying to send a mail with ~28.8 MB of attachment to Gmail/AOL, > sending of the mail succeeds but I am getting a MAILER-DAEMON saying : > *Remote host said:* > *552-5.2.3 Your message exceeded Google's message size limits.* Huh? What does sending to Google have to do with sending to Yahoo? > What should I do, as a mail client. Should i not honor the SIZE attribute > and use 25 MB as the upper limit? The SIZE EHLO response is an optimization: It tells you in advance that if you have a message larger than the limit, you might as well not bother trying to send it. It does not tell you what the actual limit is on your transaction. And it most certainly does not tell you squat about what the limit is going to be somewhere else. You seem to be looking for some secret sauce here that does not and cannot exist: A limit that will magically prevent problems trying to send large messages. Your responsibility as a mail client developer is first to look at the SIZE EHLO response and not bother trying to send the message. Additionally, if the server supports the extension you should pass the message size as a SIZE parameter on MAIL FROM so that the server can apply destination-specific size limits and return appropriate responses. If, in addition to doing this, you also want to impose a local limit, by all means do that, but unless it's absurdly low it's not going to prevent messages being bounced due to size limitations. Ned _______________________________________________ imapext mailing list [email protected] https://www.ietf.org/mailman/listinfo/imapext