1# Local queue23Queue module buffers messages on disk and retries delivery multiple times to4another target to ensure reliable delivery.56It is also responsible for generation of DSN messages7in case of delivery failures.89## Arguments1011First argument specifies directory to use for storage.12Relative paths are relative to the StateDirectory.1314## Configuration directives1516```17target.queue {18 target remote19 location ...20 max_parallelism 1621 max_tries 422 bounce {23 destination example.org {24 deliver_to &local_mailboxes25 }26 default_destination {27 reject28 }29 }3031 autogenerated_msg_domain example.org32 debug no33}34```3536### target _block_name_37**Required.** <br>38Default: not specified3940Delivery target to use for final delivery.4142---4344### location _directory_45Default: `StateDirectory/configuration_block_name`4647File system directory to use to store queued messages.48Relative paths are relative to the StateDirectory.4950---5152### max_parallelism _integer_53Default: `16`5455Start up to _integer_ goroutines for message processing. Basically, this option56limits amount of messages tried to be delivered concurrently.5758---5960### max_tries _integer_61Default: `20`6263Attempt delivery up to _integer_ times. Note that no more attempts will be done64is permanent error occurred during previous attempt.6566Delay before the next attempt will be increased exponentially using the67following formula: 15mins * 1.2 ^ (n - 1) where n is the attempt number.68This gives you approximately the following sequence of delays:6918mins, 21mins, 25mins, 31mins, 37mins, 44mins, 53mins, 64mins, ...7071---7273### bounce { ... }74Default: not specified7576This configuration contains pipeline configuration to be used for generated DSN77(Delivery Status Notification) messages.7879If this is block is not present in configuration, DSNs will not be generated.80Note, however, this is not what you want most of the time.8182---8384### autogenerated_msg_domain _domain_85Default: global directive value8687Domain to use in sender address for DSNs. Should be specified too if 'bounce'88block is specified.8990---9192### debug _boolean_93Default: `no`9495Enable verbose logging.