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'