Abr*_*egh 6 postfix debian-squeeze
最后结果
我通过将我的xvda
分区从 700MB调整到 10GB解决了这个问题。我使用 Linode 的控制面板来做到这一点,其中包括关闭 VPS,运行调整大小操作,然后重新启动它。非常感谢所有提供见解和解决方案的人;他们都很有帮助,很有帮助。
原问题
我正在运行 Postfix 作为我的 MTA,它随机决定停止接收传入的电子邮件:
Sep 14 07:50:26 zulu postfix/smtpd[27946]: warning: not enough free space in mail queue: 6832128 bytes < 1.5*message size limit
Run Code Online (Sandbox Code Playgroud)
在我的postconf
:
message_size_limit = 10240000
queue_minfree = 25000000
Run Code Online (Sandbox Code Playgroud)
发送到我系统的所有邮件都被拒绝452 4.3.1 Insufficient system storage
。
我对分区和相关魔法知之甚少,我只知道 Postfix 似乎告诉我它没有空间,而实际上我的系统有足够的空间:
最后,Postfix还在向我的postmaster@
帐户发送失败通知,所以我真的很不知所措。
编辑
root@zulu:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda 679M 644M 6.9M 99% /
tmpfs 249M 0 249M 0% /lib/init/rw
udev 10M 112K 9.9M 2% /dev
tmpfs 249M 0 249M 0% /dev/shm
Run Code Online (Sandbox Code Playgroud)
据我所知,邮件队列存储在/var/spool/postfix
. 我不完全确定如何确定这是否正确,但似乎是正确的:
root@zulu:/var/spool/postfix# ls -al
total 84
drwxr-xr-x 21 root root 4096 Sep 6 13:58 .
drwxr-xr-x 4 root root 4096 Sep 6 06:55 ..
drwx------ 2 postfix root 4096 Sep 14 08:37 active
drwx------ 2 postfix root 4096 Sep 13 13:19 bounce
drwx------ 2 postfix root 4096 Sep 6 06:55 corrupt
drwx------ 3 postfix root 4096 Sep 12 06:13 defer
drwx------ 3 postfix root 4096 Sep 12 06:13 deferred
drwxr-xr-x 2 root root 4096 May 4 17:30 dev
drwxr-xr-x 3 root root 4096 Sep 14 07:37 etc
drwx------ 2 postfix root 4096 Sep 6 06:55 flush
drwx------ 2 postfix root 4096 Sep 6 06:55 hold
drwx------ 2 postfix root 4096 Sep 14 08:37 incoming
drwxr-xr-x 2 root root 4096 Sep 14 07:37 lib
drwx-wx--T 2 postfix postdrop 4096 Sep 8 21:41 maildrop
drwxr-xr-x 2 root root 4096 Sep 12 06:13 pid
drwx------ 2 postfix root 4096 Sep 14 07:37 private
drwx--s--- 2 postfix postdrop 4096 Sep 14 07:37 public
drwx------ 2 postfix root 4096 Sep 6 06:55 saved
drwx------ 2 postfix root 4096 Sep 6 06:55 trace
drwxr-xr-x 3 root root 4096 Sep 6 06:55 usr
drwxr-xr-x 3 root root 4096 Sep 6 13:58 var
Run Code Online (Sandbox Code Playgroud)
磁盘:
root@zulu:/# fdisk -l /dev/xvda
Disk /dev/xvda: 734 MB, 734003200 bytes
255 heads, 63 sectors/track, 89 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/xvda doesn't contain a valid partition table
Run Code Online (Sandbox Code Playgroud)
我可能应该注意到这是一个 Linode VPS。
您显示大量空间的原因是因为您的 linode 图像大小为 956mb,而您的帐户总共有 20gb。因此,您的实际服务器大小仅为 956mb(目前可用空间为 6.9mb)。要解决-关闭您的 linode 实例,请调整图像大小以使用更多帐户(建议全部使用,除非您需要运行其他图像)。