phreak Posted August 8, 2012 Posted August 8, 2012 I have a linux server doing Cron backups using Rsync on my network. I recently changed the IP of my mail server and now I am not getting the logs e-mailed through. I have checked etc\mailer.conf and changed it in there, but still no joy. Any other suggestions on where to look/change?
twin--turbo Posted August 8, 2012 Posted August 8, 2012 is it just cron that's failing to e-mail? Rob
CyberNerd Posted August 9, 2012 Posted August 9, 2012 assuming postfix as your mta, and you are looking for an upstream relay it is relayhost = x.x.x.x in /etc/postfix/main.cf (redhat) 1
phreak Posted August 9, 2012 Author Posted August 9, 2012 Ok. I just checked postfix and there was a value in there for my old e-mail server address. But not under relayhost. under #fallback_transport = smtp: So I have changed that. Also, noticed that relayhost was blank. So added it there. Should that do it you think?
CyberNerd Posted August 9, 2012 Posted August 9, 2012 you'll need to restart the postfix service - it will complain if it doesn;t like it /etc/init.d/postfix restart 1
phreak Posted August 10, 2012 Author Posted August 10, 2012 No. I'm afraid not. No mails through from my jobs overnight. Is there no way I can tell by command or otherwise to see what program the person who set it up used to configure the log mailouts? Or is there anything else you can suggest checking?
phreak Posted August 10, 2012 Author Posted August 10, 2012 Not sure if this helps, but looking at the previous logs from when it was working the mails say they are from Cron Daemon. Although that could just be the name of the email account.
CyberNerd Posted August 10, 2012 Posted August 10, 2012 Or is there anything else you can suggest checking? tail /var/log/messages
phreak Posted August 10, 2012 Author Posted August 10, 2012 When I type that in I get the following output. Aug 9 19:45:44 hq-backups vmware-guestd: nss_ldap: could not search LDAP server - Server is unavailable Aug 9 20:54:09 hq-backups vmware-guestd: nss_ldap: could not search LDAP server - Server is unavailable Aug 9 22:29:48 hq-backups vmware-guestd: nss_ldap: could not search LDAP server - Server is unavailable Aug 9 23:45:24 hq-backups vmware-guestd: nss_ldap: could not search LDAP server - Server is unavailable Aug 10 00:54:23 hq-backups vmware-guestd: nss_ldap: could not search LDAP server - Server is unavailable Aug 10 01:46:06 hq-backups vmware-guestd: nss_ldap: could not search LDAP server - Server is unavailable Aug 10 02:33:00 hq-backups vmware-guestd: nss_ldap: could not search LDAP server - Server is unavailable Aug 10 03:45:19 hq-backups vmware-guestd: nss_ldap: could not search LDAP server - Server is unavailable Aug 10 05:45:39 hq-backups vmware-guestd: nss_ldap: could not search LDAP server - Server is unavailable Aug 10 06:48:12 hq-backups vmware-guestd: nss_ldap: could not search LDAP server - Server is unavailable
phreak Posted August 10, 2012 Author Posted August 10, 2012 As you can possibly tell from this, but not sure if it is relevant. But he backup machine doing the Cron jobs is a virtual machine.
twin--turbo Posted August 10, 2012 Posted August 10, 2012 first then. test email. #echo test | mail -s "test" [email protected] and then look at the mail log /var/log/ could be a number of names. and see if that comes through. Rob 1
phreak Posted August 10, 2012 Author Posted August 10, 2012 Sent myself a test mail. That came through. But I did change something else before I tried which may have made it start working. In the postfix directory there were a number of other files that made reference to that old server. I changed them. So, do you think that will work now as the test mail came through?
twin--turbo Posted August 10, 2012 Posted August 10, 2012 what does the cron job actualy run? can you create a dummy cron job.
phreak Posted August 10, 2012 Author Posted August 10, 2012 The cron jobs run backup scripts. I suppose I could, or at least run one of the smaller backups at lunchtime.
phreak Posted August 13, 2012 Author Posted August 13, 2012 That all worked fine. Thanks for all your help everyone. On a side note I found this morning that my 2 Radius servers and 1 file server didn't send logs, but that is because my predecessor was running qmail on one and exim on another and so had to adjust those ones accordingly.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now