I am using RHEL 6.4. I have a script which runs in bash. The script sends an email using the command:
mailx -a report.txt "Monthly Report" "[email protected]" < messageBody.html
where report.txt
is a pipe separated text file. The size of this file is unknown; sometimes this file may contain just 10-15 records, on other days it may have millions of records.
Now my questions are:
To check maximum size on systems using postfix
as their mail transport agent, we can use the postconf
command.
postconf -d | grep message_size
It will show you the size in bytes. To change the value, Run
postconf -e 'message_size_limit = 20480000'
To make the changes effective, restart Postfix afterwards:
service postfix restart
(or equivalent on your system)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句