On Thu, Feb 14, 2013 at 03:34:24PM +0100, Martijn van Duren wrote:
> On Thu, 2013-02-14 at 13:48 +0100, Gilles Chehade wrote:
> > On Thu, Feb 14, 2013 at 01:41:45PM +0100, Martijn van Duren wrote:
> > > > > [...]
> > > > > world. To do so I set up a listen on interface with tls and enable 
> > > > > auth.
> > > > > This works when I try to send emails from my client to other domains,
> > > > > but when I try to send an email to my domain I get an recipient
> > > > > rejected. When doing some manual smtp testing I found out that I had 
> > > > > to
> > > > > be logged in before I could do local deliveries. Is there a way to 
> > > > > leave
> > > > > smtp open for local delivery and login-protected for relaying (so no
> > > > > different ruleset based upon ip-address)?
> > > > >
> > >
> > > ext_if = "vr0"
> > > 
> > > hostname "domainname.nl"
> > > 
> > > listen on lo0
> > > listen on $ext_if tls certificate domainname enable auth
> > >
> > 
> > on OpenBSD, you can use interface groups:
> > 
> >    listen on egress tls certificate domainname enable auth
> > 
> 
> I'm not familiar with this type of groups. Can you tell me something
> more about it? (or point me to the proper man, since apropos doesn't
> give me anything)

ifconfig(8), search for "groups"

It will solve this:

         ext_if = "vr0"
         listen on $ext_if [...]

in a much better way


> > > map aliases source db "/etc/mail/aliases.db"
> > > 
> > > accept from all for local alias aliases deliver to mbox
> > > accept from all for domain domainname.nl alias aliases deliver to mbox
> > > accept for all relay
> > > 
> > 
> > This sounds correct, can you provide the output of 'smtpd -dv' as you
> > reproduce the issue ?
> > 
> 
> Even after a couple of /etc/rc.d/smtpd restarts the problem persevered,
> but when I stopped the service and started it with smtpd -dv I could
> actually receive email. So I guess there were some caching issues
> somehow, although I can't be sure. I just know that it works after
> starting it in debug mode.
> 
> Thanks for the quick response.
> 

You still did not show output of smtpd -dv as you reproduce the issue.

There is no caching and absolutely nothing that would allow a mail to
be accepted with -dv and rejected without, but without output I can't
help you troubleshoot

-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

Reply via email to