LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-20-2011, 02:57 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
postfix or sendmail from crontab?


I have registered my email address in the etc/aliases file.
I have also put a hardcoded email address into etc/crontab.
However, I am not receiving any emails from the crontab processes, which run every 10mins.

/var/maillog has entries but stopped as of a few hours ago.
Is there any difference between sendmail and postfix?

mails from PHP scripts are working correctly and arriving so I'm not sure what the problem is.

Code:
[root@vps8259 zoneinfo]# service postfix restart
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [FAILED]
[root@vps8259 zoneinfo]# service sendmail restart
Shutting down sm-client:                                   [  OK  ]
Shutting down sendmail:                                    [  OK  ]
Starting sendmail:                                         [  OK  ]
Starting sm-client:                                        [  OK  ]
[root@vps8259 zoneinfo]#
Code:
Sep 20 00:06:30 vps8259 sendmail[3473]: p8K66LrP003470: to=<root@vps8259.hosting.com>, ctladdr=<root@vps8259.lws-hosting.com> (0/0), delay=00:00:09, xdelay=00:00:09, mailer=$
Sep 20 01:39:30 vps8259 postfix[3746]: fatal: config variable inet_interfaces: host not found: localhost
Sep 20 01:39:31 vps8259 sendmail[3747]: alias database /etc/aliases rebuilt by jason
Sep 20 01:39:31 vps8259 sendmail[3747]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Sep 20 01:39:36 vps8259 postfix[3748]: fatal: config variable inet_interfaces: host not found: localhost
Sep 20 01:39:43 vps8259 sendmail[3771]: alias database /etc/aliases rebuilt by jason
Sep 20 01:39:43 vps8259 sendmail[3771]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Sep 20 01:39:43 vps8259 sendmail[3776]: starting daemon (8.13.8): SMTP+queueing@01:00:00
Sep 20 01:39:43 vps8259 sm-msp-queue[3784]: starting daemon (8.13.8): queueing@01:00:00
Sep 20 09:58:37 vps8259 sendmail[3831]: alias database /etc/aliases rebuilt by jason
Sep 20 09:58:37 vps8259 sendmail[3831]: /etc/aliases: 77 aliases, longest 19 bytes, 788 bytes total
Sep 20 10:01:40 vps8259 postfix[3859]: fatal: config variable inet_interfaces: host not found: localhost
Sep 20 10:01:41 vps8259 sendmail[3860]: alias database /etc/aliases rebuilt by jason
Sep 20 10:01:41 vps8259 sendmail[3860]: /etc/aliases: 77 aliases, longest 19 bytes, 788 bytes total
Sep 20 10:01:41 vps8259 postfix[3861]: fatal: config variable inet_interfaces: host not found: localhost
Sep 20 10:01:49 vps8259 sendmail[3884]: alias database /etc/aliases rebuilt by jason
Sep 20 10:01:49 vps8259 sendmail[3884]: /etc/aliases: 77 aliases, longest 19 bytes, 788 bytes total
Sep 20 10:01:49 vps8259 sendmail[3889]: starting daemon (8.13.8): SMTP+queueing@01:00:00
Sep 20 10:01:49 vps8259 sm-msp-queue[3897]: starting daemon (8.13.8): queueing@01:00:00

Last edited by qwertyjjj; 09-20-2011 at 04:13 AM.
 
Old 09-21-2011, 01:15 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why are you trying to run both postfix and sendmail??? cron will use the "mail" program to send out an email, this program is provided by both MTA packages, so you need to be clear which one you are using. I would suggest postfix, and so totally uninstall sendmail.
 
Old 09-21-2011, 02:11 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
postfox doesn't seem to start.
Does that mean I am using sendmail by default.
Can I uninstall postfix?
 
Old 09-22-2011, 04:30 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by acid_kewpie View Post
why are you trying to run both postfix and sendmail??? cron will use the "mail" program to send out an email, this program is provided by both MTA packages, so you need to be clear which one you are using. I would suggest postfix, and so totally uninstall sendmail.
I second this. If postfix is not starting, you can check the various log files in /var/log to get a clue why it’s not working.
 
  


Reply



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 error :use the Postfix sendmail command soroccoheaven Linux - Server 4 02-03-2016 01:55 AM
Perl, Sendmail & Crontab msw1970 Programming 6 09-25-2010 01:05 PM
SYSadmin installed postfix, now sendmail sends to qmail not postfix. Why? pablocullen Linux - Server 1 11-18-2009 04:53 PM
crontab sendmail linuxhippy Slackware 13 07-24-2006 03:02 PM
Postfix vs Sendmail vs ... mikeghet General 3 05-14-2005 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:37 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
Open Source Consulting | Domain Registration