나는 Debian Jessie 서버를 사용하고 있으며설정 4번출구postfix나 sendmail 대신 이메일을 보내주세요.
그때부터 다음과 같은 이메일을 많이 받기 시작했습니다.
첫 번째:
제목:*vultr.guest에 대한 보안 정보*
텍스트: vultr.guest: 12월 7일 12:13:29: 루트: vultr.guest 호스트를 확인할 수 없습니다.
두번째:
제목: Cron test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
몸:
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
편집하고 먼저 /etc/cron.d/sendmail
해당 행을 내 Gmail 주소로 변경해 보았습니다. 그러나 이것은 도움이 되지 않습니다. 그래서 나는 그 줄에 주석을 달고MAILTO=
root
*/20 * * * * smmsp test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
이렇게 하면 20분마다 스팸 메일을 보내지 않게 됩니다. 하지만 난 아직도 항상 많은 이메일을 받고 있어요
주제:*vultr.guest에 대한 보안 정보* 몸:
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]
나는 그것을 수정 /etc/hostname
하고 삭제 vultr.guest
하고 사용했습니다 example.com
. 내가 /etc/hosts
가진 것은 다음과 같습니다.
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
내가 무엇을 잘못 구성했나요? 어떻게 해결할 수 있나요?
업데이트: /etc/exim4/update-exim4.conf.conf
내용은 다음과 같습니다.
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'
답변1
VULTR의 튜토리얼이 잘못된 것 같습니다. 다음을 통해 exim4를 구성할 때 dpkg-reconfigure exim4-config
옵션을 알려줍니다 mail sent by smarthost; no local mail
.
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>
그러나 나는 그것이 Other destinations for which mail is accepted:
사실이어야 한다고 생각한다 BLANK
. 구성하는 경우 이메일 주소 또는 example.com
도메인/이메일을 추가하세요.
그렇지 않으면 다음 위치를 편집해 보십시오.
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]
/etc/email-addresses
사용자:이메일 조합을 포함하도록 편집되었습니다 .
root: [email protected]
mail: [email protected]
*: [email protected]
그런 다음 재부팅
service sendmail restart
하고service exim4 restart