Owncloud Sharing by email

Status
Not open for further replies.

Adrastos

Cadet
Joined
Oct 11, 2013
Messages
9
Hi Everybody, I am running freenas 9.1.1 and have installed the ownCloud plugin. I have it working pretty well at this point, but need some help with sharing files via email. When I try sharing to my gmail account or some other email, the email never makes it there. The freenas box sends email via my mail server and works perfectly. However, the ownCloud won't deliver the email. What email function does the ownCloud plugin use; the freenas mail function, ownCloud mail function? Not sure where to start.

I installed a test of ownCloud standard on my webserver and the mail function works great. Hoping somebody can help. thanks in advance.
 
Joined
Oct 14, 2013
Messages
21
I am doing the same thought the following file needed to be edited.
But I cant get hang of it..


/usr/pbi/owncloud-amd64/www/owncloud/config
<?php
$CONFIG = array (
'datadirectory' => '/media',
'instanceid' => 'myid',
'passwordsalt' => 'mysalt',
'dbtype' => 'sqlite3',
'version' => '5.0.20',
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'smtp.myisp.com',
'mail_smtpport' => 25,
'mail_smtpsecure' => '',
'mail_smtpauth' => false,
'mail_smtptimeout' => 10,
);

Hope someone else clears up this config issue.
Thank
Mathias
 

Adrastos

Cadet
Joined
Oct 11, 2013
Messages
9
Thanks to your starting point and a review of the email configuration in the owncloud documentation (www.owncloud.org), I have it working now. I added the below to the default config.php at

/usr/pbi/owncloud-amd64/www/owncloud/config/config.php

'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'your.smtp.server', \\\for me this was an IP address of my mail server\\\
'mail_smtpport' => 25,
'mail_smtptimeout' => 30,
'mail_smtpsecure' => 'tls',
"mail_smtpauth" => true,
"mail_smtpauthtype" => "LOGIN",
"mail_smtpname" => "username",
"mail_smtppassword" => "password",
);

Here is the link to the configuration file
http://doc.owncloud.org/server/5.0/admin_manual/configuration/configuration_mail.html
 
Joined
Oct 14, 2013
Messages
21
Just got it to work with google mails SMTP servers.
Below is the config as reference for others that has problem.

/usr/pbi/owncloud-amd64/www/owncloud/config/config.php

'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'ssl://smtp.gmail.com:465',
'mail_smtpauth' => 'true',
'mail_smtpname' => 'mygmail@gmail.com',
'mail_smtppassword' => 'mygmailpassword',
Cheers all
Mathias
 
Status
Not open for further replies.
Top