Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OMG, something went wrong with my email notifications in nagios.
Just when i thought i have successfully set it up..
Suddenly, just so suddenly it failed. x_x
HELP.
I got the mail below:
Code:
Delivery to the following recipient failed permanently:
root@server.com
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 #5.1.0 Address rejected root@server.com (state 14).
----- Original message -----
Received: by 10.114.109.1 with SMTP id h1mr16785732wac.203.1281263841711;
Sun, 08 Aug 2010 03:37:21 -0700 (PDT)
Return-Path: <layleng91@gmail.com>
Received: from ubuntu (bb119-74-182-12.singnet.com.sg [119.74.182.12])
by mx.google.com with ESMTPS id s5sm7619999wak.12.2010.08.08.03.37.19
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Sun, 08 Aug 2010 03:37:21 -0700 (PDT)
Received: by ubuntu (Postfix, from userid 0)
id 15A0B40A6B; Sun, 8 Aug 2010 18:37:06 +0800 (SGT)
From: Anacron <xanios@gmail.com>
To: root@server.com
Subject: Anacron job 'cron.daily' on ubuntu
Message-Id: <20100808103707.15A0B40A6B@ubuntu>
Date: Sun, 8 Aug 2010 18:37:06 +0800 (SGT)
/etc/cron.daily/logrotate:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Do refer to my previous threads regarding me setting up of the email notifications.. Thanks..
If you are relaying email using Gmail smtp server and sending to your internal mail account that you have setup on your internal mail server, it wont ever be relayed. How would gmail smtp know of your internal server when there is no proper DNS record set for it?
Send your notification to your gmail account and it should work.
I just created a new gmail account and used that account to receive mails, and that was no problem. I'm able to receive mails. I wonder whats wrong with my previous email account. It was able to receive mails from 7th of august until yesterday. ):
If you are relaying email using Gmail smtp server and sending to your internal mail account that you have setup on your internal mail server, it wont ever be relayed. How would gmail smtp know of your internal server when there is no proper DNS record set for it?
Send your notification to your gmail account and it should work.
Hi Chaitanya,
Sounds a little confusing, sorry >.<
What you mean by send my notification to my gmail account?
Read your previous post. That is what I meant. You would not be able to receive mails on root@server, which is your internal address. This is because you are using Gmail as relay. Gmail would not know about your internal server as you do not have DNS set up properly. But you can send to gmail address as gmail SMTP would be able to resolve it.
Read your previous post. That is what I meant. You would not be able to receive mails on root@server, which is your internal address. This is because you are using Gmail as relay. Gmail would not know about your internal server as you do not have DNS set up properly. But you can send to gmail address as gmail SMTP would be able to resolve it.
Hi,
So you're saying i'm sending mails to my root@server? But, how could that be? I mean, i've defined the gmail address that i want email notifications to send to, where did that root@server popped out. x_x
Did you configure your server to relay ALL e-mail to gmail? It could be automatic log reports or some other services trying to send information to root.
It looks to me that this mail is a system mail that's being sent from a deamon (cron) to the root user on your server. Since you're relaying ALL your mail to GMail you're getting this error because GMail cannot resolve your domain/host. Normally the simplest way is to create a file named .forward in your root's home directory (and maybe also in your user home directory) containing your destination email address. Like this:
Not sure if you should restart postfix but it wouldn't hurt. With this 'forward' file all mails to the root user will be automagically forwarded to your gmail address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.