|
Below are some Postfix setting that you can further fine
tuning Mail Queue to suit your environment.
queue_run_delay (default: 1000 seconds)
How often the queue manager scans the queue for deferred mail.
our setting : 300 seconds
maximal_queue_lifetime (default: 5 days)
How long a message stays in the queue before it is sent back as
undeliverable. Specify 0 for mail that should be returned immediately
after the first unsuccessful delivery attempt. However, please avoid to
use 0 as sometimes some mail gateway might implement greylisting. You
can specify minutes (m), hour (h) or day (d).
our setting :1 day
minimal_backoff_time (default: 1000 seconds)
The minimal amount of time a message won't be looked at, and the
minimal amount of time to stay away from a "dead" destination.
our setting: 300s
maximal_backoff_time (default: 4000 seconds)
The maximal amount of time a message won't be looked at after a
delivery failure.
our setting: 1800s
You can obtain information of Postfix default by using "postconf
-d".
#postconf -d | grep maximal
maximal_backoff_time = 4000s
maximal_queue_lifetime = 5d
|
#postconf -d | grep minimal
minimal_backoff_time = 300s |
#postconf -d | grep queue
bounce_queue_lifetime = 5d
hash_queue_depth = 1
hash_queue_names = deferred, defer
maximal_queue_lifetime = 5d
queue_directory = /var/spool/postfix
queue_file_attribute_count_limit = 100
queue_minfree = 0
queue_run_delay = 300s
queue_service_name = qmgr
|
#postconf -d | grep vrfy
disable_vrfy_command = no |
Now, let us perform some tuning to the Postfix. For your
information "postfix -e" is to edit the Postfix setting
postconf -e
maximal_queue_lifetime='1d'
postconf -e bounce_queue_lifetime='1d'
postconf -e queue_run_delay='300s'
postconf -e minimal_backoff_time='300s'
postconf -e maximal_backoff_time='1800s'
postconf -e disable_vrfy_command='yes'
|
Please restart postfix after apply the new setting.
If you faced any issue please check your /var/log/maillog
|