Tuesday, October 23, 2007

postfix - mailbox size limit and message size limit

postfix is my MTA of choice. I use it for my mailserver because its simplicity , security and sendmail-compatible (the widely used smtp in the world but not as secure). It is also extensible by plugging other servers for various purposes (antispam, antivirus,database etc).

I had one problem with file attachment larger than 10MB. Users couldn't send it although I have setup squirrelmail (SM) to be able to attach files summed up more than 20MB and I had modified php settings as per here. The problem was not in SM setting. It was postfix. By default, attachment size that can be sent by postfix is 10MB ~ 10240000 byte. How did I know it? I looked in log file (for my system it is in /var/log/mail/errors. For other system, the file to look is /var/log/maillog). The line looked like this:

Feb 26 16:30:53 webmail postfix/sendmail[30775]: fatal: me@mymailserver.org(74): Message file too big

Solution

Open /etc/postfix/main.cf with a text editor of choice and find message_size_limit directive and change accordingly. If it is not there, add the directive like this:



message_size_limit = 20480000

This sets limit to 20MB. reload or restart postfix when you're done:

service postfix reload

or

service postfix restart

There's also mailbox_size_limit directive. You need to change this if SM can not open mailbox sized more than 10 MB.

reference :
http://www.tek-tips.com/viewthread.cfm?qid=1073614&page=1

126 comments:

  1. pác cho em xin 1 cái invte luôn nhé,cảm ơn nhìu lắm

    ReplyDelete
  2. hi minh cung mun dia chi minh la:nguoivuitinh@yahoo.com

    ReplyDelete
  3. Cho tớ với nhé bạn
    Bosshair2002@yahoo.com
    thank you

    ReplyDelete
  4. Bạn cho mình xin 1 cái nhé ... Y!M mình là kbb_net@yahoo.com.vn

    ReplyDelete
  5. cam on ban nhieu lam

    ReplyDelete
  6. ban invite minh voi , email: huyquang_bkdtkd@yahoo.com

    ReplyDelete
  7. ch0a em kaj' invite m0y'!! njck ye hu!! uyenluu93

    ReplyDelete
  8. ban co the gui invite yahoo mash cho minh duoc khong. mail: theninh260286@yaoo.com Cam on nhieu!

    ReplyDelete
  9. Goi invite cho minh voi!!!! mail: vitconvotam_tky@yahoo.com
    Cam on ban nhieu!!!^____^

    ReplyDelete
  10. cho mình xin cái invite nhé, dc mail mình là: chodombang@yahoo.com
    thank nhìu nhìu!

    ReplyDelete
  11. cho mình xin cái invite nhé, thank nhìu nhìu!

    ReplyDelete
  12. cho mình một cái invite nhé, mail: hoanglh1111@yahoo.com, thx u 4 advance!

    ReplyDelete
  13. mail em là snowangel0112@yahoo.com nè.Anh chị send choa em 1 cáj để em check in ná :D thanks nhjù nhjù

    ReplyDelete
  14. bạn gởi dùm mình nhé: davangs@yahoo.com. Cảm ơn bạn thiệt nhiều...

    ReplyDelete
  15. comment voi ban: leviethoa212@yahoo.com

    ReplyDelete
  16. Ban Giup Minh nhe.cam on ban nhiu nhiu.
    dacduong217@yahoo.com

    ReplyDelete
  17. anh tặng em một cái đi sao em gửi mãi ko đựoc

    ReplyDelete
  18. gui cho minh mot invite nha! thanhk very much!!

    ReplyDelete
  19. ban invite YM gium minh nghen . thank u nhiu lem

    ReplyDelete
  20. invite Yahoo! Mash cho minh` nha ban nickname cua minh` la cocsau_06@yahoo.com

    ReplyDelete
  21. bác ơi, bác invite yahoo mash cho em với nhe. Yahoo của em là sangkhoaicungsilanh_ok@yahoo.com. Thanks bác nhiều lắm.....

    ReplyDelete
  22. toi cung muon dc invite yahoomash nua giup tooi voi
    mail toi ne x0xdeath_princex0x@yahoo.com

    ReplyDelete
  23. Ban oi invite minh vao Yahoo!Mash voi. Thanks ban nhieu.
    Email cua minh: baoanh314@yahoo.com

    ReplyDelete
  24. ban cho minh xin 1 cai lun nha cum on ban nhieu nha
    yahoo:xlx_a2u_xlx@yahoo.com
    cam on ban truoc nha

    ReplyDelete
  25. bạn gởi dùm mình nhé: darkzai102@yahoo.com. Cảm ơn bạn thật nhiều…

    ReplyDelete
  26. cam? on nhiu` nha

    ReplyDelete
  27. bac' ui ,invite em cai' :sweetdreams174tl@yahoo.com

    ReplyDelete
  28. Ban invite Yahoo Mash gi’up minh nha, thanks ban! Mail min la tiengsetaitinh_87st@yahoo.com

    ReplyDelete
  29. ban cho minh xin invite, Yahoo! Mash

    ReplyDelete
  30. Bạn cho mình xin cái invite Yahoo!Mash nha
    Cám ơn bạn nhiều

    ReplyDelete
  31. cho tớ xin cái invite nửa nhé, cám ơn bạn nhiều nè!, mail của mình nà: meteoryrain_2203@yahoo.com

    ReplyDelete
  32. anh invite em nhe' lazy_baby_92@yahoo.com

    ReplyDelete
  33. cho minh xin mot cai invite, Yahoo! Mash voi
    thanks nhiu`

    ReplyDelete
  34. mail cua minh ne` kevjnnash@yahoo.com

    ReplyDelete
  35. giup' minh` invite dj. kitanana_hamano_asari@yahoo.com
    cam? on truoc' nha .

    ReplyDelete
  36. duys_winter279@yahoo.com
    day la mail cua minh`

    ReplyDelete
  37. ban invite minh voi nhe
    cam on ban nhieu

    ReplyDelete
  38. invite mình với nhen bạn ^^
    mail của mình cakeo123@gmail.com hoặc prettybaby01082002@yahoo.com
    cám ơn bạn nhìu ^^

    ReplyDelete
  39. invite minh voi' nha ban thanks ban nhiu` nha
    mail cua minh` ne` p3_kute_q8@yahoo.com
    cam' on ban nhiu` nha

    ReplyDelete
  40. invite em voi anh oi!!!!!!!! com on anh nhieu`

    ReplyDelete
  41. invite em voi anh oi !!! mail cua em day spider_man299dn@yahoo.com cam on anh nhieu` !!!

    ReplyDelete
  42. hi , ban cho kenzei xin invite nhe , email cua kenzei la` cobenhinhanh_nd3@yahoo.com
    Thanks ban nhiu` lam

    ReplyDelete
  43. cho em xin 1 invite với mail của em là : imissyou_because_iloveyou_164@yahoo.com
    Thack lun

    ReplyDelete
  44. Anh oi invite cho em cai' Yahoo mash nhe', mail cua em là finalfantasy19vt@yahoo.com
    Em cam' on rat' nhieu`

    ReplyDelete
  45. invite mình với nhé.

    ReplyDelete
  46. invite cho em cai mash nha anh thank anh nhieu . Mail cua em ne` e_ver_las_ting@yahoo.com

    ReplyDelete
  47. invite giúp em kái náz …thx mếy pác nhìu …kòn đêy là email của em nè luv_u_4ever_205@yahoo.com

    ReplyDelete
  48. invite giúp em kái náz ...thx mếy pác nhìu ...kòn đêy là email của em nè luv_u_4ever_205

    ReplyDelete
  49. ban invite cho mình nhé thz bạn nhìu
    rko_1611@yahoo.com

    ReplyDelete
  50. kate_hotgirl2006@yahoo.com
    thank ná

    ReplyDelete
  51. Ban co the gui invite yahoo mash cho minh duoc khong...Cam on ban!

    ReplyDelete
  52. Ban co the gui invite yahoo mash cho minh duoc khong , day la meil cua minh minhducphung8788@yahoo.com...Cam on ban!Chuc ban vui ve!

    ReplyDelete
  53. badboy55_2910@yahoo.com Thax ban nhe'!!!

    ReplyDelete
  54. tmtuan23384@yahoo.com. With great thanks!

    ReplyDelete
  55. invite cho em 1 cai dey thanks nhieu`
    YM taola_conmatao@yahoo.com

    ReplyDelete
  56. cho minh 1 cai invite nha!cam on

    ReplyDelete
  57. cho minh 1 cai invite nha!cam on

    ReplyDelete
  58. bac cho minh xin invite, invite Yahoo! Mash voi nha
    cam on bac nhieu

    ReplyDelete
  59. anh zai ui cho em cái invite yahoo!mash được kô? cảm ơn anh hê.

    ReplyDelete
  60. anh ơi anh cho em cái invite yahoo!mash được kô ạh

    ReplyDelete
  61. yahoo la gangster_baby89@yahoo.com oki

    ReplyDelete
  62. tang minh 1 cai' yahoo mash nha ban dep zai ^^

    ReplyDelete
  63. Hai An ah invite cho minh` voi nha.cam' on ban nhiu` nhiu`nha. Y!M minh :traitim_fe@yahoo.com

    ReplyDelete
  64. invite cho minh voi bannhe!

    ReplyDelete
  65. Anh An invite giup' e nha anh. Thanks anh nhiu` na(m'.

    ReplyDelete
  66. pan oi cho to 1 cai invite lun nhe'. nick minh la p3_2uy3n@yahoo.com
    Cam on pan nhiu lem' ^_^!

    ReplyDelete
  67. Lam on cho em mot invite di cac bac, em xin cam on truoc!!!

    ReplyDelete
  68. hjx ... Lam` on guj cho to' cai' invite na' ! hihi

    ReplyDelete
  69. ban invite minh nha
    hoahuongduong133@yahoo.com

    ReplyDelete
  70. mếy pác cho iem xin kái invite dzới ạh ...email iem lè luv_u_4ever_205@yahoo.com thx mếy péc trc' áz >''<

    ReplyDelete
  71. RAnh thi invite jup em nhe!!!

    ReplyDelete
  72. cho minh xin mat cai invite luon nha dia chi :codontiengsong_2508@yahoo.com
    thank

    ReplyDelete
  73. cho minh mot cai voi mail cua minh la fanthinthinfan@yahoo.com

    ReplyDelete
  74. Bạn ơi cho mình xin một "invite, Yahoo! Mash" nhé. Gởi vào địa chỉ email của mình canhhongleloi1@yahoo.com. Cảm ơn nhiều nha.

    ReplyDelete
  75. ec!invite yahoo mash cho minh duoc ko?
    mail la :hongtrang_rus@yahoo.com

    ReplyDelete
  76. cho xin cai invite Mash nghen..thanx nhiu`

    ReplyDelete
  77. Cho xin cai invite nha: lovelovelove_socola_forever@yahoo.com

    ReplyDelete
  78. cho minh xin 1 cai invite nhe ! mail minh la` end_love710@yahoo.com , thanhk ban nhiu` na` ^oo^

    ReplyDelete
  79. Hi!
    Cho minh xin cai invite yahoo mash duoc khong?
    Dia chi mail cua minh la aluckystars@yahoo.com
    thank you so much!

    ReplyDelete
  80. minh dang can invite,yahoo!mash,cho minh xin co duoc khong?cam on ban nhieu nhieu.kiephoahong_bl_85@yahoo.com day la mail cua minh.

    ReplyDelete
  81. mình đang muốn chuyển sang mash làm ơn gửi cho mình invite,yahoo!mash được không?cám ơn truocs nhé mail của mình đây as_passionate_as_young_love@yahoo.com.vn

    ReplyDelete
  82. chan' ghe^ cha? hiu? sao Yahoo lai. du*ng` 360 blog !Mong ban. gu*i? "invite" cho mik naz!thanks ban nhiu`!!!

    ReplyDelete
  83. we^n ma^t' hok de^? lai. dia. chi?!!!

    ReplyDelete
  84. cho em xin 1 cái invite!ths nhiu`!!!

    ReplyDelete
  85. í wen^ ko de meo lai: loicauhonthuhai_myun

    ReplyDelete
  86. cho em cai invite: loicauhonthuhai_myun@yahoo.com

    ReplyDelete
  87. ^^ cho iem xin kaj1 invite của yahoomash nha'^^:XXX

    ReplyDelete
  88. cho iem kaj invite YM ve^` mail: ly_na60@yahoo.com nha^^

    ReplyDelete
  89. em muon dc 1 invite : ly_na60@yahoo.com ths

    ReplyDelete
  90. cho em xin 1 cái invite cua yahoo mash: dinh_tuan_101@yahoo.com thanks

    ReplyDelete
  91. ban invite cho minh voi' !! thank truoc

    ReplyDelete
  92. ban invite cho minh voi' (vu_vip_pr0@yahoo.com) thank truoc'

    ReplyDelete
  93. cho mình invite nhen!thanks

    ReplyDelete
  94. cho minh` xin mot cai invite:small_girl_vt14@yahoo.com.vn.thanks

    ReplyDelete
  95. pan oi choa minh xin cai invite nhoa cum on truoc na`^^.nick yahoo minh la monapthungracloianhxuongduoi2008@yahoo.com

    ReplyDelete
  96. a my nick is viphan1219@yahoo.com

    ReplyDelete
  97. please invite me on Yahoo! Mash.I don't know how to log in....thanks....

    ReplyDelete
  98. cho mi`nh xin ca'i invinte nha, thanks nhiu

    ReplyDelete
  99. cho mi`nh xin ca'i invinte nha, thanks

    ReplyDelete
  100. cho mình xin cái invinte mash hen,...thank nhìu....
    nick mình : i_will_always_love_you16@yahoo.com

    ReplyDelete
  101. A, quen, mail cua minh la vuhuutiep@gmail.com

    ReplyDelete
  102. Minh muon duoc nhu ban, mun duoc moi nguoi gui thu nho invite nhu ban!
    ban co cam thay met vi nhieu nguoi gui tin qua khong?
    Minh co the chia se cung ban day, hay invite minh nhe! Cam on ban nhieu!!

    ReplyDelete
  103. anh ban cho toi lam quen voi yahoo mash nhe.chan thanh cam on.

    ReplyDelete
  104. gởi cho mình 1 cái được không nà, cảm ơn trước

    ReplyDelete
  105. loveisblue694@yahoo.comMarch 15, 2008 at 7:29 AM

    cho 1 mình cái nhé

    ReplyDelete
  106. vampire_knight1010March 19, 2008 at 9:57 AM

    ban o*i cho to*' xin kai invite dc hem??? mail:vampire_knight1010@yahoo.com

    ReplyDelete
  107. XIN TANG CHO MINH MOT INVITE NHA.CAM ON
    (NGUOI YEU TIENG VIET)

    ReplyDelete
  108. MINH MONG CAC BAN GIUP MINH NHA .CAN ON

    ReplyDelete
  109. XIN TANG CHO MINH MOT INVITE NHA .CAM ON CAC BAN NICK CUA MINH LA "FXQUY"
    (NGUOI YEU TIENG VIET"

    ReplyDelete
  110. ban oi gui invite minh moi nha
    cam on nhieu lam day nha
    khattinh_26061988@yahoo.

    ReplyDelete
  111. khattinh_26061988@yahoo.com
    gui cho minh luon nha

    ReplyDelete
  112. Gửi cho em luôn nhé!
    Cám ơn anh rất nhiều!!!

    ReplyDelete
  113. Zz_rapper_hieuken_zZ@yahoo.com
    Gửi cho em luôn nhé!
    Cám ơn anh rất nhiều!!!

    ReplyDelete
  114. thanks nhJu nha !!!!!!!!!

    ReplyDelete
  115. cam on nhju` lam sinhnhatkocoanh2003@yahoo.com

    ReplyDelete
  116. ban cho minh invite, Yahoo! Mash nha.Thanks.

    ReplyDelete