OwnCloud
-
@alex.olynyk said:
@scottalanmiller I am. Our e-mail server is hosted.
I have port 25 blocked on my firewall, so for me
tail -f /var/log/maillog
results in:
[root@oc-jared log]# tail -f /var/log/maillog Feb 22 12:44:32 oc-jared postfix/smtp[6795]: connect to alt1.gmail-smtp-in.l.google.com[2607:f8b0:400d:c02::1b]:25: Network is unreachable Feb 22 12:44:52 oc-jared postfix/pickup[6217]: 3AC56C0BC00A: uid=48 from=<[email protected]> Feb 22 12:44:52 oc-jared postfix/cleanup[6793]: 3AC56C0BC00A: message-id=<[email protected]> Feb 22 12:44:52 oc-jared postfix/qmgr[2174]: 3AC56C0BC00A: from=<[email protected]>, size=527, nrcpt=1 (queue active) Feb 22 12:45:02 oc-jared postfix/smtp[6795]: connect to alt1.gmail-smtp-in.l.google.com[173.194.205.26]:25: Connection timed out Feb 22 12:45:22 oc-jared postfix/smtp[6807]: connect to gmail-smtp-in.l.google.com[74.125.126.26]:25: Connection timed out Feb 22 12:45:22 oc-jared postfix/smtp[6807]: connect to gmail-smtp-in.l.google.com[2607:f8b0:4001:c1d::1a]:25: Network is unreachable Feb 22 12:45:22 oc-jared postfix/smtp[6807]: connect to alt1.gmail-smtp-in.l.google.com[2607:f8b0:400d:c02::1b]:25: Network is unreachable Feb 22 12:45:32 oc-jared postfix/smtp[6795]: connect to alt2.gmail-smtp-in.l.google.com[173.194.211.26]:25: Connection timed out Feb 22 12:45:32 oc-jared postfix/smtp[6795]: 672DBC0BBFF7: to=<[email protected]>, relay=none, delay=90, delays=0.04/0.01/90/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[173.194.211.26]:25: Connection timed out) Feb 22 12:45:52 oc-jared postfix/smtp[6807]: connect to alt1.gmail-smtp-in.l.google.com[173.194.205.26]:25: Connection timed out Feb 22 12:46:22 oc-jared postfix/smtp[6807]: connect to alt2.gmail-smtp-in.l.google.com[173.194.211.26]:25: Connection timed out Feb 22 12:46:22 oc-jared postfix/smtp[6807]: 3AC56C0BC00A: to=<[email protected]>, relay=none, delay=90, delays=0.02/0.01/90/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[173.194.211.26]:25: Connection timed out)
-
That is with no specific mail server setup in ownCloud.
<?php $CONFIG = array ( 'instanceid' => '', 'passwordsalt' => '', 'secret' => '', 'trusted_domains' => array ( 0 => 'oc.daerma.com', ), 'datadirectory' => '/home/owncloud/data', 'overwrite.cli.url' => 'http://oc.daerma.com/owncloud', 'dbtype' => 'mysql', 'version' => '8.2.2.2', 'dbname' => '', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => '', 'dbpassword' => '', 'logtimezone' => 'UTC', 'installed' => true, 'maintenance' => false, 'theme' => '', 'loglevel' => 2, 'mail_from_address' => 's', 'mail_smtpmode' => 'php', 'mail_domain' => 'gmail.com', );
-
@JaredBusch That file is empty. This server is only running owncloud. I thought owncloud would log the error somewhere.
-
@alex.olynyk said:
@JaredBusch That file is empty. This server is only running owncloud. I thought owncloud would log the error somewhere.
ownCloud's default log is
/etc/httpd/html/owncloud/owncloud.log
My ownCloud log file is in the data directory
/home/owncloud/data/owncloud.log
, but i have no idea why. Might just be how ownCloud does it when you use a non default data directory. -
I just changed my settings to smtp and put in my gmail creds (and enabled less secure apps in gmail)
-
@alex-olynyk You have SSL enabled in the ownCloud settings, but you are telling it to use port 25. That is completely non-standard. I would say check your hosts settings for remote SMTP.
-
@JaredBusch I disabled SSL and now I get this.
-
@alex.olynyk well, do so.
-
@JaredBusch I did and it reads E-mail Sent with a green button but when I try to share a link and e-mail myself still reads could not send e-mail? Anything else I can check?
-
When I login to my webmail I see its on port 2095. Do I need to add that port in config.php and OC?
-
this is the error
-
Webmail is not SMTP.
You need to contact your provider and ask them how to setup a device to send SMTP.
-
@JaredBusch said:
@scottalanmiller said:
@alex.olynyk said:
Thanks guys. I see no way of adding a users e-mail address to their account. How can I notify them that a file has been shared with them?
There is a way, that's how it is supposed to work. The system has to do the notifications via email itself.
Actually, there is not. It is a huge failing from an admin point of view.
Users have to set their email address themselves.
The only way for an admin to do it is via the MySQL/MariaDB command line directly.
I guess one could write a script to do it.
Yep, I found this to be the case as well. It makes no sense from an enterprise/business point of view why this field can't be edited.
-
@coliver said:
@JaredBusch said:
@scottalanmiller said:
@alex.olynyk said:
Thanks guys. I see no way of adding a users e-mail address to their account. How can I notify them that a file has been shared with them?
There is a way, that's how it is supposed to work. The system has to do the notifications via email itself.
Actually, there is not. It is a huge failing from an admin point of view.
Users have to set their email address themselves.
The only way for an admin to do it is via the MySQL/MariaDB command line directly.
I guess one could write a script to do it.
Yep, I found this to be the case as well. It makes no sense from an enterprise/business point of view why this field can't be edited.
Other than it's not enterprise ready yet.
-
I also get this message
but I can login to CentOS and ping google and other sites. -
@alex.olynyk said:
I also get this message
but I can login to CentOS and ping google and other sites.Mine has always said that. Never bothered to troubleshoot the reason.
-
The From To address field had to be a valid address. Its working now. Thanks everyone.
-
@alex.olynyk said:
The From To address field had to be a valid address. Its working now. Thanks everyone.
Glad you found a solution. Learn stuff in this thread.
-
@alex.olynyk said:
The From To address field had to be a valid address. Its working now. Thanks everyone.
That was a restriction of your SMTP server, not ownCloud.