Cron job and postmap issues
I wrote a python script that runs through our Active Directory to get a list of email addresses to use for postfix's relay recipients map. My python script works correctly, however my cron job is not. To be exact, postmap will not run. Heres the script I'm using for my cron job.
Code:
#!/bin/sh Code:
# Synchronize relay recipients from Active Directory |
cron has a minimal default env. Always specify full path to all progs, or cd into dir and then do ./myprog .
Incidentally, cron usually emails the job owner if it has a prob, so you've prob got an email in root saying 'postmap: file or dir not found' or words to that effect. |
Wow, that was easy. And yes when I checked I had some 700 messages from cron. :P
Thanks! |
glad to help.
:) |
All times are GMT -5. The time now is 04:20 AM. |