Cron <root@DietPi> /usr/local/sbin/

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Posts: 1
Joined: Thu Oct 11, 2018 5:47 pm

Cron <root@DietPi> /usr/local/sbin/

Post by pinito »

I have noticed that every-time I reboot my rock64, I get a cron's email to my gmail account.

I have set up few cron jobs myself but even though they are disabled now, I keep getting this email from cron..

Could anyone help me out to understand this "strange" behavior?

I am attaching below my smtp.conf file

Code: Select all

# Config file for sSMTP sendmail
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.

# The place where the mail goes. The actual machine name is required no 
# MX records are consulted. Commonly mailhosts are named

# Where will the mail seem to come from?

# The full hostname

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address

This is the cron's email that I get every-time I reboot my machine.
In case you are wondering, I do not have this behavior with other distros.
cron's email
cron's email
User avatar
Site Admin
Posts: 3201
Joined: Sat Nov 18, 2017 6:21 pm

Re: Cron <root@DietPi> /usr/local/sbin/

Post by MichaIng »

Hmm, not much experience with local mails, but the default hostname on DietPi images is "DietPi".

So if the mail goes to user@host non-case-sensitive, this would be root@dietpi.

So now you configured smtp with "hostname=rock64", so is "rock64" really the correct hostname? To check: cat /etc/hostname

Also it is recommended to use the FQDN as hostname, e.g.
You can change it via: dietpi-config > Security Options > Change Hostname
Post Reply