Solved

edit email account that cron uses to send out

Posted on 2012-03-15
7
503 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

710 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