Содержание
- Лимиты в Postfix
- Редактирование конфигурационного файла Postfix
- 1. Размер почтового ящика
- 2. Размер отправляемого сообщения
- 3. Количество сообщений и одновременных подключений
- 4. Очередь сообщений
- 5. Таймаут на отправку сообщений
- 6. Отправка сообщений об ошибках (4xx or 5xx)
- 552 5.3.4 message size exceeds fixed limit
- Работа с конфигом postfix
- Sep 30, 2022: iRedMail-1.6.2 has been released.
- Posts: 9
- 1 Topic by shaiktharim 2014-05-22 17:52:39
- Topic: SMTP error: 552 5.3.4 Message size exceeds fixed limit
- 2 Reply by ZhangHuangbin 2014-05-22 18:58:49
- Re: SMTP error: 552 5.3.4 Message size exceeds fixed limit
- 3 Reply by shaiktharim 2014-05-22 20:23:38
- Re: SMTP error: 552 5.3.4 Message size exceeds fixed limit
- Smtp error 552 message size exceeds fixed limit
- Asked by:
- Question
- All replies
Лимиты в Postfix
Почтовый агент Postfix позволяет задавать различные ограничения, таймауты и лимиты. В данной инструкции мы рассмотрим примеры, как это сделать. Используемые значения подойдут для средне статистического сервера, однако, в каждой среде необходимо наблюдение и приведение параметром к оптимальному виду.
Редактирование конфигурационного файла Postfix
Изменения делаем в конфигурационном файле:
* для FreeBSD путь будет /usr/local/etc/postfix/main.cf.
После редактирования не забываем перечитывать изменения командой:
systemctl reload postfix
* для FreeBSD или старых систем на базе Linux вводим service postfix restart.
1. Размер почтового ящика
Для установки квоты на почтовые ящики редактируем следующее:
mailbox_size_limit = 209715200
virtual_mailbox_limit = 209715200
* значение указывается в байтах. В данном примере установлены квоты для почтовых ящиков и виртуальных почтовых ящиков в 200 мб. Для удобства, воспользуйтесь конвертером мегабайт.
Чтобы снять ограничения, можно выставить значения в 0:
mailbox_size_limit = 0
virtual_mailbox_limit = 0
2. Размер отправляемого сообщения
Открываем конфигурационный файл, находим и правим следующее (если строки нет, создаем):
* в данном примере установлено ограничение на размер письма в 70 мб.
Необходимо, чтобы данный размер не превышал размер почтового ящика (mailbox_size_limit и virtual_mailbox_limit, которые по умолчанию имеют значения 51200000 или 50 мб), в противном случае, в логе мы увидим ошибку fatal: main.cf configuration error: mailbox_size_limit is smaller than message_size_limit.
Для этого можно либо задать значения равные (или больше) message_size_limit:
message_size_limit = 73400320
mailbox_size_limit = 73400320
virtual_mailbox_limit = 73400320
. либо отключить ограничения:
message_size_limit = 73400320
mailbox_size_limit = 0
virtual_mailbox_limit = 0
3. Количество сообщений и одновременных подключений
В конфигурационном файле добавляем такие строки:
anvil_rate_time_unit = 60s
smtpd_client_message_rate_limit = 200
smtpd_client_recipient_rate_limit = 60
smtpd_client_connection_count_limit = 20
smtpd_client_connection_rate_limit = 40
* в данном примере мы установили следующие ограничения на количество отправляемых писем:
- anvil_rate_time_unit — параметр расчетного времени. Именно от него будут вести отчет другие значения. По умолчанию также равен 60s.
- smtpd_client_message_rate_limit — сколько клиенту можно отправлять сообщений за anvil_rate_time_unit. По умолчанию 0, то есть, ограничений нет.
- smtpd_client_recipient_rate_limit — максимальное количество получателей за anvil_rate_time_unit. По умолчанию 0, то есть, ограничений нет.
- smtpd_client_connection_count_limit — количество одновременно разрешенных подключений для клиента. По умолчанию 50.
- smtpd_client_connection_rate_limit — максимальное количество коннектов, разрешенных для клиента за anvil_rate_time_unit. По умолчанию 0, то есть, ограничений нет.
4. Очередь сообщений
queue_run_delay = 5m
minimal_backoff_time = 10m
maximal_backoff_time = 15m
maximal_queue_lifetime = 1d
* где queue_run_delay задает время, как часто сообщения из очереди будут отправляться повторно; minimal_backoff_time устанавливает время, на которое будет отложена отправка сообщений, которые не были отправлены по причине временных неисправностей (например, принимающий сервер не отвечает или просит повторить запрос позже), но не позднее maximal_backoff_time; параметр maximal_queue_lifetime установит, через какой период перестать делать попытки при отправке сообщения и вернуть его отправителю с ошибкой.
5. Таймаут на отправку сообщений
smtp_data_done_timeout = 600s
smtp_data_init_timeout = 120s
smtp_data_xfer_timeout = 180s
* где smtp_data_done_timeout — ограничение времени для отправки сообщения; smtp_data_init_timeout — ограничение времени для отправки команды SMTP DATA и для получения ответа удаленного SMTP-сервера; smtp_data_xfer_timeout — ограничение времени для отправки содержимого сообщений.
6. Отправка сообщений об ошибках (4xx or 5xx)
smtpd_error_sleep_time = 3s
smtpd_soft_error_limit = 5
smtpd_hard_error_limit = 10
- smtpd_error_sleep_time — задержка перед отправкой сообщения об ошибке (4xx or 5xx). По умолчанию 1s.
- smtpd_soft_error_limit — количество ошибок, которые должны быть сделаны, прежде чем наш сервер начнет замедлять ответы. По умолчанию 10.
- smtpd_hard_error_limit — максимальное количество ошибок, которые может сделать удаленный сервер SMTP. После с ним будет разорвана сессия. По умолчанию 20.
552 5.3.4 message size exceeds fixed limit
Если сталкиваемся с сообщением «552 5.3.4 message size exceeds fixed limit» (переводится как «Размер сообщения превышает установленные ограничения»), значит отправляемое письмо не вписывается в установленные лимиты. Чтобы исправить ситуацию, уменьшаем размер сообщения или редактируем лимиты (пункты 1 и 2).
То есть, размер message_size_limit не должен превышать mailbox_size_limit и virtual_mailbox_limit.
Работа с конфигом postfix
Неколько полезных консольных команд по работе с конфигурацией.
1. Посмотреть значение параметра по умолчанию:
Источник
Sep 30, 2022: iRedMail-1.6.2 has been released.
iRedMail → iRedMail Support → SMTP error: 552 5.3.4 Message size exceeds fixed limit
You must login or register to post a reply
Posts: 9
1 Topic by shaiktharim 2014-05-22 17:52:39
- shaiktharim
- Member
- Offline
- Registered: 2014-01-05
- Posts: 39
Topic: SMTP error: 552 5.3.4 Message size exceeds fixed limit
==== Required information ====
— iRedMail version: 2.1.1
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
— Linux/BSD distribution name and version: Ubuntu 12.04
— Related log if you’re reporting an issue:
====
When emails are fetched from our pop3 server its thrwoing an error SMTP error: 552 5.3.4 Message size exceeds fixed limit.
Can you please help.
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.
2 Reply by ZhangHuangbin 2014-05-22 18:58:49
- ZhangHuangbin
- iRedMail Developers
- Offline
- Registered: 2009-05-06
- Posts: 30,018
Re: SMTP error: 552 5.3.4 Message size exceeds fixed limit
How do you deliver fetched mail to user mailbox? Also, show us output of command «postconf -n» to help troubleshoot.
3 Reply by shaiktharim 2014-05-22 20:23:38
- shaiktharim
- Member
- Offline
- Registered: 2014-01-05
- Posts: 39
Re: SMTP error: 552 5.3.4 Message size exceeds fixed limit
i have configured fetchmail to deliver fetched mails to user mailbox.
Here is my output of postconf -n:
# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
allow_percent_hack = no
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 4h
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
delay_warning_time = 0h
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
enable_original_recipient = no
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = ipv4
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 0
maximal_backoff_time = 4000s
maximal_queue_lifetime = 4h
message_size_limit = 31457280
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = albawardi.com
myhostname = mailserver.albawardi.com
mynetworks = 127.0.0.0/8
mynetworks_style = host
myorigin = mailserver.albawardi.com
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_run_delay = 300s
readme_directory = no
recipient_bcc_maps = proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_user.cf, proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_domain.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:ldap:/etc/postfix/ldap/relay_domains.cf
relayhost = 216.25.6.131
sender_bcc_maps = proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_user.cf, proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_domain.cf
smtp-amavis_destination_recipient_limit = 1
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:$/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = ./dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ldap/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:$/smtpd_scache
smtpd_use_tls = yes
swap_bangpath = no
tls_random_source = dev:/dev/urandom
transport_maps = proxy:ldap:/etc/postfix/ldap/transport_maps_user.cf, proxy:ldap:/etc/postfix/ldap/transport_maps_domain.cf
virtual_alias_domains =
virtual_alias_maps = proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_members_maps.cf, proxy:ldap:/etc/postfix/ldap/catchall_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000
Please check and let me know my configurations are right or need any changes?
Источник
Smtp error 552 message size exceeds fixed limit
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Asked by:
Question
i’m trying to troubleshoot an issue where my users send large files and i want to increase the file size possible to get to the exchange mailbox but i’m not having success. In a test internally from one exchange user to another i am able to send these set of jpg files totalling 19mb. But, when i send from the internet to the same user i get a failure. Below are the details of the failure. From my gmail accont to my exchange account. Any advice on where to check or change settings? Further troubleshooting steps?
Also. i’m running Exchange 2010 and not 2013. the web page did not allow me to choose 2010 for some reason.
———- Forwarded message ———-
From: Mail Delivery Subsystem
Date: Fri, Sep 6, 2013 at 3:49 PM
Subject: Delivery Status Notification (Failure)
To: aamato9072@gmail.com
Delivery to the following recipient failed permanently:
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain salesmasterflooring.com by mobile.salesmasterflooring.com . [24.187.246.100].
The error that the other server returned was:
552 5.3.4 Message size exceeds fixed maximum message size
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to: references:date:message-id: subject:from:to
:content-type;
Try these commands on your Hub Transport server:
Set-TransportConfig –MaxReceiveSize 50MB
Get-ReceiveConnector | Set-ReceiveConnector -MaxMessageSize 50MB
Get-Mailbox | Set-Mailbox -MaxReceiveSize 50MB
Note: Running this command will set the receiving size limit on all the receive connectors and all the mailboxes to 50 MB. You can change the size limit on these command to suit your need.
I recommend you refer to the following commands to check the settings on the exchange server.
If any settings less than 19mb, you need to refer to PSS’s reply to change the settings.
Hope it helps you!
Regards, Please mark it as an answer if it really helps you.
I recommend you to check the size of the entire email which includes all the attachments.
It may be the gmail’s problem,the following article for your reference:
Attachment size limit
You can send messages up to 25 megabytes (MB) in size. If you’d like to send attachments that are larger than this, you can insert from Google Drive instead.
Hope it helps you !
Regards, Please mark it as an answer if it really helps you.
thanks. but this doesn’t seem to only occur from google. i have users sending from yahoo too.
From: «MAILER-DAEMON@yahoo.com»
To: markwat54@yahoo.com
Sent: Thursday, September 5, 2013 5:12 PM
Subject: failure notice
Hi. This is the qmail-send program at yahoo.com.
I’m afraid I wasn’t able to deliver your message to the following addresses.
This is a permanent error; I’ve given up. Sorry it didn’t work out.
:
24.187.246.100 failed after I sent the message.
Remote host said: 552 5.3.4 Message size exceeds fixed maximum message size
— Below this line is a copy of the message.
Return-Path:
Received: (qmail 74127 invoked by uid 1000); 5 Sep 2013 21:12:45 -0000
Received: (qmail 77601 invoked by uid 60001); 5 Sep 2013 21:12:41 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378415556; bh=T+dhQNVA0wpUKUwLlln6h8AbaTft5iqjkTxUs1hE3Y4=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=x078bNnfJB4bFWwOja29W/ybcoVVrfNhgI+hZBSj4tv4W1fmg4VK14YA12UiWjO8kUhnWM61zHKlDIrZA33r0ak3FTPkKyGD/2i4tR9VzK7BH8+Y1IjaKwmLWJGnTPhup30lIBqkNE23Km5pjj2UYwKTYfla6YTWZrxR6v4Wr4Y=
DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws;
s=s1024; d=yahoo.com;
h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
b=Im+I6/3iboPvtIZ7UbnV3MhaYXvBZhlEKdX58SE+gkln99Wb+ge89I+t/CSESANxHhh/BUPdF9+YVmqsMDzNOElDpOiK026TRX7pzgFb8KrI6S6ySxD3VJUl0S7wFHbOfcu0QW5UlRs7zDyxbE+oTt19ZFW4bmOFGFHEbb7IWII=;
X-YMail-OSG: TGR0dgMVM1nRh_JpcpNVjQBj9nGIB3oPn6t.3m4Ek7PLXrz
C5mlkogd4D0nXpru8Ekw.1i4scKqN.onVbpjRkBWlq5QOwA3zgYMnz0iH9tI
WA8V4x7rSuTxmL6mJDqN1DgOTTGIm4s81Uzv4AA7.JkufRCb.AwiKGSDbzZT
8cPs8Bg85yFBRUt2KHr6nXV43ACz8CGXylGcgSvzZmFFjkSGTyBzXHVoUke4
S1Bb8cyHjRR9EyHnun8YVc3wWAqzOX0s44waDOWPGFmk0k_VmVrR0Eum663e
ppMZBSmCvlzoKeZzByWETcEkSV3XXBYZ2ibF_9aXIgkQgNVVLVc7w5LWUC_u
djjDEF_cQiu9UoQl4mMjcsER5ctcwgJEkJ9z07Z3KmsgmxHgdZXb59nO9rs0
ghUGc1e.PiI.lWQuFQyoxN4c9wzfdV1uFuCMv8.NEzzjaoB2PqJhdw6L9JXm
a9LMLDtPLHhMnPACV4h1jfvZQzDc90ikbZMBr16KAlIS.7yq9SuPdMQNXiEC
IZ_VBv5dMmKn.N5.iZc6gaiu7Alee9Yhb5rFHMNewWKH6bWbG399QQhveozQ
U3toPc7bHrTfG8LbBmoY62EWVVR41Tc31eqq6xwPOfA—
Received: from [24.187.246.101] by web161301.mail.bf1.yahoo.com via HTTP; Thu, 05 Sep 2013 14:12:33 PDT
X-RocX-Mailer: YahooMailWebService/0.8.156.576
References:
Message-ID:
Date: Thu, 5 Sep 2013 14:12:30 -0700 (PDT)
From: mark watkins
Reply-To: mark watkins
Subject: Fw: 12.3 mb test salesmasterflooring
To: mark watkins ,
andy amato
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=»-201759553-724113204-1378415553=:76297″
—201759553-724113204-1378415553=:76297
Content-Type: multipart/alternative; boundary=»-201759553-1861093726-1378415553=:76297″
—201759553-1861093726-1378415553=:76297
Content-Type: text/plain; charset=us-ascii
Источник
Error ::
When your sender got the bouce back email with the message
SMTP error from remote mail server after MAIL FROM: SIZE=5000000:
host mail.domain.com [xx.xx.xx.xx]: 552 Message size exceeds maximum permitted
Resolution ::
Increase the message size limit set. Follow the steps given bellow.
1. Login to ypur server with the ssh access and root user
2. Edit exim.conf files.
#vi /etc/exim.conf
3. Search for “message_size_limit” and change the limit.
message_size_limit = 6M
Note :: I used 6 megabytes in my example, you change change 5m to whichever size you would like.
Довольно часто в ходе работы корпоративным пользователям требуется отправлять крупные вложения через почтовый клиент, при этом они могут столкнутся с ошибкой отправки письма.
Outlook
Все дело в том, что в почтовом клиенте Outlook (в т.ч. в версиях 2010 / 2013 / 2016) существует ограничение на максимальный размер вложения к письму – 20 Мб. Причем, не имеет значения, прикреплен ли к письму один большой файл или несколько мелких – лимит на общий размер вложений будет всегда 20 Мб.
При попытке отправить письмо размером более 20 Мб в Outlook появляется окно с ошибкой —
The attachment size exceeds the allowable (размер вложения превышает допустимый предел):
В том случае, если ваш почтовый сервер и сервер получателя поддерживает больший размер почтовых сообщений, лимит на размер вложений в Outlook можно увеличить.
Изменить ограничение на максимальный размер вложений в Outlook можно только через реестр, в графическом интерфейсе Outlook такая настройка отсутствует.
Порядок действий
- Закройте Outlook и откройте редактор реестра (regedit.exe)
- В зависимости от версии Outlook перейдите в следующую ветку реестра:
Outlook 2016 — HKEY_CURRENT_USERSoftwareMicrosoftOffice16.0OutlookPreferences Outlook 2013 — HKEY_CURRENT_USERSoftwareMicrosoftOffice15.0OutlookPreferences Outlook 2010 — HKEY_CURRENT_USERSoftwareMicrosoftOffice14.0OutlookPreferences Outlook 2007 — HKEY_CURRENT_USERSoftwareMicrosoftOffice12.0OutlookPreferences
- В указанной ветке найдите или отредактируйте параметр с именем MaximumAttachmentSize, указав новый лимит на размер вложений, например 102400 (или 100 Мб). По-умолчанию, 20 Мб (20480кб). Чтобы совсем отключить ограничение, задайте значение 0.
- Закройте редактор реестра и перезапустите Microsoft Outlook
Примечание:
Если ключ MaximumAttachmentSize отсутствует, его нужно создать вручную: New -> DWORD (32-bit)Value
После внесенных изменений к письму в Outlook можно прикрепить вложение размером, больше чем 20 мб (в нашем примере мы прикрепили к письму pst файл размером 58 Мб).
В том случае, если ваш почтовый сервер или сервер отправителя не поддерживают письма большого размера, при отправке большого письма вы получите отбойник о недоставке (NDR-Non delivery report), в котором будет указано, что превышен максимальный размер письма. Ниже приведены популярные варианты текста подобного отбойника:
- Attachment size exceeds the allowable limit
- 552: Message size exceeds maximum permitted
- System Undeliverable, message size exceeds outgoing message size limit
- The message was not sent; reduce the message size and try again
MS Exchange
В Exchange можно изменить допустимый размер письма на трех различных уровнях:
- В настройках транспорта организации Exchange
- В параметрах отправляющих/принимающих коннекторов
- В настройках ящика конкретного пользователя
Текущие лимиты можно посмотреть через Exchange Management Console (EMC), но гораздо проще и быстрее воспользоваться PowerShell. В консоли Exchange Management Shell, или после подключения к Office 365 через удаленную PowerShell сессию, выполните команды:
get-transportconfig | ft maxsendsize, maxreceivesize get-receiveconnector | ft name, maxmessagesize get-sendconnector | ft name, maxmessagesize get-mailbox administrator |ft Name, Maxsendsize, maxreceivesize
Команды должны вернуть примерно такие результаты, содержащие текущие настройки лимитов:
- В параметрах транспорта всей организации размер указано, что принимаемого/отправляемого письма не должен быть больше чем 25 Мб
- На всех коннекторах стоит лимит 10 мб
- Для почтового ящика администратора лимит на размер писем не задан (unlimited)
Естественно, в последней команде выполняется проверка лимитов только для одного ящика. Вывести лимиты на размер писем для всех пользователей организации можно так:
get-mailbox |ft Name, Maxsendsize, maxreceivesize
Чтобы увеличить максимальный размер письма (как принимаемого, так и отправляемого), принимаемого транспортной службой Exchange с 25 до 100 Мб, выполните команду:
Set-TransportConfig -MaxSendSize 100MB -MaxReceiveSize 100MB
Синтаксис команды смены лимита на размер писем для коннекторов аналогичен, однако команду смены придется выполнить для каждого коннектора.
Set-SendConnector "Connector1" – MaxMessageSize 100Mb Set-ReceiveConnector "DefaultConnector1" -MaxmessageSize 100MB
Или для всех коннекторов:
Get-SendConnector | Set-SendConnector -MaxmessageSize 100MB Get-ReceiveConnector | Set-ReceiveConnector -MaxmessageSize 100MB
Аналогичным образом можно изменить лимит для всех ящиков организации:
Get-Mailbox | Set-Mailbox -MaxSendSize 100MB -MaxReceiveSize 100MB
Заданные таким образом лимиты ограничивают максимальный размер письма независимо от того, содержит ли оно вложение или нет.
Использование веб-интерфейса
Есть другой вариант — через веб-интерфейс. Открываем центр администрирования Exchange и переходим в раздел поток обработки почты -> соединители отправки -> параметры транспорта организации:
и выставляем требуемый максимальный объем вложения. Обращаем ваше внимание — при пересылке на внешний сервер, происходит кодирование вложение в формате MIME64, что увеличивает итоговый объем письма примерно на 30%.
Мы также готовы оказать помощь в любых настройках MS Exchange.
Нашим клиентам мы предлагаем реализацию данного проекта и последующее ИТ-обслуживание в рамках ИТ-аутсорсинга.
Альтернативным вариантом является — взять в аренду уже настроенный сервер Exchange с обслуживанием или подключиться к публичному облачному Exchange на базе структуры EFSOL.
Users sending messages with attachments to recipients hosted in Exchange servers can end up receiving bounce mails due these attachments.
Our Support Engineers support hundreds of Exchange servers for web hosts, web designers and other online businesses.
In these servers, we’ve seen huge attachments or unsupported attachments formats causing email error 552.
The error message seen by the senders in the bounce mail in cases of huge attachment size limit would be error 552 – ‘5.3.4 Message size exceeds fixed maximum message size’.
If the bounce happens due to the content of the attachment, the error message would be similar to error 552 – ‘5.7.0 Our system detected an illegal attachment on your message.’
What is email error 552 ‘5.3.4 Message size exceeds fixed maximum message size’
Every mail server has custom settings for the size of mails users can send and receive through it. These limits can either be global or individual-account specific or both.
To limit bandwidth usage, this email size limit is often restricted to a few MBs in most servers. If the email size exceeds that limit, it will be rejected by the mail server.
Error 552 ‘5.3.4 Message size exceeds fixed maximum message size’ is an email error commonly seen in bounce messages that generate from recipients using Exchange mail server.
In an Exchange server, there are mainly 4 settings for message size limitations:
a. Global value for the mail server b. Receive and Send Connectors setting c. SMTP Virtual Server setting d. Individual user mailbox restriction
If the message size in the email exceeds any of these limits that are allowed for a particular email user account, it will be rejected with this error 552 message.
To resolve a valid email bouncing with error 552, these attachment limits have to be increased or adjusted appropriately.
But before we get into the detailed steps on how to increase these limits to accept valid user mails with attachments, we’ll see how these message size limits are to be calculated.
[ Worry no more about web or mail errors. Get an experienced Support Engineer to manage your servers for as low as $12.99/hour. ]
How to determine the email message size limits?
In Exchange mail servers, content conversion happens for mails. Exchange server converts an internet/MIME message to MAPI/Exchange format, and vice versa for transmission.
After this content conversion process, the message size generally increases by about 30%. As a result, a message of 9 MB may fail to deliver to a server with size limit 10 MB.
Also, the precedence of the message size limits has to be noted before changing the settings. The maximum allowable message size for a server should be set as the organizational limit.
If the message is sent to or received to the server from a user on the Internet, this organizational limit will be applied to that mail.
But for internal users who send mail to each other after successful authentication, the user mailbox limit takes precedence over all other size restrictions.
So, for a server to accept messages from the internet with size around 15 MB, all the message limits should be set at 20 MB, considering the content conversion size.
How to fix error 552 ‘5.3.4 Message size exceeds fixed maximum message size’ in Exchange server
To accept mails of large sizes from valid senders, the message size settings have to be increased in the server. Here’s how to do it for each limit:
1. How to increase global message size settings
The global default message size limit for Exchange Servers 2007 to 2010 is 10 MB. To change this value, the steps are:
1. Open the Exchange Management Console. 2. Click on Organization Configuration -> Hub Transport. 3. Click on Global Settings -> Transport Settings. 4. On the Properties -> General tab, set the maximum send and receive size limits.
This is the organizational setting and would be applicable to all mails sent and received from that server over the internet.
Increase global message size limits in Exchange server
2. How to change message size limits for Receive connector
Receive connectors are the gateways through which all inbound messages are received to a mail server.
The maximum message size limit for a mail that can be received on a receive connector can be set by:
1. Open the Exchange Management Console 2. Click on Server Configuration -> Hub Transport 3. Select a Hub Transport server 4. Click on Receive Connectors 5. Choose the receive connector and Click on Properties 6. Click on the General tab and set the maximum message size
Setting a limit on receive connector can further limit the message size based on the sender’s IP address or type.
3. How to change message size limits for Send connector
Send connectors are configured to change the email sending behavior in server. To change the maximum message size limit on send connectors, do these steps:
1. Open the Exchange Management Console 2. Click on Organization Configuration -> Hub Transport 3. Click on Send Connectors 4. Choose a send connector and Click on Properties 5. Click on the General tab and set the maximum message size.
This limit is used to limit the size of outgoing mails from a server.
[ Tired of repeated mail errors? Our Support Engineers can take care of your servers and support your customers 24/7. Click here to know more. ]
4. How to increase message size settings for individual mail accounts
The individual mailbox settings can be changed from Exchange Administration Center (EAC). Here’s how to do it:
1. In the EAC, go to Recipients > Mailboxes. 2. Select the mailbox that you want to change the message size limits for, and then click Edit. 3. On the mailbox Properties page, click Mailbox Features. 4. Under Message Size Restrictions, change the following message size limits: 5. Sent messages - sets the maximum size of message that can be sent by the user. The value has to be set in KBs. 6. Received messages - give the maximum size of messages that can be received by this user account in KBs. 7. Click OK and Save the changes.
User mailbox settings are usually set to limit or override the default global size of email messages sent between users within the same server.
All these email settings should be verified one by one to ensure that mails to the recipients are delivered successfully without bouncing with the error 552 ‘5.3.4 Message size exceeds fixed maximum message size’.
In short..
552 email error due to message size limit can show up in other forms too, such as:
- 552 5.2.3 Message exceeds local size limit.
- 552 5.3.4 Message size exceeds fixed limit
- 552 message size exceeds maximum message size
- 552 size limit exceeded
The message size and attachment size for messages should be set to appropriate limits, for successful mail delivery to happen. But its not advisable to increase the message size unnecessarily, as it will end up overloading the server.
Other than editing the email limit settings, techniques such as email compression can also be used in specific cases. Also, straight-away making server setting changes is not recommended as it may tamper with its normal functioning.
Email error debugging involves examining the server logs, checking the bounce message, identifying the error-generating server and cross-checking the server settings.
If you’d like to know how to secure your mail server and prevent email bounce errors, we’d be happy to talk to you.
На чтение 5 мин. Опубликовано 15.12.2019
Содержание
- 1. Размер почтового ящика
- 2. Размер отправляемого сообщения
- 3. Количество сообщений
- 4. Очередь сообщений
- 5. Таймаут на отправку сообщений
- 552 5.3.4 message size exceeds fixed limit
- Работа с конфигом postfix
- 552 message size exceeds maximum permitted
1. Размер почтового ящика
Открываем конфигурационный файл Postfix:
* для FreeBSD путь будет /usr/local/etc/postfix/main.cf.
Для установки квоты на почтовые ящики редактируем следующее:
mailbox_size_limit = 209715200
virtual_mailbox_limit = 209715200
* значение указывается в байтах. В данном примере установлены квоты для почтовых ящиков и виртуальных почтовых ящиков в 200 мб. Для удобства, воспользуйтесь конвертером мегабайт.
Чтобы снять ограничения, можно выставить значения в 0:
mailbox_size_limit = 0
virtual_mailbox_limit = 0
2. Размер отправляемого сообщения
Открываем конфигурационный файл, находим и правим следующее (если строки нет, создаем):
* в данном примере установлено ограничение на размер письма в 30 мб.
3. Количество сообщений
В конфигурационном файле добавляем такие строки:
anvil_rate_time_unit = 60s
smtpd_client_message_rate_limit = 100
smtpd_client_recipient_rate_limit = 30
smtpd_client_connection_rate_limit = 20
* в данном примере мы установили следующие ограничения на количество отправляемых писем: можно отправлять только 100 сообщений в минуту (60s), при этом количество получателей не должно превышать 30, а количество коннектов ограничено числом 20.
4. Очередь сообщений
queue_run_delay = 5m
minimal_backoff_time = 10m
maximal_backoff_time = 15m
maximal_queue_lifetime = 1d
* где queue_run_delay задает время, как часто сообщения из очереди будут отправляться повторно; minimal_backoff_time устанавливает время, на которое будет отложена отправка сообщений, которые не были отправлены по причине временных неисправностей (например, принимающий сервер не отвечает или просит повторить запрос позже), но не позднее maximal_backoff_time; параметр maximal_queue_lifetime установит, через какой период перестать делать попытки при отправке сообщения и вернуть его отправителю с ошибкой.
5. Таймаут на отправку сообщений
smtp_data_done_timeout = 600s
smtp_data_init_timeout = 120s
smtp_data_xfer_timeout = 180s
* где smtp_data_done_timeout — ограничение времени для отправки сообщения; smtp_data_init_timeout — ограничение времени для отправки команды SMTP DATA и для получения ответа удаленного SMTP-сервера; smtp_data_xfer_timeout — ограничение времени для отправки содержимого сообщений.
552 5.3.4 message size exceeds fixed limit
Если сталкиваемся с сообщением «552 5.3.4 message size exceeds fixed limit» (переводится как «Размер сообщения превышает установленные ограничения»), значит отправляемое письмо не вписывается в установленные лимиты. Чтобы исправить ситуацию, уменьшаем размер сообщения или редактируем лимиты (пункты 1 и 2).
Работа с конфигом postfix
Неколько полезных консольных команд по работе с конфигурацией:
Посмотреть значение параметра по умолчанию:
552 message size exceeds maximum permitted
Автор Ўрий Гришин задал вопрос в разделе Другое
Мне не могут отослать письмо с файлом в 27 Мб. Появляется сообщение 552 Sorry, message size exceeds the maximum allowed. и получил лучший ответ
Ответ от 2006-2014[гуру]
Почта мэйла оперирует письмами размером до 30 Мб.. .
Причем размер присоединенных файлов увеличивается при их перекодировке для пересылки приблизительно на 33%, поэтому суммарный размер всех присоединенных файлов должен быть меньше 22 Мб
Попробуйте заархивировать файл — возможно его размер при этом значительно уменьшится
В почтовом клиенте Outlook (в т.ч. последних 2010 / 2013 версий) существует ограничение на максимальный размер вложения к письму – 20 Мб. Причем, не имеет значения, прикреплен ли к письму один большой файл или несколько мелких – лимит на общий размер вложений будет всегда 20 Мб.
При попытке отправить письмо размером более 20 Мб в Outlook появляется окно с ошибкой:
В том случае, если ваш почтовый сервер и сервер получателя поддерживает больший размер почтовых сообщений, лимит на размер вложений в Outlook можно увеличить.
Изменить ограничение на максимальный размер вложений в Outlook можно только через реестр, в графическом интерфейсе Outlook такая настройка отсутствует.
- Закройте Outlook и откройте редактор реестра (regedit.exe)
- В зависимости от версии Outlook перейдите в следующую ветку реестра:
- Outlook 2013 — HKEY_CURRENT_USERSoftwareMicrosoftOffice15.0OutlookPreferences
- Outlook 2010 — HKEY_CURRENT_USERSoftwareMicrosoftOffice14.0OutlookPreferences
- Outlook 2007 — HKEY_CURRENT_USERSoftwareMicrosoftOffice12.0OutlookPreferences
- В указанной ветке найдите или отредактируйте параметр с именем MaximumAttachmentSize, указав новый лимит на размер вложений, например 102400 (или 100 Мб). По-умолчанию, 20 Мб (20480кб). Чтобы совсем отключить ограничение, задайте значение 0.
После внесенных изменений к письму в Outlook можно прикрепить вложение размером, больше чем 20 мб (в нашем примере мы прикрепили к письму pst файл размером 58 Мб).
В том случае, если ваш почтовый сервер или сервер отправителя не поддерживают письма большого размера, при отправке большого письма вы получите отбойник о недоставке (NDR-Non delivery report), в котором будет указано, что превышен максимальный размер письма. Ниже приведены популярные варианты текста подобного отбойника:
- Attachment size exceeds the allowable limit
- 552: Message size exceeds maximum permitted
- System Undeliverable, message size exceeds outgoing message size limit
- The message was not sent; reduce the message size and try again
В Exchange 2010 максимальный размер сообщения задается так. В следующей таблице приведены ограничения на максимальный размер письма в популярных email сервисах: