Cannot send mail from LAMP app
andres.moya last edited by
I'm trying to configure a php application installed into a LAMP app in cloudron, to send emails.
I'm following instructions here and have typed the "cloudronmail" function as stated there. But it does not send any email. I have added traces to see the commands executed and the responses, and there are (i've edited out the personal information):
helo <some identifier> > 220 my.example.com ESMTP Haraka/2.8.28 ready mail from: email@example.com > 250 my.example.com Hello <some identifier>.cloudron [172.18.16.4]Haraka is at your service. rcpt to: firstname.lastname@example.org > 250 sender <email@example.com> OK data > 550 I cannot deliver mail for <firstname.lastname@example.org> To: email@example.com (...) > 503 RCPT required first quit > 500 Unrecognized command
The address "firstname.lastname@example.org" is a valid address of one of the cloudron users (although i think this should not be necessary).
Do you have any clue? Don't understand why it "cannot deliver mail" for this address. Thanks.
@andres-moya the example in the docs seems wrong because it doesn't send use SMTP auth at all. Let me try to fix up the example tomorrow. The
CLOUDRON_MAIL_SMTP_PASSWORDenv variables must be used.