Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate Mail in Nextcloud #122

Open
capitancurt opened this issue Mar 29, 2023 · 2 comments
Open

Incorporate Mail in Nextcloud #122

capitancurt opened this issue Mar 29, 2023 · 2 comments
Labels
Feature Features galore!

Comments

@capitancurt
Copy link

My experience is that jailbreaking the admin doesn't help. All available mail apps in Nextcloud refuse to connect or are rejected by the imap server (and presumably smtp as well).

Would it be possible to incorporate one of the mail apps in the standard distro (preferably the default mail app), so that users have only to log into the nextcloud panel to have full functionality?

@ddavness ddavness added the Feature Features galore! label Apr 27, 2023
@ddavness
Copy link
Owner

Hmmmmm... I get where you're coming from; however I'm not exactly sure how to feel about piling more stuff on to the Nextcloud installation at this point in time.

@capitancurt
Copy link
Author

capitancurt commented Nov 25, 2023

Okay, I can see how you may want to avoid that. Could be a little than you want to deal with.


For those of us who need it, and aren't going to run too many or too large a box, here is my solution....

--==INITIALIZE ADMIN USER PROFILE==--
browse to http://[lanip]/cloud
Log out

--==CREATE ADMIN.SH==--
#sudo nano admin.sh

--==PASTE INTO ADMIN.SH==--

#!/bin/bash
#This script will give you administrative access to the Nextcloud
#instance running here.
#Run this at your own risk. This is for testing & experimentation
#purpopses only. After this point you are on your own.

source /etc/mailinabox.conf # load global vars

ADMIN=$(management/cli.py user admins | head -n 1)
test -z "$1" || ADMIN=$1

echo I am going to unlock admin features for $ADMIN.
echo You can provide another user to unlock as the first argument of this script.
echo
echo WARNING: you could break mail-in-a-box when fiddling around with Nextcloud's admin interface
echo If in doubt, press CTRL-C to cancel.
echo
echo Press enter to continue.
read

sudo -u www-data php /usr/local/lib/owncloud/occ group:adduser admin "$ADMIN" && echo Done.

--==UNLOCK ADMIN==--
#sudo bash admin.sh [[email protected]]

--==ADD NEXTCLOUD APPS==--
Log into admin profile and add these apps
Mail
Notes
Photos

--==REROUTE DEFAULT HTML TO CLOUD==--
make copy of index.html and edit
#su root
#cd/home/user-data/www/default
#mv index.html index.html.bak
(verify file renamed to backup copy)
#ls
#nano index.html

--==PASTE INTO INDEX.HTML==--

<title>[FQDN HUMAN NAME]</title>

--==ENABLE MAIL CLIENT IN NEXTCLOUD==--
In home/user-data/owncloud/config.php add these lines between end of 'arguments' array and 'memcache.local'...

'app.mail.verify-tls-peer' => false,
'allow_local_remote_servers' => true,

--==VERIFY FIREWALL PORTS==--
#sudo ufw status numbered

--==REBOOT==--
#sudo reboot -n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Features galore!
Projects
None yet
Development

No branches or pull requests

2 participants