Le 13/05/2011 03:11, jeffrey j donovan a écrit :
> 
> On May 12, 2011, at 8:08 PM, Wietse Venema wrote:
> 
>> Jason Voorhees:
>>>> I suggest the documentation, instead:
>>>>
>>>> http://www.postfix.org/postconf.5.html#smtpd_proxy_filter
>>>>
>>>
>>> Thanks, I'm going to read it.
>>>
>>>> This can be anything that speaks SMTP.
>>>>
>>>> (Note that implementing one of the *_bcc options will be far easier)
>>>>
>>>
>>> I'm not pretty sure how to do that because I don't want to bcc all my
>>> e-mail to one address.
>>
>> /etc/postfix/main.cf:
>>    recipient_bcc_maps = pcre:/etc/postfix/recipient_pcre
>>    recipient_delimiter = +
>>
>> /etc/postfix/recipient_pcre:
>>    # Send copy of mail for each [email protected] recipient
>>    # to [email protected]
>>    /^(.*)@([^@]+)$/  [email protected]
>>
>> This sends a copy for each recipient to [email protected], with
>> the original recipient encoded in the address extension.
>>
>> This question comes up every few months or so.
>>
>>      Wietse
>>
> sorry to thread jump
> can the pcre map include multilines ? what Im looking at is a bcc to archive 
> but ^not [email protected] does it read line by line or can in 
> include an if $user=fred dev/null else /^......
> 
> /^!aliasusername@([^@]+)$/    [email protected]
>  /^(.*)@([^@]+)$/     [email protected]
> 
> or
> /^aliasusername@([^@]+)$/  deny 
>  /^(.*)@([^@]+)$/     [email protected]
> 

/^aliasusername@([^@]+)$/       [email protected]
/^(.*)@([^@]+)$/        [email protected]

Then create a transport entry:
discard.localhost       discard:




Reply via email to