Faxing with a fax machine and asterisk

I have a fax machine connected to an FXS port. In order to get it to work reliably in both directions I have had to disable faxdetect. This, of course, disables my ability to receive faxes to email. Any ideas on how I can solve this dilemma?