J'ai trouvé un howto (http://www.vangee.nl/sme/hylafax) qui ne fonctionne pas malgré des ajustements pour le path. Le fax devrait être traité par le serveur, mais il est relayé au smtp du FSI.
Le concept est de traiter un mail destiné au domaine ".fax" en le dirigeant vers hylafax...
Quelqu'un pourrait tenter une correction?
- Code: Tout sélectionner
HylaFAX Email to Fax gateway
# /var/spool/hylafax/etc/mailfax
# Account name: faxuser
First name: fax
Last name: fax
E-mail delivery: Deliver e-mail locally
# Create a new virtual domain:
Domain name: fax
Brief description: fax
Content: Primary web site
# Redirect all mail for .fax domain to faxuser
mkdir -p /etc/e-smith/templates-custom/var/qmail/control/virtualdomains
pico /etc/e-smith/templates-custom/var/qmail/control/virtualdomains/95faxmail
insert this line
.fax:faxuser
# Redirect mail for faxuser to mailfax script.
# file that tells qmail to pipe all mail to the (to be created) mailfax script.
pico /home/e-smith/files/users/faxuser/.qmail-default
insert this only line:
| /var/spool/hylafax/etc/mailfax
chown faxuser:faxuser /home/e-smith/files/users/faxuser/.qmail-default
chmod 644 /home/e-smith/files/users/faxuser/.qmail-default
# Restart the qmail server.
/sbin/e-smith/expand-template /var/qmail/control/virtualdomains
/sbin/e-smith/signal-event email-update
/sbin/e-smith/signal-event console-save
service qmail restart
# Adding the mailfax script
# Save this script under /tmp/mailfax
-----------------------------------------
#!/bin/sh
#
# mailfax - email to fax gateway for qmail.
#
# Original file from HylaFAX, updated for e-smith server.
#----------------------------------------------------------
# 4 more information see: http://www.vangee.nl/sme/hylafax
#
TMPVAR=${SENDER//\`/}
TMPVAR=${TMPVAR//\$\(/}
SENDER=${TMPVAR//\)/}
/usr/bin/faxmail -f Helvetica-Bold | /usr/bin/sendfax \
-f "$SENDER" \
-n -d "$EXT2@`/usr/bin/expr \"$HOST\" : '\(.*\)\.fax$'`"
# 1.) Install HylaFAX
# 2.) In server-manager add a virtual domain named: fax
# 3.) In server-manager add a user named: faxuser
# 4.) Install this file as: /etc/hylafax/etc/mailfax
# 5.) Add the following file to your system:
# /etc/e-smith/templates-custom/var/qmail/control/virtualdomains/90aliases
# 6.) Put this line in the file:
# .fax:faxuser
# 7.) Add the following file to your system:
# /home/e-smith/files/users/faxuser/.qmail-default
# 8.) Put this line in the file:
# | /etc/hylafax/etc/mailfax
# 9.) Execute: /sbin/e-smith/signal-event console-save
# 10) Execute: service qmail restart
-----------------------------------------
cp /tmp/mailfax /var/spool/hylafax/etc/mailfax
chown root:root /var/spool/hylafax/etc/mailfax
chmod 755 /var/spool/hylafax/etc/mailfax
# Send Fax
Name@FaxNumber.fax
e.g: EwaldVanGemert@0031413247338.fax