OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Problem forwarding to a program

From: Rob Tanner (rtannerlinfield.edu)
Date: Thu Dec 18 2008 - 20:26:05 CST


On 12/18/08 5:34 PM, Wietse Venema wrote:
> Rob Tanner:
>
>> I set up a separate instance of Postfix on one of my mail servers so
>> that I can deal with a special instance of a FAX server without messing
>> up production mail. The email messages it handles are always addressed
>> to <FAX number>send.fax and the messages are to be delivered to a
>> program that swaps from and reply-to headers and then directly forwards
>> the mail to the FAX server which, in turn, sends it to the FAX machine
>> identified in the local part of the email address. The problem is that
>> Postfix is trying to send the message directly instead of delivering it
>> to a program. This is what is contained in the aliases file:
>>
>> send.fax "|/opt/local/adm/aliasfilters/FAX.filter faxfilter"
>>
>
> Which aliases file?
>
> The local aliases(5) file is not indexed by domain.
>
> The virtual alias maps does not execute commands.
>
> Wietse
>
>
>> The alias is domain only because there are millions of possible FAX
>> machines in the world. Postfix recognizes the "send.fax" pattern at
>> least for accepting the message in the first place (no error about
>> unknown local recipient), but I'm wondering if the way the alias is
>> declared is the reason the message is not being delivered to the program.
>>
>> Thanks,
>>
>> Rob Tanner
>> Linfield College
>> McMinnville, Oregon
>>
>>
>
>
The local aliases file and I was afraid of that. Since the only thing
going through this Postfix instance is the FAX stuff which needs to be
delivered to the program, is there some way to force all delivery to the
program unconditionally?

-- Rob