AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / user-246108

Jerome's questions

Martin Hope
Jerome
Asked: 2025-01-06 21:41:41 +0800 CST

O Postfix não está enviando com o remetente correto

  • 5

Os seguintes elementos

# postconf myhostname
myhostname = hostname.example.com
# postconf mydomain
mydomain = example.com
# postqueue -p
-Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
87C5DDD44B*     418 Mon Jan  6 13:02:36  root@ubuntu-4gb-nbg1-1
                                         [email protected]

está resultando em um tempo limite no servidor de e-mail do destinatário:

connect to in-smtp.example.org[192.0.2.1]:25: Connection timed out

O remetente do e-mail é identificado como from=<root@ubuntu-4gb-nbg1-1>em mail.log.

O hostname.example.come example.comtêm seus Aregistros DNS apropriados e TXT SPFregistros permitindo ip4:198.51.100.1.

O provedor de serviços (Hetzner neste caso) tem uma entrada DNS reversa para o endereço IPv4 primário definido como example.com.

Presumi que era a string do remetente do e-mail que estava sendo recusada pelo servidor MX. Mas quando fiz isso, o remetente correto apareceu no log.mail -s 'subject' "From: [email protected]" [email protected]

Então, onde poderia estar faltando a configuração?

domain-name-system
  • 1 respostas
  • 38 Views
Martin Hope
Jerome
Asked: 2025-01-06 18:43:15 +0800 CST

possíveis registros DNS SPF conflitantes

  • 5

Contexto:
• serviço de e-mail gerenciado por terceiros
• O VPS tem o postfix como um servidor de e-mail somente para envio.

O DNS tem dois registros TXT com nome@
v=spf1 include:spf.someengine.com ?all
v=spf1 mx ip4:111.222.333.444 ~all

Essa configuração pode criar problemas com servidores de e-mail? É preferível unificá-los em uma única entrada, como
v=spf1 include:spf.someengine.com mx ip4:111.222.333.444 ~all ?

domain-name-system
  • 1 respostas
  • 60 Views
Martin Hope
Jerome
Asked: 2024-05-26 12:47:22 +0800 CST

configuração nginx sendo ignorada

  • 7

um arquivo dentro /etc/nginx/sites-enabledtem o seguinte

server {

  server_name production.domain.club cspiero.domain.club;
  root /home/deploy/domain/current/public;
[...]
   ssl_certificate /etc/letsencrypt/live/cspiero.domain.club/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/cspiero.domain.club/privkey.pem; # managed by Certbot
[...]
server {
    if ($host = production.domain.club) {
        return 301 https://$host$request_uri;
    }
  listen 80;
  listen [::]:80;
}
server {
    if ($host = cspiero.domain.club) {
        return 301 https://$host$request_uri;
    }
  listen 80;
  listen [::]:80;
}

while nginx -tpassa, o comportamento real do servidor é que o domínio de terceiro nível productionestá sendo renderizado conforme esperado, enquanto cspieronão está sendo roteado para o mesmo local, mas sendo processado pela configuração padrão (o navegador também recebe uma resposta http, ignorando assim o certificado )

server {
       root /home/deploy/default;
        index index.html;
        server_name _;
        location / {
        try_files $uri $uri/ =404;
        }
}

Por que isso está acontecendo? Há um desejo de manter a configuração padrão para todas as outras solicitações de expedição de pesca (tornando algo muito leve e sem graça). O que deve ser feito neste contexto então?

nginx
  • 1 respostas
  • 124 Views
Martin Hope
Jerome
Asked: 2023-04-22 16:41:37 +0800 CST

opendkim milter não inicia no soquete do servidor adequado

  • 5

O seguinte erro impediu o reinício do opendkim

× opendkim.service - OpenDKIM Milter
     Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2023-04-22 08:00:27 UTC; 2s ago
[...]    Process: 2295 ExecStart=/usr/sbin/opendkim (code=exited, status=78)
opendkim.service: Control process exited, code=exited, status=78/CONFIG

Tentando consultar a documentação ( não criptografada e possivelmente não atualizada), nada foi encontrado sobre status=78.
Mas claramente as configurações do milter estão incorretas de alguma forma. /etc/postfix/main.cf define:

# Milter configuration
milter_default_action = accept
milter_protocol = 6
smtpd_milters = local:opendkim/opendkim.sock
non_smtpd_milters = $smtpd_milters

Considerando que /etc/opendkim.conftem

Syslog                  yes
SyslogSuccess           yes
LogWhy                  yes

Canonicalization        relaxed/simple
Mode                    sv
SubDomains              no
OversignHeaders         From

UserID                  opendkim
UMask                   007

Socket                  local:/var/spool/postfix/opendkim/opendkim.sock

#Nameservers            127.0.0.1
AutoRestart                     yes
AutoRestartRate                 10/1M
Background                      yes
DNSTimeout                      5
SignatureAlgorithm              rsa-sha256

ExternalIgnoreList      refile:/etc/opendkim/trusted.hosts
InternalHosts           refile:/etc/opendkim/trusted.hosts
KeyTable                refile:/etc/opendkim/key.table
SigningTable            refile:/etc/opendkim/signing.table

PidFile                 /var/run/opendkim/opendkim.pid
# UserID                  opendkim:opendkim

Percebi o seguinte:
• a configuração do opendkim originalmente referenciada ExternalIgnoreList refile:/etc/opendkim/TrustedHostsenquanto o arquivo existente é /etc/opendkim/trusted.hosts. Isso se repete para todo o bloco. Todo o bloco foi alterado para os nomes de arquivo separados por pontos em minúsculas e o serviço é reiniciado.

No entanto, os e-mails, ao serem enviados, são registrados pelo postfix com: warning: connect to Milter service local:opendkim/opendkim.sock: No such file or directory

cd /var/spool/postfix/opendkim
-bash: cd: /var/spool/postfix/opendkim: No such file or directory

Eu também não vejo nenhum arquivo pid em/var/run/opendkim/

Provavelmente há algumas coisas erradas aqui entre a smtpd_milters = local:opendkim/opendkim.sockconfiguração do postfix e a Socketdefinição do opendkim. O que precisa ser mudado?

A atualização
warning: connect to Milter service local:opendkim/opendkim.sock: Permission denied ainda está nos logs de correio, portanto, esse elemento de configuração está errado.

alterando a configuração postfix/main.cfpara

smtpd_milters = local:/var/spool/postfix/opendkim/opendkim.sock

resulta em: warning: connect to Milter service local:/var/spool/postfix/opendkim/opendkim.sock: No such file or directory. A existência de /var/spool/postfix/opendkim/opendkim.socké verificada.

postfix
  • 2 respostas
  • 53 Views
Martin Hope
Jerome
Asked: 2020-11-02 03:20:56 +0800 CST

regra de negação não está filtrando totalmente

  • 2

O seguinte bloco

    location ~ /(wp-content|solr|jsonws|mifs|wp-includes|login.asp)/ {
        return 404;
    }

não está processando en/blog/wp-includes/wlwmanifest.xmladequadamente. A intenção é processar qualquer solicitação que contenha a string wp-includes, entre outras.

Espero que o nginx retorne o erro 404, enquanto o acesso está atingindo o servidor de aplicativos.

Onde a sintaxe está errada?

Atualizar o conteúdo do arquivo nginx -T

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
# configuration file /etc/nginx/nginx.conf:
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections 768;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 130s;
        client_max_body_size 10M;
    types_hash_max_size 2048;
    # server_tokens off;
        ## Block spammers and other unwanted visitors  ##
        include blockips.conf;

    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ##
    # SSL Settings
    ##

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
    ssl_prefer_server_ciphers on;

    ##
    # Logging Settings
    ##

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    ##
    # Gzip Settings
    ##

    gzip on;

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # Virtual Host Configs
    ##

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;

# Security headers
        add_header X-XSS-Protection "1; mode=block";
        add_header X-Frame-Options "SAMEORIGIN";
}

#mail {
#   # See sample authentication script at:
#   # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
#   # auth_http localhost/auth.php;
#   # pop3_capabilities "TOP" "USER";
#   # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
#   server {
#       listen     localhost:110;
#       protocol   pop3;
#       proxy      on;
#   }
#
#   server {
#       listen     localhost:143;
#       protocol   imap;
#       proxy      on;
#   }
#}

# configuration file /etc/nginx/modules-enabled/10-mod-http-ndk.conf:
load_module modules/ndk_http_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-auth-pam.conf:
load_module modules/ngx_http_auth_pam_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-cache-purge.conf:
load_module modules/ngx_http_cache_purge_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-dav-ext.conf:
load_module modules/ngx_http_dav_ext_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-echo.conf:
load_module modules/ngx_http_echo_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-fancyindex.conf:
load_module modules/ngx_http_fancyindex_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-geoip.conf:
load_module modules/ngx_http_geoip_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-headers-more-filter.conf:
load_module modules/ngx_http_headers_more_filter_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:
load_module modules/ngx_http_image_filter_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-lua.conf:
load_module modules/ngx_http_lua_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-passenger.conf:
load_module /usr/lib/nginx/modules/ngx_http_passenger_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-perl.conf:
load_module modules/ngx_http_perl_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-subs-filter.conf:
load_module modules/ngx_http_subs_filter_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-uploadprogress.conf:
load_module modules/ngx_http_uploadprogress_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-upstream-fair.conf:
load_module modules/ngx_http_upstream_fair_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-http-xslt-filter.conf:
load_module modules/ngx_http_xslt_filter_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-mail.conf:
load_module modules/ngx_mail_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-nchan.conf:
load_module modules/ngx_nchan_module.so;

# configuration file /etc/nginx/modules-enabled/50-mod-stream.conf:
load_module modules/ngx_stream_module.so;

# configuration file /etc/nginx/blockips.conf:
deny 185.213.20.172;
deny 104.129.18.6;
deny 185.224.91.73;
deny 176.126.83.15;
deny 69.49.102.227;
deny 60.191.38.77;
deny 209.17.96.66;
deny 80.82.77.139;
deny 184.105.247.194;
deny 184.105.247.195;
deny 104.131.133.207;
deny 80.82.77.33;
deny 151.239.67.109;
deny 77.246.234.70;
deny 213.85.3.11;
deny 45.227.253.36;
deny 185.82.216.97;
deny 185.222.211.54;
deny 82.118.242.240;
deny 97.177.247.162;
deny 118.138.101.236;
deny 213.183.146.74;
deny 5.188.211.15;
deny 85.93.20.58;
deny 203.172.211.4;
deny 77.161.231.173;
deny 35.175.132.238;
deny 45.227.255.149;

# configuration file /etc/nginx/mime.types:

types {
    text/html                             html htm shtml;
    text/css                              css;
    text/xml                              xml;
    image/gif                             gif;
    image/jpeg                            jpeg jpg;
    application/javascript                js;
    application/atom+xml                  atom;
    application/rss+xml                   rss;

    text/mathml                           mml;
    text/plain                            txt;
    text/vnd.sun.j2me.app-descriptor      jad;
    text/vnd.wap.wml                      wml;
    text/x-component                      htc;

    image/png                             png;
    image/tiff                            tif tiff;
    image/vnd.wap.wbmp                    wbmp;
    image/x-icon                          ico;
    image/x-jng                           jng;
    image/x-ms-bmp                        bmp;
    image/svg+xml                         svg svgz;
    image/webp                            webp;

    application/font-woff                 woff;
    application/java-archive              jar war ear;
    application/json                      json;
    application/mac-binhex40              hqx;
    application/msword                    doc;
    application/pdf                       pdf;
    application/postscript                ps eps ai;
    application/rtf                       rtf;
    application/vnd.apple.mpegurl         m3u8;
    application/vnd.ms-excel              xls;
    application/vnd.ms-fontobject         eot;
    application/vnd.ms-powerpoint         ppt;
    application/vnd.wap.wmlc              wmlc;
    application/vnd.google-earth.kml+xml  kml;
    application/vnd.google-earth.kmz      kmz;
    application/x-7z-compressed           7z;
    application/x-cocoa                   cco;
    application/x-java-archive-diff       jardiff;
    application/x-java-jnlp-file          jnlp;
    application/x-makeself                run;
    application/x-perl                    pl pm;
    application/x-pilot                   prc pdb;
    application/x-rar-compressed          rar;
    application/x-redhat-package-manager  rpm;
    application/x-sea                     sea;
    application/x-shockwave-flash         swf;
    application/x-stuffit                 sit;
    application/x-tcl                     tcl tk;
    application/x-x509-ca-cert            der pem crt;
    application/x-xpinstall               xpi;
    application/xhtml+xml                 xhtml;
    application/xspf+xml                  xspf;
    application/zip                       zip;

    application/octet-stream              bin exe dll;
    application/octet-stream              deb;
    application/octet-stream              dmg;
    application/octet-stream              iso img;
    application/octet-stream              msi msp msm;

    application/vnd.openxmlformats-officedocument.wordprocessingml.document    docx;
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet          xlsx;
    application/vnd.openxmlformats-officedocument.presentationml.presentation  pptx;

    audio/midi                            mid midi kar;
    audio/mpeg                            mp3;
    audio/ogg                             ogg;
    audio/x-m4a                           m4a;
    audio/x-realaudio                     ra;

    video/3gpp                            3gpp 3gp;
    video/mp2t                            ts;
    video/mp4                             mp4;
    video/mpeg                            mpeg mpg;
    video/quicktime                       mov;
    video/webm                            webm;
    video/x-flv                           flv;
    video/x-m4v                           m4v;
    video/x-mng                           mng;
    video/x-ms-asf                        asx asf;
    video/x-ms-wmv                        wmv;
    video/x-msvideo                       avi;
}

# configuration file /etc/nginx/conf.d/mod-http-passenger.conf:
### Begin automatically installed Phusion Passenger config snippet ###
passenger_ruby /home/deploy/.rbenv/shims/ruby; # If you use rbenv
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
# passenger_ruby /usr/bin/passenger_free_ruby;
### End automatically installed Phusion Passenger config snippet ###

# configuration file /etc/nginx/sites-enabled/default:
server {

        server_name testing.sportstours.net sportstours.net www.sportstours.net sportstours.me www.sportstours.me iwanttogoto.com www.iwanttogoto.com muse.iwanttogoto.com reflektor.tv www.reflektor.tv;
#        server_name api.sportstours.net www.sportstours.net www.sportstours.me sportstours.me sportstours.net testing.sportstours.net;
        passenger_enabled on;
        rails_env         production;
        root              /home/deploy/v4/current/public;

        error_page 404 /404.html;
          location  /404.html {
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        location ~ /(wp-content|solr|jsonws|mifs|wp-includes|login.asp)/ {
            return 404;
        }
        location ~ \.php$ {
            return 404;
        }
        location ~ \.aspx$ {
            return 404;
        }
        location ~ \.env$ {
            return 404;
        }
        location ~ \.production$ {
            return 404;
        }
        location ~ \.git$ {
            return 404;
        }
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/reflektor.tv/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/reflektor.tv/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

server {
    if ($host = www.reflektor.tv) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


       listen 80;

        server_name testing.sportstours.net sportstours.net www.sportstours.net sportstours.me www.sportstours.me iwanttogoto.com www.iwanttogoto.com muse.iwanttogoto.com reflektor.tv www.reflektor.tv;
    return 404; # managed by Certbot


}
# configuration file /etc/letsencrypt/options-ssl-nginx.conf:
# This file contains important security parameters. If you modify this file
# manually, Certbot will be unable to automatically provide future security
# updates. Instead, Certbot will print and log an error message with a path to
# the up-to-date file that you will need to refer to when manually updating
# this file.

ssl_session_cache shared:le_nginx_SSL:1m;
ssl_session_timeout 1440m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;

ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";

# configuration file /etc/nginx/sites-enabled/gdpr:
server {
        # Make site accessible from http://localhost/
        server_name gdpr.reflektor.tv gdpr.sportstours.net gdpr.sportstours.me gdpr.onereededizioni.eu gdpr.perfectcut.glass gdpr.ellci.net;
# gdpr.sipi.it  has dropped off the face of the earth ?
        passenger_enabled on;
        rails_env         development;
        root              /home/deploy/gdpr/current/public;

        # redirect server error pages to the static page /50x.html
        error_page 404 /404.html;
          location  /404.html {
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        location ~ /(wp-content|solr|jsonws|mifs|wp-includes|login.asp)/ {
            return 404;
        }
        location ~ \.php$ {
            return 404;
        }
        location ~ \.aspx$ {
            return 404;
        }
        location ~ \.env$ {
            return 404;
        }
        location ~ \.production$ {
            return 404;
        }
        location ~ \.git$ {
            return 404;
        }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/gdpr.onereededizioni.eu/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/gdpr.onereededizioni.eu/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

server {
    if ($host = gdpr.sportstours.me) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = gdpr.sportstours.net) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = gdpr.reflektor.tv) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = gdpr.perfectcut.glass) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = gdpr.onereededizioni.eu) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = gdpr.ellci.net) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        server_name gdpr.reflektor.tv gdpr.sportstours.net gdpr.sportstours.me gdpr.onereededizioni.eu gdpr.perfectcut.glass gdpr.ellci.net;
    listen 80;
    return 404; # managed by Certbot

}

# configuration file /etc/nginx/sites-enabled/hf:
server {
        server_name hf.iwanttogoto.com;

       passenger_enabled on;
       rails_env         development;
       root              /home/deploy/hf/current/public;

        error_page 404 /404.html;
          location  /404.html {
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        location ~ /(wp-content|solr|jsonws|mifs|wp-includes|login.asp)/ {
            return 404;
        }
        location ~ \.php$ {
            return 404;
        }
        location ~ \.aspx$ {
            return 404;
        }
        location ~ \.env$ {
            return 404;
        }
        location ~ \.production$ {
            return 404;
        }
        location ~ \.git$ {
            return 404;
        }

}

# configuration file /etc/nginx/sites-enabled/ialbum:
server {
        # Make site accessible from http://localhost/
        client_max_body_size 20M;
        server_name ialbum.iwanttogoto.com;
        passenger_enabled on;
        rails_env         development;
        root              /home/deploy/fur/current/public;
        # redirect server error pages to the static page /50x.html
        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
          root html;
        }
        error_page 404 /404.html;
          location  /404.html {
        }
        location ~ /(wp-content|solr|jsonws|mifs|wp-includes|login.asp)/ {
            return 404;
        }
        location ~ \.php$ {
            return 404;
        }
        location ~ \.aspx$ {
            return 404;
        }
        location ~ \.env$ {
            return 404;
        }
        location ~ \.production$ {
            return 404;
        }
        location ~ \.git$ {
            return 404;
        }


    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/ialbum.iwanttogoto.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/ialbum.iwanttogoto.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = ialbum.iwanttogoto.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        server_name ialbum.iwanttogoto.com;
    listen 80;
    return 404; # managed by Certbot


}
# configuration file /etc/nginx/sites-enabled/marchesi:
server {
        # Make site accessible from http://localhost/
        server_name marchesi.reflektor.tv marchesi.iwanttogoto.com;
        passenger_enabled on;
        rails_env         development;
        root              /home/deploy/marchesi/current/public;

        # redirect server error pages to the static page /50x.html
        error_page 404 /404.html;
          location  /404.html {
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        location ~ /(wp-content|solr|jsonws|mifs|wp-includes|login.asp)/ {
            return 404;
        }
        location ~ \.php$ {
            return 404;
        }
        location ~ \.aspx$ {
            return 404;
        }
        location ~ \.env$ {
            return 404;
        }
        location ~ \.production$ {
            return 404;
        }
        location ~ \.git$ {
            return 404;
        }



    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/marchesi.iwanttogoto.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/marchesi.iwanttogoto.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


}
server {
    if ($host = marchesi.iwanttogoto.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = marchesi.reflektor.tv) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        server_name marchesi.reflektor.tv marchesi.iwanttogoto.com;
    listen 80;
    return 404; # managed by Certbot
}

# configuration file /etc/nginx/sites-enabled/mssaccounting:
server {
        # Make site accessible from http://localhost/
        server_name contabilita.sportstours.net;
        passenger_enabled on;
        rails_env         development;
        root              /home/deploy/mssaccounting/current/public;
        # redirect server error pages to the static page /50x.html
        error_page 404 /404.html;
          location  /404.html {
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        location ~ /(wp-content|solr|jsonws|mifs|wp-includes|login.asp)/ {
            return 404;
        }
        location ~ \.php$ {
            return 404;
        }
        location ~ \.aspx$ {
            return 404;
        }
        location ~ \.env$ {
            return 404;
        }
        location ~ \.production$ {
            return 404;
        }
        location ~ \.git$ {
            return 404;
        }


    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/contabilita.sportstours.net/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/contabilita.sportstours.net/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = contabilita.sportstours.net) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        server_name contabilita.sportstours.net;
    listen 80;
    return 404; # managed by Certbot


}
# configuration file /etc/nginx/sites-enabled/mssimagelib:
server {
        # Make site accessible from http://localhost/
        server_name mss.outreachit.com;
        passenger_enabled on;
        rails_env         development;
        root              /home/deploy/mssimagelib/current/public;
        # redirect server error pages to the static page /50x.html
        error_page 404 /404.html;
          location  /404.html {
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        location ~ /(wp-content|solr|jsonws|mifs|wp-includes|login.asp)/ {
            return 404;
        }
        location ~ \.php$ {
            return 404;
        }
        location ~ \.aspx$ {
            return 404;
        }
        location ~ \.env$ {
            return 404;
        }
        location ~ \.production$ {
            return 404;
        }
        location ~ \.git$ {
            return 404;
        }


    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/mss.outreachit.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/mss.outreachit.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = mss.outreachit.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        server_name mss.outreachit.com;
    listen 80;
    return 404; # managed by Certbot


}
# configuration file /etc/nginx/sites-enabled/serverip:
server {
      server_name 46.111.191.173 www.46.111.191.173;
      error_page 404 /404.html;
        location  /404.html {
        internal;
      }
      location ~ / {
          return 404;
      }

}
nginx phusion-passenger
  • 1 respostas
  • 674 Views
Martin Hope
Jerome
Asked: 2018-11-16 02:06:52 +0800 CST

Entradas PTR de DNS reverso correspondentes às entradas MX

  • 1

Confusão sobre o que o DNS reverso se aplica e onde ele é definido... Embora existam respostas sobre como fazer isso , ainda não consigo determinar o que precisa ser feito e por quê.

Um domínio é registrado no Registrador A, que mantém as tabelas DNS. O Registrador A também oferece serviços de correio por meio do domínio de propriedade do Registrador. Dois VPS atendem a diferentes serviços de domínio de 3º nível.

O registro spf na tabela DNS aponta para o domínio do servidor de email para serviços MX, enquanto o registro MX aponta para

mail.registeredDomain.com

v=spf1 a mx ptr include:mailServer.net ~all

Estados da caixa de ferramentas MXReverse DNS does not match SMTP Banner

as pesquisas de DNS reverso são baseadas no serviço (mx) ou no domínio? Posso ver a incompatibilidade com o registro MX, mas o provedor de e-mail tinha instruções para configurar o registro PTR conforme indicado.

Como o registro SPF PTR deve ser definido? e porque?

domain-name-system
  • 1 respostas
  • 1521 Views

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Você pode passar usuário/passar para autenticação básica HTTP em parâmetros de URL?

    • 5 respostas
  • Marko Smith

    Ping uma porta específica

    • 18 respostas
  • Marko Smith

    Verifique se a porta está aberta ou fechada em um servidor Linux?

    • 7 respostas
  • Marko Smith

    Como automatizar o login SSH com senha?

    • 10 respostas
  • Marko Smith

    Como posso dizer ao Git para Windows onde encontrar minha chave RSA privada?

    • 30 respostas
  • Marko Smith

    Qual é o nome de usuário/senha de superusuário padrão para postgres após uma nova instalação?

    • 5 respostas
  • Marko Smith

    Qual porta o SFTP usa?

    • 6 respostas
  • Marko Smith

    Linha de comando para listar usuários em um grupo do Windows Active Directory?

    • 9 respostas
  • Marko Smith

    O que é um arquivo Pem e como ele difere de outros formatos de arquivo de chave gerada pelo OpenSSL?

    • 3 respostas
  • Marko Smith

    Como determinar se uma variável bash está vazia?

    • 15 respostas
  • Martin Hope
    Davie Ping uma porta específica 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    kernel O scp pode copiar diretórios recursivamente? 2011-04-29 20:24:45 +0800 CST
  • Martin Hope
    Robert ssh retorna "Proprietário incorreto ou permissões em ~/.ssh/config" 2011-03-30 10:15:48 +0800 CST
  • Martin Hope
    Eonil Como automatizar o login SSH com senha? 2011-03-02 03:07:12 +0800 CST
  • Martin Hope
    gunwin Como lidar com um servidor comprometido? 2011-01-03 13:31:27 +0800 CST
  • Martin Hope
    Tom Feiner Como posso classificar a saída du -h por tamanho 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich O que é um arquivo Pem e como ele difere de outros formatos de arquivo de chave gerada pelo OpenSSL? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent Como determinar se uma variável bash está vazia? 2009-05-13 09:54:48 +0800 CST

Hot tag

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve