返回列表 回复 发帖

An other way for postfix user without procmail

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

http://wpkg.org/email2fax/index. ... er_without_procmail
Postfix技术专业支持论坛
http://www.thismail.org/bbs
-----------------------------------
提供专业postfix技术支持,邮件系统开发定制
QQ:187159779 注明(Postfix技术支持)
返回列表
开源邮件服务器 开源邮件服务器 web 开源邮件 开源 mail 开源 邮件服务器 邮件技术 mail技术 反垃圾邮件 反垃圾mail mail投递
邮件服务器 mail服务器 开源软件 mail软件 mail服务新品牌 开源邮件服务新品牌
开源mail服务新网站 邮件服务新品牌 mail tmail mailserver 163邮件 sendmail |Linux维护|Linux代维|成都Linux维护|成都Linux代维