An other way for postfix user without procmail
From Email2fax - email to fax gateway for Asterisk
[edit] There are only two little steps to go:
- add a new service to the master.cf
- add a new transport to the transport
[edit] add a new service to the master.cf
edit the /etc/postfix/master.cf file an append the following lines
astfax unix - n n - 1 pipe
flags= user=asterisk argv=/usr/local/bin/email2fax
The first value "astfax" can be any name, which can not be found in the master.cf. The user is the asterisk-user, you have tested before. The path to the email2fax script must be correct! This is may preferred way...
[edit] add a new transport to the transport
Edit the file /etc/postfix/transport and append a line like
sendfax@mydomain.com localhost:astfax
What does it mean: All Emails to the adress "sendfax@mydomain.com" will be delivered to localhost and there the service "astfax". This service is registered in the master.cf.
Remark: At my installation, the line has to be
sendfax@mydomain.com astfax
Do a "postmap /etc/postfix/transport" to generate a new tansport.db.
Users, who have their own transport hash should be able, to translate these two lines into their environment. Forgive me, that I don't describe other hash-table-formats.
In order ensure the transport database is used, check that something like
transport_maps = hash:/etc/postfix/transport
is in your main.cf.
That's all. You have to reload the postfix configuration.
comments to c dot rudolph at ibcf dot de
