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" "business@user.com" < 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:
- How do I determine what is the maximum file size that can be sent as an attachment?
- How to change that size?
MUA
, It's depend on yourMTA
.postconf -d | grep message_size
which provided me the size on the box.