postfix only send mail from ubuntu 16.04

i have install postfix on ubuntu 16.04 for send-only mail.
when i send mail nothing happend nor error and  don't send mail.
service status on postfix  is
fatal: bad numerical configuration: mailbox_size_limit = 20M
fatal: bad numerical configuration: mailbox_size_limit = 20M
warning: process /usr/lib/postfix/sbin/local pid 12388 exit status 1
warning: /usr/lib/postfix/sbin/local: bad command startup -- throttling

what is wrong here what should linit be?
Jasmin shahrzadAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MichelangeloConsultantCommented:
Please ese 20480000 as value
mailbox_size_limit = 20480000

Open in new window

Note: 104857600 is 100 (MB) x 1024 (KB) x 1024 (Byte).
After that check postfix status with
tail +50  /var/log/mail.log 

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dfkeCommented:
Hi,

Michelangelo stated correctly that you need to alter the mailbox_size_limit. However 20480000 bytes is actually  19.5MB so you're half a MB short if you need a 20MB mailbox size limit.

Considering:

1 Byte = 8 Bit
1 Kilobyte = 1,024 Bytes
1 Megabyte = 1,048,576 Bytes
1 Gigabyte = 1,073,741,824 Bytes
1 Terabyte = 1,099,511,627,776 Bytes

So with that in mind 20MB makes 20,971,520 bytes

Just edit the main.cf and you're set.

# less /etc/postfix/main.cf
.....
message_size_limit = 20971520

Open in new window


Cheers
0
MichelangeloConsultantCommented:
Thank you dfke for pointing that out. I made a little search and have to amend my comment:
104857600 is 100 (MB) x 1024 (KB) x 1024 (Byte) is not true.
20M = 20480000  20 x 1000 x 1024
It seems in recent years International standards define 1000 (and not 1024) as order of magnitude for storage capacities as does Google storage calculator:
 

Google Storage Calc
Point is, the issue user is having is about the notation: 20M is not accepted by main.cf, you need to specify the exact number of kilobytes
The value you put in is of course up to you, be it 20480000 (postfix default value) or  20971520.
0
MichelangeloConsultantCommented:
Issue is about notation used in main.cf
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.