MailCatcher error env: catchmail: No such file or directory

I setup MailCatcher for a local PHP mails delivery but messages won’t get delivered. After googling, I found an error in Apache log:

env: catchmail: No such file or directory

Now, I figured out that I need to enter the full path to catchmail executable. I executed this command:

which catchmail

the output was: /usr/local/bin/catchmail

Then updated the php.ini sendmail_path entry to:

sendmail_path = /usr/bin/env /usr/local/bin/catchmail -f some@example.com

And restarted Apache, and emails started showing up in the MailCatcher window 🙂

Wesam Alalem

Web Developer, from Tripoli – Libya.

One thought on “MailCatcher error env: catchmail: No such file or directory

Leave a Reply

Your email address will not be published. Required fields are marked *