LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-24-2014, 06:27 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 713

Rep: Reputation: Disabled
Server sends emails ever 30 minutes


I recently configured postfix and stopped sendmail.

I am now getting Delivery Status Notification (Failure)messages to my home email every 30 minutes. First thought was a cron job. Checked it and sure enough. Commented the line out, but still getting them ever 30 minutes.

Code:
[root@vps ~]# crontab -e
# 30 * * * * /etc/init.d/minecraft backup
Is there another crontab? Do I need to flush this one after making a change or restart some service?

Thank you
 
Old 04-24-2014, 09:12 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,711

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
If it is due to an addressing error, you get this every time the mail server attempts to deliver a message. And if it can't be delivered, it will try again as the message will be attempted again as it sits in a mail queue (usually /var/spool/mqueue) until removed, or until the configured expiration time reached.
 
Old 04-26-2014, 04:55 PM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 713

Original Poster
Rep: Reputation: Disabled
Hi Jpollard,

I understand the address error part, but not why an email was being sent every 30 minutes. I rebooted the machine, and it has stopped. Which makes me think just updating using "crontab -e" might not be enough, and I need to restart the service after making the changes.
 
Old 04-26-2014, 10:06 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,711

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
crontab -e is sufficient. The only time that isn't is when you edit the crontab maintained by the system directly.

This is because crond keeps a list in memory of all users entries, sorted by start time. Editing directly doesn't get crond to reload the file, which crontab -e does.

I usually keep a crontab in my home directory and edit that, then use crontab to load it. That way I have a backup and can reload if a system update (or alternate root) gets used that wipes it out (or doesn't have the current one).

Last edited by jpollard; 04-26-2014 at 10:09 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Postfix] Who sends large amount of emails? proNick Linux - Newbie 5 11-05-2013 03:53 AM
[SOLVED] Cronjob or sendmail sends mutiple emails linuxguy7820 Linux - Newbie 4 03-31-2011 12:35 PM
My email server sends mails but does not receive hubergeek Linux - Networking 2 07-14-2010 09:27 AM
Moving emails in evolution sends them to trash. Red_Shadow Linux - Desktop 2 09-14-2009 05:04 AM
sendmail server just sends mail from localhost reneve59 Linux - Server 3 09-21-2007 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration