[CentOS] Help with /usr/share/sendmail-cf/m4/proto.m4 - fax macro

Christopher Chan christopher at ias.com.hk
Fri Dec 7 15:07:43 UTC 2007


Robert Moskowitz wrote:
> OK.  Digging into this...
> 
> sendmail.m4 has the lines:
> 
>       define(`FAX_MAILER_PATH',`/usr/bin/faxmail')dnl
>       define(`FAX_MAILER_ARGS',`faxmail -d -n -p 12pt $u@$h $f')dnl
>       MAILER(`fax')dnl
> 
> proto.m4 has:
> 
> `R$+ < @ $+ .FAX. >     $#fax $@ $2 $: $1               user at host.FAX',
> `ifdef(`FAX_RELAY',
> `R$*<@$+.FAX.>$*                $: $>MailerToTriple < $F > $1 <@$2.FAX.> 
> $3     user at host.FAX',
> 
> sendmail.cf has:
> 
> R$+ < @ $+ .FAX. >  $#fax $@ $2 $: $1               user at host.FAX
> 
> If the To: header is:  joe at 222.fax.foo.com
> 
> creates a -d argument of:  >joe<@2201.fax.foo.com.
> 
> changing the proto.m4 to:
> 
> 
> `R$+ < @ $+ .FAX. >     $#fax $@ $2 $: $1               user at host',
> `ifdef(`FAX_RELAY',
> `R$*<@$+.FAX.>$*                $: $>MailerToTriple < $F > $1 <@$2> 
> $3     user at host',
> 
> makes no difference....

Try changing that to:

`ifdef(`FAX_RELAY',
`R$*<@$+.fax.foo.com.>$*                $: $>MailerToTriple < $F > $1 
<@$2.fax.foo.com>
  $3     user at host.fax.foo.com',



More information about the CentOS mailing list