当前位置:Linux教程 - Linux文化 - 设置sendmail拒收大邮件

设置sendmail拒收大邮件


> ------------------------------------------------------------------------ <
Mlocal, P=/bin/mail, F=lsDFMrmn, S=10, R=20/40,
Maxsize=1000000,
A=mail -d $u
Mprog, P=/usr/local/sendmail/smrsh, F=lsDFMeu, S=10, R=20/40, D=$z:/,
Maxsize=1000000,
A=sh -c $u
> ------------------------------------------------------------------------ <

This limits incoming mail processed by by smrsh and /bin/mail to 1 million
bytes.
这样就限制了最大邮件为1M。

You can do the same with the Mstmp, Mesmtp, and Mrelay statements to limit
the size of outgoing mail as well.