From: Arvinn Lokkebakken (no email)
Date: Sun Aug 01 2004 - 16:47:16 EDT
Piotr Koper wrote:
>On Sun, Aug 01, 2004 at 02:46:35PM -0400, Victor Duchovni wrote:
>
>
>>On Sun, Aug 01, 2004 at 08:09:31PM +0200, Piotr Koper wrote:
>>
>>
>>
>>>>Is there any other way to connect perl script to postfix, to get
>>>>all the bounce messages redirected?
>>>>
>>>>Maybe some patches are needed?
>>>>
>>>>
>>>>
>>>I've written a patch for Postfix 2.1.3 to fit my needs:
>>>
>>>
>>>
>>Nothing of this sort should be necessary:
>>
>> $ postconf -d | grep noti
>> 2bounce_notice_recipient = postmaster
>> bounce_notice_recipient = postmaster
>> delay_notice_recipient = postmaster
>> error_notice_recipient = postmaster
>> notify_classes = resource, software
>>
>>http://www.postfix.org/basic.html#notify
>>
>>
>>
>
>Oh, aren't that options to change an additional notify address?
>I'd like to stop the message that is directly sent to the sender
>about the problem and edit it with perl script so as to change
>information (add polish message and custom information about the isp).
>
>Cheers,
>Peter
>
>
You can use an access map to FILTER to through an optional transport.
Check out access(5) and transport(5).
Example:
smtpd_sender_restrictions = check_sender_access hash:somefile
Content of somefile:
<> FILTER modifybounce
..and then add a line for modifybounce in master.cf.
Another way is to use the access map to REDIRECT the message.
Arvinn
|
|
|