You need 6 months remaining on your passport. The airlines enforce the rule, not immigration.