X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4078e8a24878c584541a6caa8554c751121ab2b4..57581b5a08cee77f74d7404cedde7375f6ae75b0:/test/common.sh.in diff --git a/test/common.sh.in b/test/common.sh.in index fa8a0379..b1fd4840 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -145,6 +145,12 @@ setup_test () else (cd ${MH_OBJ_DIR} && make DESTDIR=${MH_INST_DIR} SETGID_MAIL= install) || exit 1 + + #### Don't test with sendmail because it would really send the + #### mail. If configured to use sendmail, change to smtp instead + #### so that we use fakesmtp. + sed -e 's/mts: *sendmail/mts: smtp/' ${MHMTSCONF} >${MHMTSCONF}.new + mv -f ${MHMTSCONF}.new ${MHMTSCONF} fi # clean old test data