On Wed, Dec 3, 2008 at 9:22 AM, Cengiz Vural <[EMAIL PROTECTED]> wrote:

>
>
> On Tue, Dec 2, 2008 at 2:18 PM, Victor Duchovni <
> [EMAIL PROTECTED]> wrote:
>
>> On Tue, Dec 02, 2008 at 02:05:20PM -0600, Cengiz Vural wrote:
>>
>> > hello all,
>> >
>> > I am trying to place some restrictions on a local user account. I would
>> like
>> > to redirect any emails sent from a specific user to another local user
>> > regardless of what email address the user enters in the recipient
>> list.Is it
>> > possible to do this with postfix?
>> >
>> > In summary, whenever [EMAIL PROTECTED] sends an email, I want that email
>> to be
>> > delivered to [EMAIL PROTECTED] only.
>>
>> Is the mail submitted via SMTP or via sendmail(1)? If the former, you
>> can use "REDIRECT" (see access(5)) via "check_sender_access type:table"
>> in smtpd_sender_restrictions. If the latter, your best bet is to
>> content_filter local mail to a local SMTP re-injection port, but this
>> significantly raises the disk I/O cost of local mail submission.
>>
>> --
>>        Viktor.
>>
>> Disclaimer: off-list followups get on-list replies or get ignored.
>> Please do not ignore the "Reply-To" header.
>>
>> To unsubscribe from the postfix-users list, visit
>> http://www.postfix.org/lists.html or click the link below:
>> <mailto:[EMAIL PROTECTED]>
>>
>> If my response solves your problem, the best way to thank me is to not
>> send an "it worked, thanks" follow-up. If you must respond, please put
>> "It worked, thanks" in the "Subject" so I can delete these quickly.
>>
>
> Thanks for the quick answer, Viktor. I added the lines below to my 
> main.cffile.
>
> smtpd_sender_restrictions =
>     check_sender_access regexp:/etc/postfix/tables/access
>
> and
>
> created /etc/postfix/tables/access
>
> [EMAIL PROTECTED]    REDIRECT [EMAIL PROTECTED]
>
> Ran postmap /etc/postfix/tables/access and reloaded postfix but it ignores
> all these. What am I doing wrong?
>
> -Cengiz
>
>
I am sorry. Please disregard this message. It is working.

-Cengiz

Reply via email to