diff options
Diffstat (limited to 'etc/periodic/daily/500.queuerun')
-rwxr-xr-x | etc/periodic/daily/500.queuerun | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/periodic/daily/500.queuerun b/etc/periodic/daily/500.queuerun index 2a8b2a1..f46c246 100755 --- a/etc/periodic/daily/500.queuerun +++ b/etc/periodic/daily/500.queuerun @@ -18,13 +18,15 @@ case "$daily_queuerun_enable" in echo '$daily_queuerun_enable is set but /usr/sbin/sendmail' \ "isn't executable" rc=2 - elif [ ! -d /var/spool/mqueue ] - then - echo '$daily_queuerun_enable is set but /var/spool/mqueue' \ - "doesn't exist" - rc=2 else /usr/sbin/sendmail -q >/dev/null 2>&1 & + case "$daily_submit_queuerun" in + [Yy][Ee][Ss]) + if [ -f /etc/mail/submit.cf ] + then + /usr/sbin/sendmail -q -Ac >/dev/null 2>&1 & + fi;; + esac rc=0 fi;; |