Jump to content

greatwitenorth

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by greatwitenorth

  1. On 5/31/2018 at 9:45 AM, CHBMB said:
    On 5/31/2018 at 9:38 AM, greatwitenorth said:
    Is there anywhere else I can loog for log files? I've tried /var/log/nginx/error.log, /config/log/nginx/error.log, /config/log/php/error.log and none of them seem to have any output. Maybe you have some suggested ideas for debugging? I tried telnet, but noticed it's not installed. The only thing I've changed from the inital setup is the port mapping (goes from 443 to 5050 on the host).

    Try using it with a different email provider to check. I know Gmail you have to turn off secure settings to enable things like Nextcloud to utilise the SMTP servers and wondering if it's a similar issue

    So after days of trying to figure out why email isn't working I found that the issue is actually the fact that SSL/TLS are grouped into the same dropdown in nextcloud. MS Office uses tls on port 587, but when you select SSL/TLS it writes 'ssl' in the config file. Changing to STARTTLS fixes this. It's a little unintuitive since all the smtp info for Office says to use TLS for port 587 (not STARTTLS, TBH not sure of the difference).

     

    I still cannot get just the plain php mail option to work...but we'll be using smtp anyways...so not a big deal.

     

    @CHBMB thanks for your help trying to debug this!

  2. 40 minutes ago, CHBMB said:

    There's a link in the docker FAQ or in my signature if you have signatures enabled in the forum. But that screenshot looks like it'll tell me what I need to know.

    Just try using /mnt/cache/appdata/nextcloud rather than /mnt/user/appdata/Nextcloud

    Long shot, but that sometimes fixes weird issues.

     

    Here's the docker run command:

    root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='nextcloud' --net='bridge' -e TZ="America/Chicago" -e HOST_OS="unRAID" -e 'PUID'='99' -e 'PGID'='100' -p '5050:443/tcp' -v '/mnt/user/nextcloud/':'/data':'rw' -v '/mnt/user/media/':'/data/media':'rw' -v '/mnt/user/appdata/nextcloud':'/config':'rw' 'linuxserver/nextcloud' 
    250329965a71ed8d09b073e5cee8915dbc0e3dc8d54f77d14e10bcc00767dc2f

    I'll also try switching to the cache path and see if that helps and report back.

  3. On 5/31/2018 at 9:45 AM, CHBMB said:

    Try using it with a different email provider to check. I know Gmail you have to turn off secure settings to enable things like Nextcloud to utilise the SMTP servers and wondering if it's a similar issue

     

    I tried also with MS Office 365 and I got the following error:
    A problem occurred while sending the email. Please revise your settings. (Error: Connection could not be established with host smtp.office365.com [ #0])

    A problem occurred while sending the email. Please revise your settings. (Error: Connection could not be established with host smtp.office365.com [ #0])

    The weird thing is that I can ping it just fine from inside the nextcloud container. Also when I try to run sendmail from the container I immediately see the error:

    sendmail: can't connect to remote host (127.0.0.1): Connection refused

    which is leading me to believe that there some kind of configuration issue in the container. I'm able to use sendmail from the unraid command line just fine though.

  4. On 5/23/2018 at 1:58 PM, CHBMB said:

    Works out the box for me....

    Is there anywhere else I can loog for log files? I've tried /var/log/nginx/error.log, /config/log/nginx/error.log, /config/log/php/error.log and none of them seem to have any output. Maybe you have some suggested ideas for debugging? I tried telnet, but noticed it's not installed. The only thing I've changed from the inital setup is the port mapping (goes from 443 to 5050 on the host).

  5. I'm trying to setup sending notifications via email and I'm having some trouble. When I try setting it up using 'PHP' as the send mode I get the following error:
     

    A problem occurred while sending the email. Please revise your settings. (Error: Email could not be sent. Check your mail server log)

    Then when I try using SMTP with credentials I know are working with unraid I get this error:

    A problem occurred while sending the email. Please revise your settings. (Error: Connection could not be established with host smtp.office365.com [ #0])

    Also when I go into the command line of the nextcloud container and execute sendmail - I get the following error:

    root@9a505c8431e9:/$ sendmail -
    sendmail: can't connect to remote host (127.0.0.1): Connection refused

    This is also true if I try sending an email via php:

    root@9a505c8431e9:/$ php -a
    Interactive shell
    
    php > mail('[email protected]', 'test', 'test 123');
    sendmail: can't connect to remote host (127.0.0.1): Connection refused

    The nexcloud log files did not contain any additional information even after adding 'mail_smtpdebug' => true, in the config.php file. I'm kind of stuck and hoping someone here can point me in the right direction.

×
×
  • Create New...