What is the maximum size for attachment using unix mailx

JavaTec

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:

  1. How do I determine what is the maximum file size that can be sent as an attachment?
  2. How to change that size?
Varun Garg

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] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

what things i should know when using mailx command

来自分类Dev

使用mailx命令在UNIX中使用邮件发送附件

来自分类Dev

SpooledTemporaryFile: units of maximum (in-memory) size?

来自分类Dev

what's the windows equivalent of Unix `**`

来自分类Dev

Difference between mail and mailx?

来自分类Dev

从crond呼叫mailx

来自分类Dev

在Gmail中使用Mailx

来自分类Dev

What is the maximum length for keyword type in elasticsearch?

来自分类Dev

background-attachment:scroll和background-size:cover不起作用

来自分类Dev

CSS background-size:封面+ background-attachment:固定的剪辑背景图片

来自分类Dev

background-attachment:scroll和background-size:cover不起作用

来自分类Dev

What is echo.sock in the unix system?

来自分类Dev

邮件和mailx之间的区别?

来自分类Dev

如何配置mailx以支持Gmail?

来自分类Dev

使用mailx而不存储密码

来自分类Dev

无法使用 mailx 发送邮件

来自分类Dev

Changing group of a unix file using java

来自分类Dev

What's the maximum count of active websocket connections supported by tomcat 7.0

来自分类Dev

What's the best way to perform a parallel copy on Unix?

来自分类Dev

JavaScript 示例代码调用“Uncaught RangeError: Maximum call stack size exceeded”

来自分类Dev

非常简单的 Laravel + Vue 应用程序上的“Uncaught RangeError: Maximum call stack size exceeded”

来自分类Dev

使用mailx和uuencode发送附件

来自分类Dev

在Openelec,Raspberry PI上安装mailx

来自分类Dev

postfix和mailx如何与mbox锁定交互?

来自分类Dev

使用mailx和uuencode发送附件

来自分类Dev

ssl3 mailx和反弹

来自分类Dev

控制cron / mailx中的字符处理

来自分类Dev

查看邮件/ mailx中的邮件列表

来自分类Dev

mailx执行成功但未发送邮件

Related 相关文章

热门标签

归档