# Restart email service

**URL:** <https://forums.vitalpbx.org/t/restart-email-service/1092>\
**Category:** VitalPBX\
**Created:** [March 17, 2022, 3:39pm UTC](https://forums.vitalpbx.org/t/restart-email-service/1092 "2022-03-17T15:39:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)\
**Post date:** [March 17, 2022, 3:39pm UTC](https://forums.vitalpbx.org/t/restart-email-service/1092/1 "2022-03-17T15:39:20Z")

</div>

A few days ago my server stopped sending emails, is there away to restart the email service without rebooting the system.

Thanks,

---

<div class="post-metadata">

**Author:** ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)\
**Post date:** [March 17, 2022, 3:49pm UTC](https://forums.vitalpbx.org/t/restart-email-service/1092/2 "2022-03-17T15:49:23Z")

</div>

VitalPBX uses Postfix under the hood, so restarting the Postfix service should help.

```auto
systemctl restart postfix.service

```

---

<div class="post-metadata">

**Author:** ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)\
**Post date:** [March 17, 2022, 4:02pm UTC](https://forums.vitalpbx.org/t/restart-email-service/1092/3 "2022-03-17T16:02:22Z")

</div>

I would first check if they are stuck in the queue. You can do so with:

```auto
mailq

```

If there are emails stuck in the queue, try to flush it.

```auto
postfix flush

```

If you just want to discard those emails then

```auto
postsuper -d ALL

```

Like José said, it’s recommend to restart the service after the queue is empty.  
I also suggest reviewing the maillog to understand what went wrong. Otherwise, this issue may occur again.

---

<div class="post-metadata">

**Author:** ![GaryC](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@GaryC](https://forums.vitalpbx.org/u/GaryC)\
**Post date:** [March 17, 2022, 4:31pm UTC](https://forums.vitalpbx.org/t/restart-email-service/1092/4 "2022-03-17T16:31:53Z")

</div>

Thanks for your help. The service was not running.

mailq  
postqueue: warning: Mail system is down – accessing queue directly

I did, postsuper -d ALL then systemctl restart postfix.service and it’s now working.

---

<div class="post-metadata">

**Author:** ![system](https://forums.vitalpbx.org/uploads/default/original/1X/672b458a1d454755270c2c16adc5316b641c3c6a.png) [@system](https://forums.vitalpbx.org/u/system)\
**Post date:** [April 16, 2022, 4:32pm UTC](https://forums.vitalpbx.org/t/restart-email-service/1092/5 "2022-04-16T16:32:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
