Gerry wrote:
> Can anyone guide me in setting up a sendmail rule or configuration that 
> sends numeric addresses like phone numbers to a particular user or process?
> 
> I would like to have sendmail accept mail from a copier and route it to 
> the fax send process if and only if the userid looks like a fax number.
> e.g.  6121231234 at faxserver.company.com
> 
> It must be built off of the regexp map like this but I don't understand 
> what to put in the last line to actually get it to deliver to someone else.
> 
> #LOCAL_CONFIG
>  Kallnumbers regex -a at MATCH ^[0-9]+$
>  LOCAL_RULESETS
>  SLocal_check_mail          # check address against\
>                              various regex checks
>  R$*                        $:  $>Parse0 $>3 $1
>  R$+ < @ bigisp.com.  >48   $:  $(allnumbers $1 $)
>  R at MATCH                    $#error $:553 Header Error
> 
> 
> But even if I figure that out, what am I supposed to put in an mc file 
> (as opposed to the cf file) ?
> 
> I'm running Redhat 9 and sendmail-8.12.
> 
> Displaying my ignorance,
> Gerry
> 

Hylafax has a component called faxmail that you can use for this type of 
setup. You would actually send the mail to $RECIPIENT@$FAXNUMBER.FAX, 
i.e. josh at 18005551212.fax. You would then add a config line to Sendmail 
to let it know what to do to things going to the fax domain. There is a 
write up on the Hylafax website.
http://www.hylafax.org/howto/clients/sendmail-faxmail-mangling.html

Josh