2017-03-20 41 views
0

나는 내 Odoo 응용 프로그램을 nginx 웹 서버가있는 16.04LTS 우분투 서버에서 실행하고 있습니다. 나는 또한 iredmail을 설치했으며 domain_name/mail (예 : mgbcomputers.com/mail)을 사용하여 내 이메일 계정에 액세스 할 수 있습니다. 여기에서 로컬 도메인의 다른 계정과 gmail 및 yahoo 같은 다른 계정으로 이메일을 보낼 수 있습니다.이메일을 수신하지 않는 Iredmail Roundcube

그러나 내 야후 또는 Gmail에서 내 roundcube 이메일로 이메일을 보내면 다음 오류가 발생합니다.

이 메시지는 우편 배달 소프트웨어에서 자동으로 만들어졌습니다. 보낸 메시지를 하나 이상의받는 사람에게 배달 할 수 없습니다. 이것은 영구 오류입니다. 다음 주소가 실패했습니다. [email protected] 오랜 실패 기간이 경과 한 후 호스트에 대한 재시도 시간에 도달하지 못했습니다. 도메인 주소를 사용하여 웹 사이트에 액세스 할 수 있기 때문에 내 A/Mx 레코드가 정확합니다.

upstream backend-odoo{ 
    server 127.0.0.1:8069; 
} 

server { 
    server_name mgbcomputers.com; 
    listen 80; 
    add_header Strict-Transport-Security max-age=2592000; 
    rewrite ^/.*$ https://$host$request_uri? permanent; 
} 

server { 

    listen 443 default; 

    #ssl settings 
    ssl on; 
    ssl_certificate /etc/nginx/ssl/server.crt; 
# ssl_certificate /etc/ssl/certs/iRedMail.crt; 
    ssl_certificate_key /etc/nginx/ssl/server.key; 
    keepalive_timeout 60; 

    root /var/www/html; #added from iredmail file 
    index index.php index.html; #added from the iredmail file 

    # proxy header and settings 
    proxy_set_header Host $host; 
    proxy_set_header X-Real-IP $remote_addr; 
    proxy_set_header X-Forward-For $proxy_add_x_forwarded_for; 
    proxy_set_header X-Forwarded-Proto $scheme; 
    proxy_redirect off; 

    # odoo log files 
    access_log /var/log/nginx/odoo-access.log; 
    error_log /var/log/nginx/odoo-error.log; 

    # increase proxy buffer size 
    proxy_buffers 16 64k; 
    proxy_buffer_size 128k; 

    # force timeouts if the backend dies 
    proxy_next_upstream error timeout invalid_header http_500 
    http_502 http_503; 

    # enable data compression 
    gzip on; 
    gzip_min_length 1100; 
    gzip_buffers 4 32k; 
    gzip_types text/plain application/x-javascript text/xml text/css; 
    gzip_vary on; 

    location/{ 
     proxy_pass http://backend-odoo; 
    } 

    location ~* /web/static/ { 
     # cache static data 
     proxy_cache_valid 200 60m; 
     proxy_buffering on; 
     expires 864000; 
     proxy_pass http://backend-odoo; 
    } 

    location /longpolling { proxy_pass http://backend-odoo-im;} 

    location /mail/ { root /var/vmail/vmail1; } # Added by Lekan for iredmail 

    # Web applications. Added from iredmail file 
    #include /etc/nginx/templates/adminer.tmpl; #Added from iredmail file 
    include /etc/nginx/templates/roundcube.tmpl; #Added from iredmail file 
    include /etc/nginx/templates/sogo.tmpl; #Added from iredmail file 
    include /etc/nginx/templates/iredadmin.tmpl; #Added from iredmail file 
    include /etc/nginx/templates/awstats.tmpl; #Added from iredmail file 

    # PHP applications. WARNING: php-catchall.tmpl should be loaded after 
    # other php web applications. 
    include /etc/nginx/templates/php-catchall.tmpl; #Added from iredmail file 

    include /etc/nginx/templates/misc.tmpl; #Added from iredmail file 
} 

upstream backend-odoo-im { server 127.0.0.1:8072; } 

여기 I을 받고 있지 않다 무엇 : 아래

내 nginx를 구성 파일입니다?

답변

0

웹 사이트에 액세스 할 수있는 경우 A 레코드가 정확하다는 것을 의미하지만 MX 레코드도 올 바르지는 않습니다. 이 사이트에서 MX 레코드의 유효성을 검사 해보십시오 : https://mxtoolbox.com. 해당 사이트에서 귀하의 도메인 (mgbcomputers.com)을 확인했으며 하나의 블랙리스트 레코드로 유효하지만 문제가 아닌 것으로 생각됩니다. 제안 사항 : 방화벽 (ufw)을 사용하지 않도록 설정하면 메일 서비스 전용으로 지정된 다른 서버에 메일 서버를 설치하는 것이 좋습니다.