Re: How does the OS manage to email faxes?
Re: How does the OS manage to email faxes?
- Subject: Re: How does the OS manage to email faxes?
- From: Quinn <email@hidden>
- Date: Wed, 24 Jan 2007 10:13:15 +0000
At 22:08 +0000 23/1/07, email@hidden wrote:
This may not be the appropriate place to ask, but I couldn't think
of a better alternative.
Fair enough. I love it when questions like this come in because it
gives me an excuse to explore parts of the system that I've never
looked at before (-:
It turns out that all of this fax stuff is handled by the efax package.
<http://www.cce.com/efax/>
The source that we use is part of Darwin:
<http://www.opensource.apple.com/darwinsource/10.4/efax-23/>
[This link requires an APSL <http://www.opensource.apple.com/apsl/>
account.]
When you enable fax reception, the system enables the "fax" entry in
<x-man-page://5/ttys>. When a fax arrives, the system runs
<x-man-page://1/fax>. The configuration file for this program
("/etc/efax.rc") specifies "/usr/libexec/fax/faxnotify" as the fax
notification mechanism. "/usr/libexec/fax/faxnotify". That program
is actually just a python script, so you can read it for yourself.
When it's asked to email the fax, it does so by exec'ing
<x-man-page://1/sendmail>.
I believe that this will just send the email directly. That is,
rather than try to pass the email to a relay SMTP, it will just look
up the ultimate destination SMTP and send it to that. However, I
can't be sure (I don't have time to dig into "sendmail" today). It
would be simple to test though: just run "sendmail" with the same
arguments as those used by "faxnotify", and see what happens.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden