I've attached a patch that I think will fix this. I removed the bit about checking to see if a password isn't required. I figured if that is the case, then the password tried later on will be blank.
Index: debian/postinst =================================================================== --- debian/postinst (revision 5) +++ debian/postinst (revision 7) @@ -298,22 +298,13 @@ db_get sympa/db_type db_type="$RET" - pass_required=1 - db_get sympa/db_askifpassneeded - case $db_type in "PostgreSQL") db_type="Pg" ;; "MySQL") db_type="mysql" - if [ "$RET" = "false" ]; then - # Check if we can gain access to MySQL without password - if mysql mysql </dev/null; then - pass_required=0 - fi - fi ;; esac Index: debian/prepare_db =================================================================== --- debian/prepare_db (revision 5) +++ debian/prepare_db (revision 7) @@ -21,6 +21,11 @@ # source debconf library . /usr/share/debconf/confmodule +db_get sympa/use_db +if [ "$RET" == "true" ]; then + pass_required=1; +fi + if [ "$pass_required" = 1 ]; then # create temporary sympa configuration file with # adminstrative credentials