HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] faxmail, change sender?



Am Mo 17.01.2005 14:53 schrieb Sven Gehr <sven@xxxxxxxxxxxxx>:
> Am Do 13.01.2005 11:26 schrieb Bodo Meissner <bodo@xxxxxxxxx>:
> >Am 2005.01.13 08:19 schrieb(en) Sven Gehr:

Hi@all,

> >>In the incomming faxmail was the from set to:
> >>
> >>+49 621 48293xx
> >>
> >>I need the format:
> >>
> >>004962148293xx@fax.[myserver].[mylocaldomain]
> >>
> >>How can i adjust this?
> >
> >MYSENDER=`echo $SENDER|sed -e 's/ //g' -e 's/^+/00/' -e 's/$/@fax.
> >[myserver].[mylocaldomain]/'`
> >
> >This simple solution works only if $SENDER is in the format of your
> >example.
> >
> >I think $SENDER is what the sender configured in his fax machine or fax
> >server. You must expect to get different number formats, empty strings,
> >something like "<unknown>" or other junk.
>
> ok, i test following:
>
> I define in /var/spool/fax/bin/faxrcvd
>
> [...]
> ABSENDER=`echo $SENDER|sed -e 's/ //g' -e 's/^+/00/' -e
> 's/$/@fax.postgirl.dreampixel/'`
> [...]
> if [ -n "$SENDTO" ]; then
>        (MIMEBOUNDARY="NextPart$$"
>         echo "Mime-Version: 1.0"
>         echo "Content-Type: Multipart/Mixed; Boundary="$MIMEBOUNDARY""
>         echo "Content-Transfer-Encoding: 7bit"
>         echo "To: $SENDTO"
>         echo "From: $ABSENDER"
> [...]
>
> The incomming mail has:
>
> ""@fax.postgirl.dreampixel
>
> in the from-field.

I find the problem. Ich change the line:

ABSENDER=`echo $SENDER|sed -e 's/ //g' -e 's/^+/00/' -e

in:

ABSENDER=`echo $CIDNUMBER|sed -e 's/ //g' -e 's/^+/00/' -e 's/$/@fax.postgirl.dreampixel/'`

and hylafax is set the from-field:

00496214829[xxx]@fax.[myhost].[mydomain]

Now i find a other problem. When i send am Mail to: 06214829[xxx]@fax.[myhost].[mydomain] hylafax send the mail as fax to 06214829[xxx]. Whe i set the to-field to: 004962148293[xxx]@fax.[myhost].[mydomain] hylafax don't send the fax. What's the problem?

with best regards
sven



Project hosted by iFAX Solutions