Size limite of recieving emails.

Questions and answers about how to do stuff
Post Reply
jamerson
Posts: 140
Joined: 19 Aug 2017 18:57
Location: kaaskop

Size limite of recieving emails.

Post by jamerson » 05 Jan 2018 11:18

Daer All,
I understand that EFA is using standarts limite of 9MB.
when i use send us a email with attachement bigger than 9MB they get this respond back.

Code: Select all

efa.domain.com
Remote Server returned '550 5.3.4 SMTPSEND.OverAdvertisedSize; message size exceeds fixed maximum size'
Does anyone knows how can we change the limite on the EFA?
Version eFa 4.0.0 RC1 now available in testing repo. Come join us in advancing eFa!

Zwabber
Posts: 60
Joined: 14 Feb 2016 21:26

Re: Size limite of recieving emails.

Post by Zwabber » 05 Jan 2018 11:37

edit /etc/postfix/main.cf and change the parameter message_size_limit to what you want the limit to be. (or include the parameter if it is not there)

message_size_limit = 20480000

jamerson
Posts: 140
Joined: 19 Aug 2017 18:57
Location: kaaskop

Re: Size limite of recieving emails.

Post by jamerson » 05 Jan 2018 13:10

Thank you for your answer
i managed to do this using the

Code: Select all

sudo postconf -e message_size_limit=50480000
sudo /etc/init.d/postfix restart
also for people who doesn't like the shell .
Also consider using the webadmin module under

Code: Select all

- servers
- Postfix Mail Server
- General Resource Control
- Max size of a message
Version eFa 4.0.0 RC1 now available in testing repo. Come join us in advancing eFa!

jamerson
Posts: 140
Joined: 19 Aug 2017 18:57
Location: kaaskop

Re: Size limite of recieving emails.

Post by jamerson » 11 Jan 2018 12:59

Hi guys,
the error has comes back

Code: Select all

Remote Server returned '550 5.2.3 RESOLVER.RST.SendSizeLimit.Org; message too large for this organization'
Received: from EX-DKS.DKS.lan (192.168.6.3) by EX-DKS.DKS.lan (192.168.6.3)
 with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 11 Jan 2018 13:27:46
 +0100
Received: from filter.domain.com.com (192.168.6.5) by EX-DKS.DKS.lan
 (192.168.6.3) with Microsoft SMTP Server (TLS) id 15.0.1347.2 via Frontend
 Transport; Thu, 11 Jan 2018 13:27:46 +0100
X-Spam-Status: No
X-dks-MailScanner-EFA-Watermark: 1516278463.87526@WSO4MymhY8jv8tlPoWh+Qg
X-dks-MailScanner-EFA-From: pablo.riveiro@recieving.com
X-dks-MailScanner-EFA: Found to be clean
X-dks-MailScanner-EFA-ID: 12D99440372.A821F
X-dks-MailScanner-EFA-Information: Please contact info@domain.com for more information
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0074.outbound.protection.outlook.com [104.47.42.74])
        (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))
        (No client certificate requested)
        by filter.domain.com.com (Postfix) with ESMTPS id 12D99440372
Version eFa 4.0.0 RC1 now available in testing repo. Come join us in advancing eFa!

henk
Posts: 423
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: Size limite of recieving emails.

Post by henk » 11 Jan 2018 13:23

first check current setting

Code: Select all

postconf -n
try this with postconf or edit /etc/postfix/main.cf
# bump up the default messagessize limit: default message_size_limit = 10240000
# big mb limit
message_size_limit = 104857600
virtual_mailbox_limit = 0
mailbox_size_limit = 0

jamerson
Posts: 140
Joined: 19 Aug 2017 18:57
Location: kaaskop

Re: Size limite of recieving emails.

Post by jamerson » 11 Jan 2018 14:48

Thank you Henk for your answer.
see below log of the postconf -n its appear to be fine with 50mb.

[

Code: Select all

admin@filter ~]$ postconf -n
2bounce_notice_recipient = support@domain.com
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
bounce_notice_recipient = support@domain.com
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
compatibility_level = 2
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_                                                                                                                     directory/$process_name $process_id & sleep 5
default_destination_recipient_limit = 1
delay_notice_recipient = support@domain.com
disable_vrfy_command = yes
error_notice_recipient = support@domain.com
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps =
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
masquerade_domains = $mydomain
message_size_limit = 50240000
meta_directory = /etc/postfix
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8 mail.company.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
notify_classes = resource, software, delay, bounce
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-3.1.3/README_FILES
relay_domains = hash:/etc/postfix/transport
sample_directory = /usr/share/doc/postfix-3.1.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
shlib_directory = no
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = cyrus
smtp_tls_CAfile = /etc/postfix/ssl/rsa_smtpd.pem
smtp_tls_mandatory_protocols = !SSLv2,!SSLv3
smtp_tls_note_starttls_offer = yes
smtp_tls_protocols = !SSLv2,!SSLv3
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache
smtp_use_tls = yes
smtpd_client_restrictions = permit_sasl_authenticated, reject_rbl_client zen.spa                                                                                                                     mhaus.org, reject_unknown_reverse_client_hostname
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = check_helo_access hash:/etc/postfix/helo_access, rejec                                                                                                                     t_invalid_hostname
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, rej                                                                                                                     ect_unauth_destination, reject_non_fqdn_recipient, reject_unknown_recipient_doma                                                                                                                     in, check_recipient_access hash:/etc/postfix/recipient_access, check_policy_serv                                                                                                                     ice inet:127.0.0.1:2501
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_sasl_authenticated, check_sender_access hash:                                                                                                                     /etc/postfix/sender_access, reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/postfix/ssl/rsa_smtpd.pem
smtpd_tls_cert_file = /etc/postfix/ssl/rsa_smtpd.pem
smtpd_tls_ciphers = medium
smtpd_tls_dh1024_param_file = /etc/postfix/ssl/dhparam.pem
smtpd_tls_key_file = /etc/postfix/ssl/rsa_smtpd.pem
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3
smtpd_tls_protocols = !SSLv2,!SSLv3
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_tls_session_cach                                                                                                                     e
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
smtputf8_enable = no
tls_medium_cipherlist = ECDSA+AESGCM:ECDH+AESGCM:DH+AESGCM:ECDSA+AES:ECDH+AES:DH                                                                                                                     +AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
tls_preempt_cipherlist = yes
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
Version eFa 4.0.0 RC1 now available in testing repo. Come join us in advancing eFa!

Zwabber
Posts: 60
Joined: 14 Feb 2016 21:26

Re: Size limite of recieving emails.

Post by Zwabber » 11 Jan 2018 15:08

This looks like a Exchange warning (limited send connector?) and not EFA

jamerson
Posts: 140
Joined: 19 Aug 2017 18:57
Location: kaaskop

Re: Size limite of recieving emails.

Post by jamerson » 11 Jan 2018 16:17

Zwabber wrote:
11 Jan 2018 15:08
This looks like a Exchange warning (limited send connector?) and not EFA
good catch,
thank you so much for your answer.
we managed to get this fixed with the exchange limite.
a big thank you sir.
Version eFa 4.0.0 RC1 now available in testing repo. Come join us in advancing eFa!

Post Reply