Home Forums OS X Server and Client Discussion Mail 10.3 mail backup script trouble

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #360254
    bustthis
    Participant

    i’ve been having problems with the mail back script after many months
    of it working really well. i included the script sudo /usr/local/bin/mailback -b /Volumes/Raid/Backups/mailbackup/ -p in /etc/daily.local
    and every night at 3:15 when it runs postfix starts complaining – postfix/postfix-script: fatal: the Postfix mail system is already running.
    if i run the script manually it doesn’t happen. i could live with the error message, but it seems like /usr/libexec/postfix/master quits and is never restarted, i would guess by watchdog? i’m not sure why this might be happening after working so well for several months, but could the size of my mailboxes be the culprit? maybe my cyrus.squat index files? i have no clue, but hopefully someone can help me figure it out Smile

    #360266
    bustthis
    Participant

    i tried that, but had unexpected results. i get no error message, but /usr/libexec/postfix/master never starts up after. watchdog seemed to reload all services during one of my tests with the edited script.
    root: backing up the mail system to /Volumes/Raid/Backups/mailbackup/
    Dec 29 01:27:41 kingpin master[7008]: exiting on SIGTERM
    Dec 29 01:27:48 kingpin kadmind[392]: finished, exiting
    Dec 29 01:27:48 kingpin krb5kdc[393]: Interrupted system call – while selecting for network input(1)
    Dec 29 01:27:48 kingpin krb5kdc[393]: shutting down
    Dec 29 01:27:51 kingpin master[7114]: process started
    Dec 29 01:27:51 kingpin kadmind[7115]: Seeding random number generator
    Dec 29 01:27:51 kingpin kadmind[7115]: No dictionary file specified, continuing without one.
    Dec 29 01:27:51 kingpin kadmind[7115]: starting
    Dec 29 01:27:51 kingpin krb5kdc[7116]: setting up network…
    Dec 29 01:27:51 kingpin krb5kdc[7116]: listening on fd 8: udp
    Dec 29 01:27:51 kingpin krb5kdc[7116]: listening on fd 9: udp 10.0.0.3.88
    Dec 29 01:27:51 kingpin krb5kdc[7116]: set up 2 sockets
    Dec 29 01:27:51 kingpin krb5kdc[7116]: commencing operation
    Dec 29 01:27:51 kingpin ctl_cyrusdb[7118]: recovering cyrus databases
    Dec 29 01:27:52 kingpin charlesx: mail system backed up
    Dec 29 01:27:55 kingpin ctl_cyrusdb[7118]: done recovering cyrus databases
    Dec 29 01:27:55 kingpin master[7114]: ready for work

    i’m a little confused on what adds the line postfix:respawn:/usr/libexec/postfix/master to /etc/watchdog.conf? meaning, if this line is present during startup, the postfix startup item will complain that it has failed to start, so i always need to comment that line out in watchdog manually everytime i need to reboot the server, then periodic daily will add the line if it’s commented out or not present in /etc/watchdog.conf at 3:15 am, so why wouldn’t postfix master start if this script is in daily.local?

    #360330
    bustthis
    Participant

    the script seems to work again, i still get the “fatal: the Postfix mail system is already running” warning every other day when the script runs, but i guess it’s working.

    i am still confused a little about watchdog-postfix startup, but i think it makes more sense to me now. can anyone tell me what adds the line “postfix:respawn:/usr/libexec/postfix/master” to watchdog.conf, or is this just a stupid question? Smile

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed