Non-Hermitian Hamiltonians with unitary and antiunitary symmetries