Email won't send through sendgrid


(mark) #1

Hello, I have discourse set up on my centOS 7 server and it’s running and I can get to it in a subfolder.

My SMTP is going through sendgrid and two days ago it worked but had about a 10minute delay. Now however, when I try to send a test email I just get errors. I was using un/pw for my sendgrid account and trying to test an email send gave an error and I just switched to the api key where I have the string name of my apikey as the username and the apikey as the hpassword and it still isn’t working.

Where can I check the smtp logs through discourse…
I get a not authorized when I try to check domain.com/forums/logs even when I’m logged in as the admin.

Here is my app.yml rewrite code.

hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone GitHub - discourse/docker_manager: plugin for use with discourse docker image

Any custom commands to run after building

run:

  • exec:
    cd: $home
    cmd:
    - mkdir -p public/forums
    - cd public/forums && ln -s …/uploads && ln -s …/backups
  • replace:
    global: true
    filename: /etc/nginx/conf.d/discourse.conf
    from: proxy_pass http://discourse;
    to: |
    rewrite ^/(.*)$ /forums/$1 break;
    proxy_pass http://discourse;
  • replace:
    filename: /etc/nginx/conf.d/discourse.conf
    from: etag off;
    to: |
    etag off;
    location /forums {
    rewrite ^/forums/?(.*)$ /$1;
    }
  • replace:
    filename: /etc/nginx/conf.d/discourse.conf
    from: $proxy_add_x_forwarded_for
    to: $http_fastly_client_ip
    global: true

(mark) #2