我的Odoo应用程序在带有nginx Web服务器的Ubuntu服务器16.04LTS上运行。 我还安装了iredmail,我可以使用domain_name / mail(例如mgbcomputers.com/mail)访问我的电子邮件帐户,我可以将邮件发送到本地域的其他帐户以及gmail和yahoo等其他帐户。
但是当我从我的yahoo或gmail发送电子邮件到我的roundcube电子邮件时,我收到以下错误。
此邮件是由邮件传递软件自动创建的。 您发送的邮件无法发送给其一个或多个收件人。这是一个永久性错误。以下地址失败: obabawale@mgbcomputers.com 在很长的故障期后,任何主机都没有达到重试时间。 我的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; }
我没有到这里来的是什么?
答案 0 :(得分:0)
如果您可以访问您的网站,则表示您的A记录正确但不保证您的MX记录也是正确的。您可以尝试在此网站上验证您的MX记录:https://mxtoolbox.com。 我已经在该网站上检查了您的域名(mgbcomputers.com),并且它在一个黑名单记录中有效,但我认为这也不是问题。 我的建议是,您可以尝试禁用防火墙(ufw),如果您在另一台仅为邮件服务指定的服务器上设置邮件服务器,它会更好。