Advertisement

02.01.2007 at 06:29PM PST, ID: 22146463
[x]
Attachment Details

sendmail does not work for crontab on Linux

Asked by akaodin in SendMail Email Server

Tags: sendmail, crontab, does

Hi,
  I am able running Apache (1.3.29) on a Linux 9.0 server.  All is well w/ sendmail until I try to run a crontab job which executes a sendmail to an address which is not on my mail server (hosted by my service provider).   I get a returned-mail msg as follows:

From MAILER-DAEMON@djx.odin.com  Thu Jan 11 00:01:04 2007
Return-Path: <MAILER-DAEMON@djx.odin.com>
Received: from localhost (localhost)
      by djx.odin.com (8.12.8/8.12.8) id l0B513p1005911;
      Thu, 11 Jan 2007 00:01:03 -0500
Date: Thu, 11 Jan 2007 00:01:03 -0500
From: Mail Delivery Subsystem <MAILER-DAEMON@djx.odin.com>
Message-Id: <200701110501.l0B513p1005911@djx.odin.com>
To: <root@djx.odin.com>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
      boundary="l0B513p1005911.1168491663/djx.odin.com"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
Status: RO

This is a MIME-encapsulated message

--l0B513p1005911.1168491663/djx.odin.com

The original message was received at Thu, 11 Jan 2007 00:01:02 -0500
from localhost [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<akaodin@google.com>
    (reason: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1))

   ----- Transcript of session follows -----
... while talking to relay.fast.net.:
>>> DATA
<<< 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
550 5.1.1 <akaodin@google.com>... User unknown
<<< 503 RCPT first (#5.5.1)

--l0B513p1005911.1168491663/djx.odin.com
Content-Type: message/delivery-status

Reporting-MTA: dns; djx.odin.com
Received-From-MTA: DNS; localhost
Arrival-Date: Thu, 11 Jan 2007 00:01:02 -0500

Final-Recipient: RFC822; akaodin@google.com
Action: failed
Status: 5.1.3
Remote-MTA: DNS; relay.fast.net
Diagnostic-Code: SMTP; 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
Last-Attempt-Date: Thu, 11 Jan 2007 00:01:03 -0500

--l0B513p1005911.1168491663/djx.odin.com
Content-Type: message/rfc822


I only get the error condition when the sendmail is executed by a crontab job.  It works fine otherwise.  Any help will be greatly appreciated.  Thx.Start Free Trial
[+][-]02.01.2007 at 08:23PM PST, ID: 18450188

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.01.2007 at 09:36PM PST, ID: 18450411

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SendMail Email Server
Tags: sendmail, crontab, does
Sign Up Now!
Solution Provided By: anfi
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.04.2007 at 05:22AM PST, ID: 18462828

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2007 at 05:25AM PST, ID: 18462833

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32