# Mail queue management

{% hint style="info" %}
**Manage Queues**

You can flush or pause Velocity MTA mail queues in the [IP Delivery Report](https://docs.emaildelivery.com/docs/velocity-mta-continuing-education/ip-delivery-reports).&#x20;
{% endhint %}

<figure><img src="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2FFDEU5gAyWGHoX3nrkNCu%2FScreenshot%202023-06-14%20at%202.07.47%20PM.png?alt=media&#x26;token=b73514fc-f131-4a9a-8499-8c16eeec8f5f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Select the mailbox provider and IP address you want to discard or pause mail for, then click the Manage Queues dropdown.&#x20;
{% endhint %}

<div align="left"><figure><img src="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2FrApVbP88mkL6YV5PT50H%2FScreenshot%202023-06-10%20at%204.58.58%20AM.png?alt=media&#x26;token=fb2925c9-4c2b-49ce-b079-6d4ca072d880" alt="" width="284"><figcaption></figcaption></figure></div>

{% hint style="info" %}
Discarding mail initiates a pause on the mail queue and deletes all newly injected mail during the discard process. Pausing the mail queue without a discard preserves all messages until the queue has been resumed.&#x20;
{% endhint %}

<div align="left"><figure><img src="https://2024949584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHNgw7cfnOYHQr0B6GDXr%2Fuploads%2FZlQTCqbD6jgBqrsU9py3%2FScreenshot%202023-06-10%20at%204.59.18%20AM.png?alt=media&#x26;token=f41d7642-42a2-450a-afbd-256ce68e270b" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}
Start monitoring the log file before you perform an action to see your changes take effect. In this case, we'll monitor a Discard, which will show all our recipients marked as SUPP for suppressed in the velvet log file.&#x20;
{% endhint %}

```
tail -f velocity-install/logs/velocity.log 
```

```
2023/06/12 04:48:51.269186 main.go:1039: :API:::172.16.50.1:49538 POST /settings
2023/06/12 04:48:51.270545 main.go:1136: :API:::Finished writing settings
2023/06/12 04:48:51.270620 main.go:605: 8K9cTRC5ymCEAGQJpZBjdp:SUPP:d@yahoo.com::message discarded
2023/06/12 04:48:51.271220 main.go:605: 8K9cTRC5ymCEAGQJpZBjdp:SUPP:m@yahoo.com::message discarded
2023/06/12 04:48:51.271604 main.go:605: 8K9cTRC5ymCEAGQJpZBjdp:SUPP:k@yahoo.com::message discarded
2023/06/12 04:48:51.271927 main.go:605: 8K9cTRC5ymCEAGQJpZBjdp:SUPP:p@yahoo.com::message discarded
2023/06/12 04:48:51.272253 main.go:605: 8K9cTRC5ymCEAGQJpZBjdp:SUPP:e@yahoo.com::message discarded
2023/06/12 04:48:51.272627 main.go:605: 8K9cTRC5ymCEAGQJpZBjdp:SUPP:s@yahoo.com::message discarded
2023/06/12 04:48:51.272946 main.go:605: 8K9cTRC5ymCEAGQJpZBjdp:SUPP:l@yahoo.com::message discarded

```

{% hint style="danger" %}
**You must click Resume when a Discard is complete or your mail queue will stay in a Discard state, permanently suppressing all newly injected mail.**&#x20;
{% endhint %}

{% hint style="info" %}
**Bypass Deferral**

If an IP address is waiting for an extended timeout period that was triggered by a deferral with a mailbox provider such as Yahoo and you want to test if the deferral condition has expired already, you can select bypass deferral to initiate an immediate delivery retry.&#x20;
{% endhint %}
