Nordic Star Products 4.3A manual Script faxmail

Page 29

XFAX and e-mail

R$+.fax<@infoflex.se> $#xfax$:$1

This rule should be placed in the rule set up, ruleset, SO and states that all mail to *fax@infoflex.se should be sent on to the delivery agent xfax. Before rule SO is used another rule, S3 will be used. This rule normally adds “<>” around the domain part of the address which explains that above there is R$+.fax<@infof- lex.se> and not R$..fax@infoflex.se. $:$1 above shows that the user name should be added to that which stands before .fax, in our case the fax number.

Note. Sendmail, which is often run as root, must have locking and evacuation rights to the script faxmail. Furthermore, the first line in faxmail, presupposing that faxmail is a Bourne-shell script, reads:

#!/bin/sh

in order that it should be executed correctly.

Now we can test that the rule works.

This is most suitably done by running sendmail in the test position by starting sendmail with the parameter -bt. If we use the temporary configuration file send- mail.xfax we must also indicate this to sendmail.

# sendmail -Csendmail.xfax -bt

When we execute the command we obtain a prompt. There we write in:

S3 55576861.fax@infoflex.se

Check that the mail is in a queue in XFAX. If this does not work it is only neces- sary to write out the log message at a strategic place in faxmail. Note that you can use the special shell variable $? which always contains the return code for the command last executed.

Set up any cover sheet, address filter to prevent unauthorized people using it etc in faxmail.

There are example lines for sendmail.cf in the file sendmail.data under ETCDIR:

9.2 The script faxmail

Faxmail is the script that takes care of the addresses and the letter data that comes from sendmail. The script that is supplied with the XFAX distribution is to be seen as a relatively complete example of how faxmail should function. However, a certain amount of manual adaptation is needed in order to adapt the script to the specific customer environment.

In faxmail you can choose to deal with the following:

!Save the message to file

!Run the message through a MIME filter (fax memory).

!Filter away the enclosures which cannot be handled as a fax and possibly inform the sender of the removed enclosures by means of mail.

!Check that the user has the authority to send faxes. Does the fax come from within his/her own domain? Is the user a valid mail user?

XFAX - User’s Guide 4.3a

29

Image 29
Contents Xfax Contents Characterset Defaultfont DefaultmarginDialprefix Defaultprinter Dialtimeout Httpenable Waitfortone Etcdir OverviewBindir SpooldirXfaxdir Installation Environment variables Configuring the softwareKeywords Xfax and multiple fax devices Adding actionsConfiguring the software Xfax User’s Guide 4.3a Faxsend Sending a faxOne fax to several recipients group transmission Attaching a note to a faxID of the fax in the queue Scheduled transmissionsPrinting a fax before sending Script xfaxDocument codes Script faxadmChargeperminute Telephone cost file ETCDIR/costAreacodes 08LOCAL 031AREA 3 009ABROAD 0091USA LocalzoneLOCALZONE=LOCALLY Areacodes Automatic printing of incoming faxes Receiving faxesFax queues Handling faxesReschedule a fax Canceling of a faxScheduling a fax IntrListing faxes in a particular directory Routine maintenancePrinting a fax Cleaning the statistics file Installation Using the address book in XfaxUsing the client Xfax in a Windows environmentXfax in a Windows environment Cover sheets the old way Using overlay files as forms and cover pagesOverlay files and cover sheets Time MessageDate Overlay files and cover sheets Sendmail Xfax and e-mailScript faxmail Xfax and e-mail Installing Ghostscript and the Xfax driver Troubleshooting Integrated Http server Integrated Smtp server Modems and flow control Commands Command referenceFaxmime FaxmailFaxmaster Faxq FaxprintFrom SubjectFaxsend Faxrm1234 7586535 faxfile Faxwho FaxsrFaxstat Exit codes Keyword reference AccesshttpGeneral keywords FaxlineAdministrator AccesssmtpAcceptusers AlertuserCharacterset BrokenselectDefaultmargin DefaultfontDefaultprinter DialtimeoutExecworkdir DomainExecuteafterreceive ExecuteaftersendExitstring ExecutebeforesendFaildir FailfaxnoHttpenable Jetfaxbusytries InitstringJetfaxcopy JetfaxpagetimeLockingstyle LocalprefixMailonsuccess MailonerrorLpprintoption Nostatistics NoerrorsavePartialpages PrintrectoleftReceiveonly ResolutionReversestats RoundrobinSmtpserver SmtpenableSmtpsender 15.1.81 T30ECM Symbolset15.1.82 T30RTC 15.1.83 T30PAGELENGTHWaitfordialtone WaitfortoneXonxoff Troubleshooting Troubleshooting Technical specifications Typefaces in Xfax Index