I'm trying to send mail through shell and it freezes. the script seems fine and i'm really confused. here it is in PHP: 

```
$mail = '/usr/bin/mail -a 
    "Content-type: '.$header_content_type.';"
    -a "Reply-to: '.$header_reply_to.';"
    -a "List-Unsubscribe: '.$header_unsub.';"
    -s "'.$header_subject.'" "'.$email.'" < '.$myFile.'';
    exec($mail);

```

i echo'd everything to make sure it was pulling data into the variables and it was. when it executes, it freezes and does nothing. could this be a permissions error?

\*\* EDIT \*\*

i checked the mail log and saw an issue with virtual\_alias\_maps in the postfix main.cf
i made the necessary adjustments and it seems to work great. thanks to all!