Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

edit email account that cron uses to send out

Posted on 2012-03-15
7
Medium Priority
?
539 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
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
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

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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
Course of the Month7 days, 7 hours left to enroll

824 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