Is the NCP docker image able to send email out of the box?

Is the NextcloudPi docker image able to send emailf from within Nextcloud?
When I go to settings->Basic settings -> Email server and use the sendmail option and try to send a test email it says Email sent, however there is no email received at the speciefied address of the nextcloud administrator.
Is this docker image able to send emails with sendmail out of the box?
Are there more configuration to be considered to get it work?

Sending mails directly is often blocked due to spam. So you probably have to send mails to a properly configured mailserver. Is there nothing in the documentation of NCP?

There is not much information about email in the ncp docs. For the php approach it says:

In Email server area of Additional settings select PHP as the Send mode and simply add the email of which you want to shown as the sender of the receiving emails.

For me it sounds as they configured the mail server. But maybe @nachoparker knows more about this topic.

@nachoparker can you provide more information on this topic?

hi,
did you get it to work ? if so i am interested in how you did that !

from what i tried on my setup (ncp 1.26.2 + sendmail), even if you use sendmail via command line from a bash inside the container, the mail never reaches destination. the error seen in the delivery report is “unknown mail transport error”. i tried to map port 25 on my ncp container, as per a nacho parker comment on another thread in this forum, but i am still getting this error. so it seems something else is preventing the mail to get out of the container ?

thanks for your help !

Afaik ncp uses postfix and configure’s it to send mail.
I have also done this manually on other servers using this tutorial
Not sure if or how this 'll work for a docker container tho.