Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exceeding Max Email Address Sizes

Tags:

email

RFC Standard says the max email size is 320 (actually 256 according to http://www.dominicsayers.com/isemail/). Is there any conceivable scenario where email addresses could end up being bigger than this?

like image 680
Daniel Avatar asked Jun 24 '09 18:06

Daniel


People also ask

How do I increase email size limit?

On the mailbox properties page, click Mailbox Features. Under Message Size Restrictions, click View details to view and change the following message size limits: Sent messages: To set a maximum size for messages sent by this user, select the Maximum message size (KB) check box and type a value in the box.

What is the largest size you can email?

Gmail: 25 MB. However, the Gmail attachment size limit can be deceptive because Google encodes your email into a particular format before sending it. This process can double the size of your attachment; thus, the actual Gmail attachment size limit is closer to 12.5 MB. Outlook: 20 MB (on all versions).

What happens if an email is too big?

Cannot Send Mail The message was rejected by the server because it is too large. You might see an alert saying your file was too large. Attachment size limits stop you from sending large email messages to people. Typically, email providers limit attachments to 20MB, which is plenty of space for most documents.


2 Answers

Read this: http://www.eph.co.uk/resources/email-address-length-faq/ The upshot of it is that you should use 254 characters to store email addresses, because that is the maximum allowed in an SMTP transaction. This is specified in RFC5321 (your article says so, and is actually quoted in mine), which is authoritative.

like image 113
psanf Avatar answered Oct 05 '22 19:10

psanf


To be honest, even if someone had a valid email address beyond 256/320 chars it would be a major pain to use.

Anyone using an email address that is even half as big as that (128 chars) needs to trim back!

although on the plus side, they likely get no spam!

For example both of these would be unusable:

//long domain
joe.shmoe@someveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylogdomain.com

//long username
someveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylonguser@aregularlengthdomain.com
like image 22
scunliffe Avatar answered Oct 05 '22 18:10

scunliffe