mailfax.sh-qmail
上传用户:weiyuanprp
上传日期:2020-05-20
资源大小:1169k
文件大小:1k
- #!/bin/sh
- #
- # mailfax - email to fax gateway for qmail.
- #
- # This file should be installed as /local/etc/mailfax, and the
- # following changes made to the qmail configuration:
- #
- # Add the following to /var/qmail/control/virtualdomains
- # .fax:fax
- #
- # Add the following to /var/qmail/alias/.qmail-fax-default
- # | /local/etc/mailfax
- #
- TMPVAR=${SENDER//`/}
- TMPVAR=${TMPVAR//$(/}
- SENDER=${TMPVAR//)/}
- /local/fax/bin/faxmail | /local/fax/bin/sendfax
- -f "$SENDER"
- -d "$EXT2@`/usr/bin/expr "$HOST" : '(.*).fax$'`"