# Mautic says 'emails sent', but nothing has actually gone out

**URL:** <https://forum.mautic.org/t/mautic-says-emails-sent-but-nothing-has-actually-gone-out/27811>\
**Category:** Product Support\
**Created:** [April 24, 2023, 9:00pm UTC](https://forum.mautic.org/t/mautic-says-emails-sent-but-nothing-has-actually-gone-out/27811 "2023-04-24T21:00:50Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![modifiedcontent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/modifiedcontent/32/511_2.png) [@modifiedcontent](https://forum.mautic.org/u/modifiedcontent)\
**Post date:** [May 14, 2023, 12:45pm UTC](https://forum.mautic.org/t/mautic-says-emails-sent-but-nothing-has-actually-gone-out/27811/8 "2023-05-14T12:45:50Z")

</div>

Line 141 in ProcessEmailQueueCommand.php is the following:

```auto
        //set spool message limit
        if ($msgLimit = $input->getOption('message-limit')) {
            $commandArgs['--message-limit'] = $msgLimit;
        } elseif ($msgLimit = $container->getParameter('mautic.mailer_spool_msg_limit')) {
            $commandArgs['--message-limit'] = $msgLimit;
        }

```

I don’t see `rename()` there, so where does that come in? What does ‘supplied resource is not a valid Stream-Context resource’ mean? How does this work together?

I have not made any changes to message limits configuration btw; sending worked fine before with the same settings.

[Here’s another one](https://forum.mautic.org/t/unable-to-send-queue-emails/21168/2) with the same error message. Unfortunately @mindeswx’s solution there does not work for me; I have always had that ‘Use owner as mailer’ setting set to ‘No’.

I guess to use `ls | wc` you have to change directory to the spool folder first? That is why I got unexpected results earlier I guess.

Where is the spool folder? Here according to Google:

> You should find it in either **/var/spool/mail/** (the traditional location) or /var/mail (new recommended location).

Could it be that the spool folder on my VPS was changed in an upgrade and that Mautic now can’t find the folder?

Result of `ls | wc` on /var/spool/mail/ is `0 0 0 `

Result of `ls | wc` on /var/mail/ is also `0 0 0 `

In both cases I would expect two emails that Mautic claims have been sent, but never arrived (in my test email boxes).

---

_[View the full topic](https://forum.mautic.org/t/mautic-says-emails-sent-but-nothing-has-actually-gone-out/27811)._
