Iâm quite new to nextcloud and just set up my own server a few days ago.
I want to download mails (especially attachements) to a specific folder with files_frommail. I followed the description written here https://github.com/nextcloud/files_frommail.
If I got it right, I have to place the Script âNextcloudMailCatcher.phpâ on a mailserver and tell it to send mails for a specific receipient to it. The script then places the mail in my nextcloud.
Unfortunately I have no acces to the mailserver, because it is from a provider.
My first approach was to use the Mail-App. But I could not get it working with our providers special settings.
So now my plan is to retrieve the mails per smtp from the mailserver and let then the php script handle the rest on the nextcloud server itself.
Is this possible? If yes, how? Or is there a better way to achieve this.
Thanks for your hint. I already had a feeling, that fetchmail would be a good choice. I only wasnât sure, if is still secure and good for using it in such an environment.
I installed it now, but I still need some help for getting it to work. I followed this guide using Webmin. But Iâm not sure what good and meaningful settings would be.
I have setup a mailserver with modoboa, working with an email account test@domain.com.
I can send and receive with modoboa with no problem. I have been able to setup a nextcloud account for test@domain.com and on the mailserver, if I run :
php -f ./NextcloudMailCatcher.php test
testing!
Generate curl request to https://domain.com/nextcloud/index.php/apps/files_frommail/remote with username âtestâ
Content-Length: 12 (0MB)
Mail forwarded, result was [âokâ].
But now Iâm lost, how to get the email account to auto-save documents to a specific folder?!
Thanks @alfred and @Berik for your contributions. Meanwhile I had and still have to deal with some other challenges of more importance. Nextcloud is a project on the side.
I will have a closer look at your suggestions in a few days and reply if this helped me.