Solved Postfix - Server running out of storage

Hi,

I just realised that I am runnind low on storage because I have huge file been recorded in /var/spool/postfix/
Code:
1.5G    /var/spool/postfix/defer/E

1.5G    /var/spool/postfix/defer/7

1.6G    /var/spool/postfix/defer/0

1.5G    /var/spool/postfix/defer/B

422M    /var/spool/postfix/defer/F

1.6G    /var/spool/postfix/defer/4

1.6G    /var/spool/postfix/defer/3

1.6G    /var/spool/postfix/defer/9

1.6G    /var/spool/postfix/defer/A

1.7G    /var/spool/postfix/defer/C

1.7G    /var/spool/postfix/defer/1

1.7G    /var/spool/postfix/defer/6

1.7G    /var/spool/postfix/defer/D
[lot more bellow that]
Could anyone please tell me what this is and if it is safe for me to delete this files?
 
When I run mailq, i get the following:
Code:
572668B0C8   136925 Mon Feb 19 19:46:01  MAILER-DAEMON
(temporary failure. Command output: doveconf: Fatal: open(/usr/local/etc/dovecot/dovecot.conf) failed: Permission denied)
                                         opendmarc@mail.mydomain.co.uk
 
The postfix files you show are in deferred queue, which means that postfix has (temporarily) failed to deliver those mails, and will retry later. Please look at your postfix tools for managing mail queues and the mail logs, it will tell you in detail why the delivery failed so you can fix it.

I will guess that you haven't set a limit to attachment size for mails (or even mail size), if people try to send large mails and / or attachments through your mail server it will use up your disk space quickly.
 
tingo i don't normally manage the email so this is new to me..can you please tell me which tools you referring to?
I think we have a 20Mb file attachment limit
at the moment the zfs frag is above 76% and we started having serious performance issue
Thank you
 
phoenix , i have the following:
Code:
Feb 24 02:16:44 sophimail postfix/local[45095]: 5CD4444A52A: to=<opendmarc@sophimail.mydomain.co.uk>, relay=local, delay=361782, delays=361776/5.9/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: doveconf: Fatal: open(/usr/local/etc/dovecot/dovecot.conf) failed: Permission denied )

Feb 24 02:16:44 sophimail postfix/qmgr[37231]: 5321949D812: from=<>, size=104529, nrcpt=1 (queue active)
 
**UPDATE**
So I now have a mail server that is sensing and receiving email.. after running postsuper -d ALL
Straigh after all the mail quieis deleted, when I run mailq, I can see 260 messages in there. All complaining abooutfile permission
Code:
7F5512BAA4    52203 Sat Feb 24 19:55:34  MAILER-DAEMON
(temporary failure. Command output: doveconf: Fatal: open(/usr/local/etc/dovecot/dovecot.conf) failed: Permission denied)
                                         opendmarc@sophimail.mydomain.co.uk
and i can it the same error in /var/log/maillog
Code:
Feb 24 20:03:44 sophimail postfix/local[24747]: 554AE2FE71: to=<opendmarc@sophimail.mydomain.co.uk>, relay=local, delay=0.26, delays=0.26/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: doveconf: Fatal: open(/usr/local/etc/dovecot/dovecot.conf) failed: Permission denied )
ll /usr/local/etc/
Code:
drwxr-xr-x  4 vmail      dovecot        8 Feb 23 23:41 dovecot/
ll /usr/local/etc/dovecot/
Code:
-rw-r--r--  1 vmail  dovecot   116 Feb 23 23:41 README
drwxr-xr-x  2 vmail  dovecot    34 Feb 23 23:41 conf.d/
-rw-r--r--  1 vmail  dovecot   593 Feb 23 23:41 dovecot-dict-sql.conf.ext
-rw-r-----  1 vmail  dovecot  5806 Feb 23 23:41 dovecot-sql.conf.ext
-rw-r-----  1 vmail  dovecot  3718 Feb 23 23:41 dovecot.conf
drwxr-xr-x  3 vmail  dovecot     8 Feb 23 23:41 example-config/
qshape deferred | head
Code:
                                      T   5  10  20 40 80 160 320 640 1280 1280+
                              TOTAL 693 255 227 211  0  0   0   0   0    0     0
          sophimail.mydomain.co.uk 693 255 227 211  0  0   0   0   0    0     0
 
postcat -vq 7329B2F39E
return this
How can i stop email that cannot be sent to filling up my storage space. I tough that after a while it will give up and go away.. Am I wrong?
 
Looks like postfix is trying to deliver mail directly to dovecot, but isn't configured to use the correct user or group to do so.

Check the main.cf andmaster.cf config files for postfix. Look for any entries for dovecot and check the user/group is correctly set to vmail or dovecot.

Might want to find some "integrating postfix with dovecot" tutorials to learn how they should be setup. And compare it to your server.
 
Back
Top