From 21fdc034e29dd3299232633947cadd55455c338d Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Dec 29 2013 20:49:50 +0000 Subject: added some debugging in case imap-dovecot login fails --- diff --git a/tests/p_dovecot/dovecot_imap_login.sh b/tests/p_dovecot/dovecot_imap_login.sh index f191bee..7c88962 100755 --- a/tests/p_dovecot/dovecot_imap_login.sh +++ b/tests/p_dovecot/dovecot_imap_login.sh @@ -28,6 +28,11 @@ sleep 3 echo -e "01 LOGIN imaptest imaptest\n" | nc -w 5 localhost 143 | grep -q "Logged in." ret_val=$? +if [ $ret_val != 0 ] +then + tail /var/log/secure + tail /var/log/maillog +fi t_CheckExitStatus $ret_val userdel -rf imaptest