LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-05-2008, 06:50 AM   #1
honey bee
LQ Newbie
 
Registered: Jan 2006
Location: Islamabad,Pakistan
Posts: 29

Rep: Reputation: 15
Question Mail for CronJobs!


Hello

I have assigned some cron jobs to my FC4 machine, if the mail is set for system user, it is delivered and if the mail is set for any outer domain, it is not delivered.What can be the issue?
 
Old 07-05-2008, 09:54 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
It's easiest to start looking at the logs of your mailer. Chances
are that the intended recipient rejects mail from machines w/o an
official MX record. I would/do.


Cheers,
Tink
 
Old 07-06-2008, 01:48 AM   #3
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
Or the MTA is configured for local-only delivery. Recollection tells me this was standard in RH & Fedora distros. But I dont' know which MTA you are using. Postfix or Sendmail?
 
Old 07-06-2008, 09:56 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by Mr. C. View Post
Or the MTA is configured for local-only delivery. Recollection tells me this was standard in RH & Fedora distros. But I dont' know which MTA you are using. Postfix or Sendmail?
If it's Red Hat or Fedora, by default it should be sendmail unless they've specified postfix or another MTA.
 
Old 07-07-2008, 02:32 PM   #5
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
Quote:
Originally Posted by honey bee View Post
Hello

I have assigned some cron jobs to my FC4 machine, if the mail is set for system user, it is delivered and if the mail is set for any outer domain, it is not delivered.What can be the issue?
If there is a dedicated mail server in your environment, with a public MX record, you should set up sendmail to forward mail to it. Make sure you talk to whoever the mail admin is to allow relaying from your machine.

If you are using this from home, find out what the public mx is for your ISP, and set that as the smart relay.

To forward emails to a smart relay, you can just hack DS macro in sendmail.cf, but the politically correct way to do this is to edit the sendmail.cm file, and change the line:

dnl define(`SMART_HOST', `smtp.your.provider')dnl

to

define(`SMART_HOST', `hostname_or_ip_address_of_mail_server')dnl

Save that, then run (example on CentOS):

m4 /etc/mail/sendmail.cf > /etc/mail/sendmail.cf

Then restart sendmail.

Hope this helps.
 
  


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
some cronjobs don't work xpucto Linux - Newbie 5 05-05-2008 07:25 AM
Local users cannot send mail from command line or cronjobs jonken Linux - Server 3 01-10-2008 04:29 PM
Problem with cronjobs..... freakin'me Linux - General 7 02-11-2006 04:08 PM
outdated cronjobs bujecas Linux - Software 6 08-04-2005 11:24 AM
is there a way to stop cronjobs mail for certain acticities manojthakkar Linux - General 5 12-08-2003 11:56 PM


All times are GMT -5. The time now is 04: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration