E-FILE and file by mail

I paid $60 for federal tax return and $100 for 2 states return. I would like to file my federal return by mail but e-file my NY and MD returns. However, after I chose file by mail option for my federal tax return at last step, it didn't allow me to e-file my state tax returns.