Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

edit email account that cron uses to send out

Posted on 2012-03-15
7
Medium Priority
?
521 Views
Last Modified: 2012-05-01
I get the below bounce back when try to email out cron report.

Undeliverable: Cron <root@linux> /usr/bin/wget https://www.domain.info/php/cron.php >/var/www/vhosts/default/htdocs/cron-logs-1481456

The reson it's rejected is because it trys to send out using the following email address which doesn't exsist.

MAILER-DAEMON@linux.domain.local

How do I edit the above email address so mail servers will accept it?
0
Comment
Question by:dannyfccs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 17

Expert Comment

by:Sikhumbuzo Ntsada
ID: 37724035
Can you post the error you get if possible?
0
 

Author Comment

by:dannyfccs
ID: 37724050
Delivery has failed to these recipients or distribution lists:

dan@domain.eu
An error occurred while trying to deliver this message to the recipient's e-mail address. Microsoft Exchange will not try to redeliver this message for you. Please try resending this message, or provide the following diagnostic text to your system administrator.

The following organization rejected your message: mx01.1and1.co.uk.







Diagnostic information for administrators:

Generating server: linux.domain.local

dan@domain.eu
mx01.1and1.co.uk #<mx01.1and1.co.uk #4.0.0 smtp; 421 invalid sender domain 'linux.domain.local' (misconfigured dns?)> #SMTP#

Original message headers:

Received: from linux.domain.local (unknown [127.0.0.1])      by linux.domain.local
 (Postfix) with ESMTP id 9B0865E8323      for <dan@domain.eu>; Fri,  9 Mar 2012
 12:00:01 +0000 (UTC)
Received: by linux.domain.local (Postfix, from userid 0)
      id 8A58C5E831B; Fri,  9 Mar 2012 12:00:01 +0000 (UTC)
From: Cron Daemon <root@linux.domain.local>
To: <dan@domain.eu>
Subject: Cron <root@linux> /usr/bin/wget https://www.domain.info/php/cron.php >/var/www/vhosts/default/htdocs/cron-logs-1481456
Content-Type: text/plain; charset="UTF-8"
Auto-Submitted: auto-generated
X-Cron-Env: <MAILTO=dan@domain.eu>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-ID: <20120309120001.8A58C5E831B@linux.domain.local>
Date: Fri, 9 Mar 2012 12:00:01 +0000
MIME-Version: 1.0

I've just replaced domain names local or external with domain.
0
 
LVL 17

Expert Comment

by:Sikhumbuzo Ntsada
ID: 37724071
I don't think there is a problem with the mailer-daemon, are you able to send a normal e-mail to "dan@domain.eu"?
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

Author Comment

by:dannyfccs
ID: 37724075
Yes, the mailer-daemon address isn't a correct email address that's why it rejects it.
0
 
LVL 17

Expert Comment

by:Sikhumbuzo Ntsada
ID: 37724313
I see the host is using a fictional name, I don't see how we can just change the e-mail address - I think we need a new approach.

I was reading the following link - see if you can follow and let's discuss

http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/sendmail-upgrades.html
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 37726318
In /etc/postfix/main.cf, what do you have for $myhostname, $myorigin, and $mydomain ?

Check out http://www.postfix.org/postconf.5.html#myhostname -- your sending server hostname and email from-domain need to be internet-resolvable, they cannot end in .local.
0
 
LVL 7

Accepted Solution

by:
torakeshb earned 1500 total points
ID: 37727955
The change required are

(1) mailing domain name needs to be changed - some thing like  linux.domain.co.uk.


(2) add a valid forward and reverse DNS entry for domain  linux.domain.co.uk.

OR

Your exchange needs to relay the server from which the mail is generated.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question