Nordic Star Products 4.3A manual Script faxmail

Models: 4.3A

1 62
Download 62 pages 35.34 Kb
Page 29
Image 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

Page 29
Image 29
Nordic Star Products 4.3A manual Script faxmail