E-mails de notificação de status de entrega (atraso) do meu servidor?

1

Estou usando um servidor Debian Jessie e tenho configuração exim4 para enviar e-mails em vez de postfix ou sendmail.

Foi quando comecei a receber muitos e-mails da seguinte forma:

Primeiro:

Title: * SECURITY information for vultr.guest *

Body: vultr.guest: Dec 7 12:13:29 : root : unable to resolve host vultr.guest

Segundo:

Title: Cron test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp

Body:

This is an automatically generated Delivery Status Notification

THIS IS A WARNING MESSAGE ONLY.

YOU DO NOT NEED TO RESEND YOUR MESSAGE.

Delivery to the following recipient has been delayed:

     [email protected]

Message will be retried for 2 more day(s)

Technical details of temporary failure:
The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720
[(10) example.com. [xxx.xxx.xxx.90]:25: socket error]

----- Original message -----

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=from:to:subject:mime-version:content-type:content-transfer-encoding
         :message-id:date;
        bh=k/8GlT8DBvBIJzBOOfw8qR0kGPzj7m9ZR/aj+JOKBhg=;
        b=eA6kpVtS0eNBO0CFBfLzlnaYwZ9/GubMaWTGUkG4MaxbNy55YxY2jZAuh3RHI2mo8Q
         qp5OmKihchYTgCxcAx0xvJaXuuxDhoT9dCJ6YEIzqjmypWjpUEqoXkNu7uKU4Cd1vTfS
         5/dSvE7zVE6TYe4L18vrOiYBEUNrJQ3lTdv//RrlHZs/f62GorIyMHgVL4XvkVNLWF/K
         lK9SSybf9ee3KTKUxurBm1Tyah62Gk4/869Hynr1QEAjSAzM8sSKDyKH/KOZ06sDWtPQ
         jE0Agxffk8RkhsFkEtIbpZBfS/zagGZ8+CXsGqR9541ylMAHGOGeYtRp4oiB8tVP2Sbv
         h4Rw==
X-Received: by 10.129.114.10 with SMTP id n10mr3081975ywc.0.1449600002717;
        Tue, 08 Dec 2015 10:40:02 -0800 (PST)
Return-Path: <[email protected]>
Received: from vultr.guest ([104.156.246.90])
        by smtp.gmail.com with ESMTPSA id f203sm2998216ywf.45.2015.12.08.10.40.02
        for <[email protected]>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 08 Dec 2015 10:40:02 -0800 (PST)
From: Cron Daemon <[email protected]>
X-Google-Original-From: [email protected] (Cron Daemon)
Received: from smmsp by vultr.guest with local (Exim 4.84)
        (envelope-from <[email protected]>)
        id 1a6NBB-0007Vu-Os
        for [email protected]; Tue, 08 Dec 2015 13:40:01 -0500
To: [email protected]
Subject: Cron <smmsp@vultr> test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/lib/sendmail>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=smmsp>
Message-Id: <[email protected]>
Date: Tue, 08 Dec 2015 13:40:01 -0500

Eu editei /etc/cron.d/sendmail e primeiro tentei alterar a linha MAILTO= de root para meu endereço do gmail. Isso não ajudou. Então eu comentei essa linha, e o

*/20 *    *    *    *       smmsp   test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp

Isso fez com que parasse de me enviar e-mails a cada 20 minutos com lixo. Mas eu ainda recebo muitos e muitas vezes e-mails com o

Assunto: * informações de SEGURANÇA para vultr.guest * Corpo:

This is an automatically generated Delivery Status Notification

THIS IS A WARNING MESSAGE ONLY.

YOU DO NOT NEED TO RESEND YOUR MESSAGE.

Delivery to the following recipient has been delayed:

     [email protected]

Message will be retried for 1 more day(s)

Technical details of temporary failure:
The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720
[(10) example.com. [xxx.xxx.xxx.90]:25: socket error]

Eu modifiquei /etc/hostname e removi vultr.guest e substitui-o por example.com . E em /etc/hosts tenho apenas:

127.0.0.1   localhost
127.0.1.1   install.install install

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

O que eu configurei errado? E como posso consertar isso?

UPDATE: os conteúdos em /etc/exim4/update-exim4.conf.conf são:

dc_eximconfig_configtype='satellite'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.gmail.com::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
    
por KingsInnerSoul 10.12.2015 / 15:29

1 resposta

3

Parece-me que o tutorial da VULTR não está correto. Quando você configura o exim4 por dpkg-reconfigure exim4-config , eles pedem para você escolher mail sent by smarthost; no local mail e configurá-lo da seguinte maneira:

System mail name: YOUR_HOSTNAME
IP-addresses to listen on for incoming SMTP connections: 127.0.0.1 ; ::1
Other destinations for which mail is accepted: <BLANK>
Visible domain name for local users: <BLANK>
IP address or host name of the outgoing smarthost: smtp.gmail.com::587
Keep number of DNS-queries minimal (Dial-on-Demand)? No
Split configuration into small files? No
Root and postmaster mail recipient: <BLANK>

Mas duvido que o Other destinations for which mail is accepted: deva ser BLANK . Se você configurá-lo, adicione seu endereço de e-mail ou seu example.com domain / email.

Caso contrário, tente editar os seguintes locais:

/ etc / aliases :

root: [email protected]
mailer-daemon: [email protected]
postmaster: [email protected]
nobody: [email protected]
hostmaster: [email protected]
usenet: [email protected]
news: [email protected]
webmaster: [email protected]
www: [email protected]
www-data: [email protected]
ftp: [email protected]
abuse: [email protected]
noc: [email protected]
security: [email protected]
*: [email protected]

e edite /etc/email-addresses para incluir o usuário: combinação de e-mail:

root: [email protected]
mail: [email protected]
*: [email protected]

Em seguida, reinicie service sendmail restart e service exim4 restart

Espero que ajude

    
por 11.12.2015 / 16:06