ihp icon indicating copy to clipboard operation
ihp copied to clipboard

IHP Cloud: `sendmail: createProcess: posix_spawnp: does not exist (No such file or directory) `

Open anarchuser opened this issue 3 years ago • 5 comments

I've tried to get the example mail code from the Guide to run. I'm using SendGrid as described. It works flawlessly with my local development instance but deploying it over IHP Cloud throws a generic error message when trying to send. The logs show this error message:

sendmail: createProcess: posix_spawnp: does not exist (No such file or directory)

anarchuser avatar Nov 17 '21 13:11 anarchuser

Thanks for reporting this 👍 Did you add sendmail as a dependency in default.nix?

mpscholten avatar Nov 17 '21 19:11 mpscholten

Thanks for the quick response! Adding sendmail to default.nix like this:

    otherDeps = p: with p; [
        sendmail
    ];

leads to this compile time error:

error: undefined variable 'sendmail'

I'm going to check if there is some other package missing. It seems to know about sendmail but missing a subdependency

anarchuser avatar Nov 17 '21 20:11 anarchuser

Try mailutils instead of sendmail as the Package Name

mpscholten avatar Nov 17 '21 20:11 mpscholten

With mailutils the project compiles but the error still remains

anarchuser avatar Nov 17 '21 21:11 anarchuser

Until a solution is found for this, I'm looking for a workaround. I have been able to send mails from SendGrid via sendgrid-v3. Is there a way for me to create confirmation tokens for account confirmation myself?

anarchuser avatar Nov 18 '21 13:11 anarchuser

Clsoing as IHP Cloud was shutdown

mpscholten avatar Mar 03 '23 19:03 mpscholten