私のOdooアプリケーションは、nginx Webサーバーを搭載したUbuntuサーバー16.04LTS上で動作しています。 私はiredmailもインストールしました。ドメイン名/メール(mgbcomputers.com/mail)を使用して自分のメールアカウントにアクセスできます。ここからローカルドメインの他のアカウントやgmailやyahooなどの他のアカウントにメールを送信できます。メールを受信していないIredmail Roundcube
しかし、yahooやgmailから私のroundcubeメールにメールを送信すると、次のエラーが表示されます。
このメッセージはメール配信ソフトウェアによって自動的に作成されました。 送信したメッセージを1人または複数の受信者に配信できませんでした。これは恒久的なエラーです。次のアドレスが失敗しました: [email protected] 長い失敗期間の後にホストの再試行時間に達しませんでした。 ドメインアドレスを使用して自分のウェブサイトにアクセスできるため、私のA/Mxレコードは正しいです。以下は
私のnginxの設定ファイルです:
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; }
私はここで何を得ていないのですか?