Hi!

I would lilke to automatically check if postfix is OK.

So i run postfix check.

Example:

# chmod 555 /usr/sbin/postqueue
# postfix check
postfix/postfix-script: warning: not set-gid or not owner+group+world
executable: /usr/sbin/postqueue


Because postfix check doesn't set the exit-code i thought to use grep -q

# postfix check | grep warning

Ok, postifx check writes to stderr:

# postfix check 2>&1 | grep warning

But grep gets no input.


I can't figure out what i'm doing wrong.

Is there a better way?


regards
Sascha

Reply via email to