大网数据广告活动
服务器运维问答

Postfix config doesn't change (even after a service restart)

· 52CE 我爱测

I need to send emails with attachments. It used to work great, but the attachments are getting too big and I need to increase the message size. I added message_size_limit = 20480000 in /etc/postfix/main.cf and did service postfix…

问题原文

原帖链接 · Jachinair · CC BY-SA 3.0

I need to send emails with attachments. It used to work great, but the attachments are getting too big and I need to increase the message size.

I added message_size_limit = 20480000 in /etc/postfix/main.cf and did service postfix restart.

But when I do postconf -d | grep size the message_size_limit is still at its previous value.

I don't really know what to do now.

Can you help in any way? Thank you.

已采纳解答

原帖链接 · Khaled · CC BY-SA 3.0

If you want to get the actual value, you need to use the following command:

$ postconf | grep size

Adding -d option will show you the default values.

I quoted this from man postconf:

-d Print main.cf default parameter settings instead of actual settings. Specify -df to fold long lines for human readability (Postfix 2.9 and later).

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-02-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。