Email bouncing

9 posts / 0 new
Last post
#1 Thu, 11/04/2010 - 10:48
zer0

Email bouncing

Hi, I'm running into a little confusion. Before i was using my ISP's SMTP server which only allowed 10MB of attachment, since I have static IP, i'm using direct delivery, so now I am able to send large files (max size of a message: 40MB). However, recently I sent an email to someone with 20mb attachment and it came back with the following message in the details.txt

Reporting-MTA: dns; mydomain.ca
X-Postfix-Queue-ID: B453C7E184
X-Postfix-Sender: rfc822; user@mydomain.ca
Arrival-Date: Thu,  4 Nov 2010 08:25:46 -0500 (CDT)

Final-Recipient: rfc822; user1@wellspringpharm.ca
Original-Recipient: rfc822; user1@wellspringpharm.ca
Action: failed
Status: 5.3.4
Remote-MTA: dns; mail3.wellspringpharm.ca
Diagnostic-Code: smtp; 552 5.3.4 message size limit exceeded

If i send the same email to my hotmail account, it will go through. is this message originating at my end or the recipient's end?

Thank you

Thu, 11/04/2010 - 10:55
andreychek

Howdy,

Well, it's difficult to know what's generating the error without knowing more about your setup there... but Postfix would have a default message size limit (though I don't recall what it is).

If you'd like to bump up the default size limit for Postfix, you can do that by going into Webmin -> Servers -> Postfix -> General Resource Control, and set "Max size of a message" to a large number... perhaps "50000000" if you want to allow attachments of 40MB to get through (remember, if the attachment is 40MB, it gets flattened and enlarged when sent via email, so setting the max message size to something like 50MB would be needed).

-Eric

Thu, 11/04/2010 - 11:05 (Reply to #2)
zer0

Hi Eric,

Thank you for super fast reply. I have updated the "max size of a message" to 50000000 and I will try sending that email again, and will post back with update.

Thank you

Thu, 11/04/2010 - 12:06
Locutus

To be even more precise: To have a 40 MB email get through, the minimum setting for max. allowed message size would be 53,3333... MB. :) Since attachments in email use a base-64 encoding, 8 bits of each byte are put into 6 bits of the target text, enlarging the message size to 8/6th.

As for which side generated the error: If sending to the client in question did not work, but sending to your Hotmail account worked, the error should originate at the recipient's end.

If your side blocked the large message, there should be some trace of that in your logfiles, you might want to check /var/log/mail.*, especially mail.warn/err.

Thu, 11/04/2010 - 15:10
zer0

I tried sending the message again it bounced back again here is the return email in the raw form

Return-Path: <>
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mydomain.ca
X-Spam-Level:
X-Spam-Status: No, score=-100.0 required=5.0 tests=NO_RELAYS,USER_IN_WHITELIST autolearn=ham version=3.2.4
X-Original-To: user@mydomain.ca
Delivered-To: user.mydomain@mydomain.ca
Received: by mydomain.ca (Postfix) id A5F8F7E1AB; Thu,  4 Nov 2010 11:19:38 -0500 (CDT)
Date: Thu,  4 Nov 2010 11:19:38 -0500 (CDT)
From: MAILER-DAEMON@mydomain.ca (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: user@mydomain.ca
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status; boundary="A52C27E184.1288887578/mydomain.ca"
Message-Id: <20101104161938.A5F8F7E1AB@mydomain.ca>

This is a MIME-encapsulated message.

--A52C27E184.1288887578/mydomain.ca
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host mydomain.ca.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<user1@wellspringpharm.ca>: host mail3.wellspringpharm.ca[67.226.175.25]
    said: 552 5.3.4 message size limit exceeded (in reply to end of DATA
    command)

--A52C27E184.1288887578/mydomain.ca
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; mydomain.ca
X-Postfix-Queue-ID: A52C27E184
X-Postfix-Sender: rfc822; user@mydomain.ca
Arrival-Date: Thu,  4 Nov 2010 11:12:11 -0500 (CDT)

Final-Recipient: rfc822; user1@wellspringpharm.ca
Original-Recipient: rfc822;user1@wellspringpharm.ca
Action: failed
Status: 5.3.4
Remote-MTA: dns; mail3.wellspringpharm.ca
Diagnostic-Code: smtp; 552 5.3.4 message size limit exceeded

--A52C27E184.1288887578/mydomain.ca
Content-Description: Undelivered Message Headers
Content-Type: text/rfc822-headers

Received: from RM241 (unknown [192.168.1.122])
by mydomain.ca (Postfix) with ESMTPA id A52C27E184
for <user1@wellspringpharm.ca>; Thu,  4 Nov 2010 11:12:11 -0500 (CDT)
From: "" <user@mydomain.ca>
To: "''" <user1@wellspringpharm.ca>
Subject: How are you?
Date: Thu, 4 Nov 2010 11:12:11 -0500
Message-ID: <001801cb7c3b$0985a7e0$1c90f7a0$@ca>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0019_01CB7C11.20AF9FE0"
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Act8I8oAHp9VRXKXQ2uXIgbQBIDn7g==
Content-Language: en-ca

--A52C27E184.1288887578/mydomain.ca--

It seems like its originating from my end because it says "This is the mail system at host mydomain.ca." in the body of the email. But i do not know if that is true

Thu, 11/04/2010 - 16:28
zer0

from the log file i see the following entry for when the mail was sent


Nov 4 08:25:46 mydomain postfix/smtpd[28394]: connect from unknown[192.168.1.122]
Nov 4 08:25:46 mydomain postfix/trivial-rewrite[28397]: warning: do not list domain mydomain.ca in BOTH mydestination and virtual_alias_domains
Nov 4 08:25:46 mydomain postfix/smtpd[28394]: B453C7E184: client=unknown[192.168.1.122], sasl_method=LOGIN, sasl_username=user.mydomain
Nov 4 08:25:47 mydomain postfix/cleanup[28398]: B453C7E184: message-id=<000301cb7c23$ca271690$5e7543b0$@ca>
Nov 4 08:25:49 mydomain postfix/qmgr[7257]: B453C7E184: from=, size=23416136, nrcpt=1 (queue active)
Nov 4 08:25:49 mydomain postfix/smtp[28399]: B453C7E184: enabling PIX workarounds: disable_esmtp delay_dotcrlf for mail3.wellspringpharm.ca[67.226.175.25]:25

and the following message when the email came back

4 08:33:37 mydomain postfix/smtp[28399]: B453C7E184: to=, relay=mail3.wellspringpharm.ca[67.226.175.25]:25, delay=471, delays=2.6/0.03/0.58/467, dsn=5.3.4, status=bounced (host mail3.wellspringpharm.ca[67.226.175.25] said: 552 5.3.4 message size limit exceeded (in reply to end of DATA command))


I dont know if this helps.
I did not find anything in the mail.warn

Thu, 11/04/2010 - 16:45
Locutus

The crucial line is this one:

user1@wellspringpharm.ca>: host mail3.wellspringpharm.ca[67.226.175.25]
    said: 552 5.3.4 message size limit exceeded (in reply to end of DATA
    command)

It was your Postfix that delivered the error message to you, yep. But it was the system at "wellspringpharm.ca" that caused the error by saying "552 message size limit exceeded", not yours. :) So it's their message limit that was exceeded.

Thu, 11/04/2010 - 17:29 (Reply to #7)
zer0

phew!!!! glad to know.

Thank you very much Locutus (of borg)

Thu, 11/04/2010 - 18:49
Locutus

You're welcome, and consider yourself assimilated. ;)

Topic locked