Mangus,
        taking a deep look into your example, I notice
the restriction is only applied to example.com, isn't it ?
if this is the case, I have a problem on doing it, my list
of domains is virtual, so I need to restrict the test to
them, is it possible ?



On Monday 27 July 2009 11:27:51 am Pablo Yaggi wrote:
> Well Magnus, I did what you told me, and 
> postfix stoped receiving mails, when an external smtp
> tries to send mail to my local users, postfix respond
> access denied.
> I didn't do it exaclty like in you example, but I was
> doing int the smtpd_recipent_restrictions,
> this is what I did:
> 
> smtpd_sender_restrictions = permit_mynetworks,
>  check_client_access hash:/etc/postfix/pop-before-smtp,
>  reject
> 
> Maybe something is missing to check for virtual users,
> or something, any ideas ?
> 
> Bests,
> Pablo
> 
> 
> On Sunday 26 July 2009 07:55:38 pm Magnus Bäck wrote:
> > On Monday, July 27, 2009 at 00:49 CEST,
> >      Pablo Yaggi <[email protected]> wrote:
> > 
> > > On Sunday 26 July 2009 07:19:39 pm Magnus Bäck wrote:
> > >
> > > > I suggest you use SASL instead of POP-before-SMTP and use the
> > > > smtpd_sender_login_maps feature.
> > >
> > > But I'm running a mass virtual hosting server, if i use authenticated
> > > smtp, it will not prevent for external smtp to deliver mail to my users ?
> > 
> > Only for clients trying to use any of your domains as the sender
> > address. This is no different from the policy you're asking about.
> > 
> > > > But you can do something similar with POP-before-SMTP.
> > > > 
> > > > main.cf:
> > > > smtpd_restriction_classes = permit_pop_before_smtp
> > > > permit_pop_before_smtp =
> > > >         check_client_access hash:/etc/postfix/pop-before-smtp
> > >  
> > > > smtpd_sender_restrictions = check_sender_access hash:/path/to/file
> > > > 
> > > > /path/to/file:
> > > > example.com     permit_pop_before_smtp, reject
> > > > 
> > > > example.com is a domain that you want to protect from non-POPed
> > > > clients.
> > >
> > > This will prevent anyone how tries to send mail to example.com need to
> > > be authenticated, but external smtp needs no authentication.
> > 
> > No, it will prevent anyone to send FROM your domain with prior
> > authentication.
> > 
> > [...]
> > 
> 

Reply via email to