june 2012
sun mon tue wed thu fri sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

« April 2012 | Main | February 2013 »


June 29, 2012
faxmail exim4 hylafax

To enable hylafax/faxmail/exim4 to process mail as 12345678@yourdomain.tld, that is, fax number as $local_part follow the directions below.

Please note this is best for standalone hylafax servers that do not process other email for local delivery. If you are using hylafax on a server that performs other functions, particularly email for your domain/local delivery, you would do best to use the traditional foo@12345678.fax transport route seen here.

1. Put the following in: /etc/exim4/conf.d/transport/40_exim4-hylafax-gateway substitute your country code as necessary by changing +1 to +33

######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
# ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
######################################################################

# A transport is used only when referenced from a director or a router
# that successfully handles an address.

#These configure for sending of fax for email
fax:
driver = pipe
user = faxmaster
command ="/usr/bin/faxmail -n -d +1$local_part"
home_directory = /tmp
use_shell = true

2. Put the following in: /etc/exim4/conf.d/transport/050_exim4-hylafax-gateway make sure you change yourdomain.tld to your domain, such as foobar.com


######################################################################
# ROUTERS CONFIGURATION #
# Specifies how remote addresses are handled #
######################################################################
# ORDER DOES MATTER #
# A remote address is passed to each in turn until it is accepted. #
######################################################################

fax:
driver = manualroute
transport = fax
route_list ="*yourdomain.tld"

3. Edit /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs to change from the local delivery option of mail_spool to the new fax transport you've created.

.ifndef LOCAL_DELIVERY
# The default transport, set in /etc/exim4/update-exim4.conf.conf,
# defaulting to mail_spool. See CONFDIR/conf.d/transport/ for possibilities
LOCAL_DELIVERY=fax
#LOCAL_DELIVERY=mail_spool
.endif

4. If using single-file config, proceed to step 5. If using exim4 split configuration, update your configuration file with update-exim4.conf.template -r

5. Restart exim4 /etc/init.d/exim4 restart

6. Send a test fax to 2345678@yourdomain.tld the transport will add the country code automatically, resulting in 12345678@yourdomain.tld

crit?: 0