hjoon0510 / SmartSecretary

:partly_sunny: [KOI 2018] SmartSecretary tells users current weather and important schedule in front of door as a secretary.
Other
2 stars 1 forks source link

[완료, Bug] Spam email happens continually #15

Open hjoon0510 opened 6 years ago

hjoon0510 commented 6 years ago

/etc/cron.daily/popularity-contest: 21: .: Can't open /etc/popularity-contest.conf


* Type 2:
```bash
Bcc: hjoon0510@gmail.com
Return-Path: <hjoon0510@gmail.com>
Received: from localhost ([124.50.93.6])
        by smtp.gmail.com with ESMTPSA id t67-v6sm2253575pgt.85.2018.07.03.06.49.44
        for <hjoon0510@gmail.com>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Tue, 03 Jul 2018 06:49:46 -0700 (PDT)
Message-ID: <5b3b7efa.1c69fb81.bce58.4750@mx.google.com>
From: Anacron <hjoon0510@gmail.com>
X-Google-Original-From: Anacron <root>
Received: by localhost (sSMTP sendmail emulation); Tue, 03 Jul 2018 22:49:42 +0900
Date: Tue, 03 Jul 2018 22:49:42 +0900
To: root
Subject: Anacron job 'cron.daily' on hjoon0510-desktop
Content-Type: text/plain; charset=UTF-8

/etc/cron.daily/logrotate:
Warning: apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
/etc/cron.daily/popularity-contest:
/etc/cron.daily/popularity-contest: 21: .: Can't open /etc/popularity-contest.conf
run-parts: /etc/cron.daily/popularity-contest exited with return code 2
lsy0314 commented 6 years ago

I have found a hint.


* Reference: https://wiki.archlinux.org/index.php/SSMTP#Forward_to_a_Gmail_mail_server
```bash
# The user that gets all the mails (UID < 1000, usually the admin)
root=username@gmail.com
lsy0314 commented 6 years ago