Postfix notes

From Helpful
Jump to: navigation, search
These are primarily notes
It won't be complete in any sense.
It exists to contain fragments of useful information.

Local-only setup

http://cafim.sssup.it/~giulio/other/Postfix_Setup_for_Local_Mail_Only.html


Inspecting and managing the queue

This article/section is a stub — probably a pile of half-sorted notes, is not well-checked so may have incorrect bits. (Feel free to ignore, fix, or tell me)

Inspect the queue (descriptions only):

mailq


Peek at mail:

postcat -q QueueID


Removing mail

postsuper -d QueueID

or a queue references:

postsuper -d deferred
postsuper -d ALL


I have a script containing:

for queueid in `mailq | egrep '^[A-Z0-9]' | cut -d ' ' -f 1 | tr '\n' ' '`; do 
   echo
   echo
   echo
   echo "------------------ "$queueid
   echo
   postcat -q $queueid
done

Errors

Error writing message: File too large

A postfix error that occurs when a user's mailbox is full.

Regularly caused by cronjob output, particularly when you get long and frequent email reports.


mailbox_size_limit and virtual_mailbox_limit may be relevant.

You can use

postconf | egrep '(mailbox_size_limit|virtual_mailbox_limit)'

...to see what size they are currently set at, which is probably 50MB.


Set this to a higher limit (in your .cf files), or even to 0 to remove limits.