+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
*nix Thread, Cron mail question in Technical; I have a linux server doing Cron backups using Rsync on my network. I recently changed the IP of my ...
  1. #1

    Join Date
    Apr 2007
    Location
    London
    Posts
    235
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    16

    Cron mail question

    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?

  2. #2

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    149
    is it just cron that's failing to e-mail?

    Rob

  3. #3

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,714
    Thank Post
    269
    Thanked 1,116 Times in 1,012 Posts
    Rep Power
    345
    postfix conf?

  4. Thanks to glennda from:

    phreak (13th August 2012)

  5. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338
    assuming postfix as your mta, and you are looking for an upstream relay it is

    Code:
    relayhost = x.x.x.x
    in /etc/postfix/main.cf (redhat)

  6. Thanks to CyberNerd from:

    phreak (13th August 2012)

  7. #5

    Join Date
    Apr 2007
    Location
    London
    Posts
    235
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    16
    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?

  8. #6


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338
    you'll need to restart the postfix service - it will complain if it doesn;t like it

    /etc/init.d/postfix restart

  9. Thanks to CyberNerd from:

    phreak (13th August 2012)

  10. #7

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    149
    yes is should expect so.

    Rob

  11. #8

    Join Date
    Apr 2007
    Location
    London
    Posts
    235
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    16
    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?

  12. #9

    Join Date
    Apr 2007
    Location
    London
    Posts
    235
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    16
    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.

  13. #10


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338
    Quote Originally Posted by phreak View Post
    Or is there anything else you can suggest checking?
    Code:
    tail /var/log/messages

  14. #11

    Join Date
    Apr 2007
    Location
    London
    Posts
    235
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    16
    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

  15. #12

    Join Date
    Apr 2007
    Location
    London
    Posts
    235
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    16
    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.

  16. #13

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    149
    first then.

    test email.

    #echo test | mail -s "test" your@email.com

    and then look at the mail log /var/log/ could be a number of names.

    and see if that comes through.

    Rob

  17. Thanks to twin--turbo from:

    phreak (13th August 2012)

  18. #14

    Join Date
    Apr 2007
    Location
    London
    Posts
    235
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    16
    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?

  19. #15

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    149
    what does the cron job actualy run?

    can you create a dummy cron job.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 17th July 2012, 10:02 AM
  2. Replies: 24
    Last Post: 19th May 2011, 12:44 PM
  3. W7 Live Mail 2011 Question
    By Dos_Box in forum Windows 7
    Replies: 1
    Last Post: 20th January 2011, 10:04 AM
  4. Exchange mail question
    By Hecate in forum Windows
    Replies: 5
    Last Post: 27th May 2010, 12:32 PM
  5. Spamassasin Question
    By Dos_Box in forum *nix
    Replies: 3
    Last Post: 23rd June 2005, 10:27 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •