BOSTON — A hearing to determine whether a Pakistani man living in South Portland should be released from federal custody has been postponed until June 2.

The hearing started today at 1 p.m. at Boston Immigration Court but Mohammad Shafiq Rahman’s lawyer asked for the continuance.

Attorney Cynthia Arn said she needed time to prepare paperwork, as Rahman seeks to change his immigration status.

Based on his marriage to South Portland resident Sarah Rahman, Mohammad Rahman will seek permanent legal residence status. He is currently in the country illegally because his work visa expired in 2006.

Rahman, 34, has been in jail in Portland since May 13, as federal investigators probe his alleged financial connections to Faifal Shahzad, the suspect in an attempted bombing in New York City’s Times Square.

Rahman and his lawyer appeared via closed-circuit television from the jail in Portland. Immigration Judge Francis L. Cramer presided.