Eero Volotinen wrote:
> J. Bakshi wrote:
>> Eero Volotinen wrote:
>>> J. Bakshi wrote:
>>>
>>>> Thanks to point it out :-) I am looking into it.  Is there any other
>>>> option so that I can only define the domain name with the proper
>>>> keyword
>>>> in main.cf and postfix send mails to only that domain ?
>>> Err.. why? I think access is nicest way to do it.
>>
>> Could you kindly give me an example to restrict the domain with access ?
>
> How about following:
>
> access.pcre:
>
> /^DOMAIN\.NET$/     OK
> /./                    REJECT
>
>
> And then you can use it on various places in main.cf:
> (pcre:/etc/postfix/access.pcre)
>
>
>
> -- 
> Eero
>

Thanks for the example.  I am telling you what I have already done here.

1#  create the acl file

/etc/postfix/send_domain_restriction
=============================
mydomain.com  OK


#2 configure mail.cf

smtpd_recipient_restrictions = hash:/etc/postfix/send_domain_restriction

#3. create the db and restart postfix
=============================

postmap /etc/postfix/send_domain_restriction
restart /etc/init.d/postfix

But still I am able send email to other domains :-( It should be
restricted to <mydomain.com>

Could you please enlighten me what is missing here ?

thanks

-- 
জয়দীপ বক্সী


Reply via email to