You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Files From Mail** allow an admin to link a drop-mailbox to Nextcloud.
4
+
This way, you can set a mail address (_files@example.net_ in our example) and every mails+attachments send to this mail address will be automatically be saved on the cloud.
This app will need [Mailparse](http://php.net/manual/en/book.mailparse.php)
14
+
If not already installed on your server:
4
15
5
16
```
6
-
pecl install mailparse
17
+
$ sudo pecl install mailparse
7
18
```
8
19
9
-
if fail:
20
+
If the installation failed with a message about mbstring not installed (but mbstring is already installed) you will need to install the Mailparse extension manually:
You now need to tell your mail server that any mails coming to a specific address (in our example: _files@mailserver.example.net_) will be redirected to a PHP script:
_The NextcloudMailCatcher.php can be find in the /lib/ folder of the apps. The script is independant of the rest of the app and can be copied alone on your mail server_
54
+
55
+
Recreate the aliases db:
56
+
```
57
+
$ sudo newaliases
34
58
```
35
59
60
+
_Edit **NextcloudMailCatcher.php** and edit the few settings:
61
+
62
+
63
+
> $config = [
64
+
> 'nextcloud' => 'https://cloud.example.net/',
65
+
> 'username' => 'frommail',
66
+
> 'password' => 'Ledxc-jRFiR-wBMXD-jyyjt-Y87CZ',
67
+
> 'debug' => false
68
+
> ];
69
+
70
+
if **debug** is set to _true_, a log can be find in _/tmp/NextcloudMailParser.log_
71
+
72
+
### Virtual domain
73
+
74
+
In case you're using virtual domain (postfix), you will need to create an alias in your MTA:
0 commit comments