Re: opensmtpd relay via verify

2014-02-17 Thread Gilles Chehade
On Mon, Feb 17, 2014 at 11:43:50PM +0100, Frank Brodbeck wrote: > Hm, funny. I wasn't able to reproduce it on my side neither: > > # touch /etc/ssl/foo{pem,key} > # chmod 0600 /etc/ssl/foo{pem,key} > # grep foo /etc/mail/smtpd.conf > pki foo certificate "/etc/ssl/foo.pem" > pki foo key "/etc/ssl/f

Re: opensmtpd relay via verify

2014-02-17 Thread Frank Brodbeck
Hm, funny. I wasn't able to reproduce it on my side neither: # touch /etc/ssl/foo{pem,key} # chmod 0600 /etc/ssl/foo{pem,key} # grep foo /etc/mail/smtpd.conf pki foo certificate "/etc/ssl/foo.pem" pki foo key "/etc/ssl/foo.key" pki foo ca "/etc/ssl/sbde-ca.pem" # smtpd -nf /etc/mail/smtpd.conf fat

Re: opensmtpd relay via verify

2014-02-17 Thread Frank Brodbeck
On Sun, Feb 16, 2014 at 10:44:39AM +0100, Remco wrote: > From smtpd.conf(5) on OpenBSD 5.4: > (You seem to run CURRENT, which I didn't check, so things might be different > in your case) Yes I do. Sorry, running -current comes so naturally to me that I didn't thought about mentioning it. > You s

Re: opensmtpd relay via verify

2014-02-17 Thread Gilles Chehade
On Sat, Feb 15, 2014 at 09:26:35PM +0100, Frank Brodbeck wrote: > Hi, > > On Fri, Feb 14, 2014 at 07:24:32PM -0500, Ted Unangst wrote: > > I would try using a full path. > > > > pki example ca "/etc/ssl/myca.pem" > > I already tried it with full path. But I got it working now by > specifying cer

Re: opensmtpd relay via verify

2014-02-17 Thread Gilles Chehade
On Sun, Feb 16, 2014 at 10:44:39AM +0100, Remco wrote: > Frank Brodbeck wrote: > > > Hi, > > > > On Fri, Feb 14, 2014 at 07:24:32PM -0500, Ted Unangst wrote: > >> I would try using a full path. > >> > >> pki example ca "/etc/ssl/myca.pem" > > > > I already tried it with full path. But I got it

Re: opensmtpd relay via verify

2014-02-17 Thread Gilles Chehade
On Sun, Feb 16, 2014 at 12:37:08AM +0100, Gilles Chehade wrote: > On Sat, Feb 15, 2014 at 09:26:35PM +0100, Frank Brodbeck wrote: > > Hi, > > > > On Fri, Feb 14, 2014 at 07:24:32PM -0500, Ted Unangst wrote: > > > I would try using a full path. > > > > > > pki example ca "/etc/ssl/myca.pem" > > >

Re: opensmtpd relay via verify

2014-02-16 Thread Remco
Frank Brodbeck wrote: > Hi, > > On Fri, Feb 14, 2014 at 07:24:32PM -0500, Ted Unangst wrote: >> I would try using a full path. >> >> pki example ca "/etc/ssl/myca.pem" > > I already tried it with full path. But I got it working now by > specifying certificate and key, too: > > pki example cert

Re: opensmtpd relay via verify

2014-02-15 Thread Gilles Chehade
On Sat, Feb 15, 2014 at 09:26:35PM +0100, Frank Brodbeck wrote: > Hi, > > On Fri, Feb 14, 2014 at 07:24:32PM -0500, Ted Unangst wrote: > > I would try using a full path. > > > > pki example ca "/etc/ssl/myca.pem" > > I already tried it with full path. But I got it working now by > specifying cer

Re: opensmtpd relay via verify

2014-02-15 Thread Frank Brodbeck
Hi, On Fri, Feb 14, 2014 at 07:24:32PM -0500, Ted Unangst wrote: > I would try using a full path. > > pki example ca "/etc/ssl/myca.pem" I already tried it with full path. But I got it working now by specifying certificate and key, too: pki example certificate "/etc/ssl/relay.crt" pki example k

Re: opensmtpd relay via verify

2014-02-14 Thread Ted Unangst
On Sat, Feb 15, 2014 at 01:09, Frank Brodbeck wrote: > But how do I get opensmtpd to actually verify the certificate? I tried > > pki smart.example.tld ca "ca.pem" > > But it then says: > > fatal: load_pki_tree: missing certificate file I would try using a full path. pki example ca "/etc/ssl/

opensmtpd relay via verify

2014-02-14 Thread Frank Brodbeck
Hi, I am trying to setup a smart relay for myself which should only relay if it's able to verify the certificate presented by the relay. So I added the following line into my smtpd.conf: accept from any for domain example.tld relay via tls://smart.example.tld hostname mail.example.tld verify B

Re: opensmtpd relay

2013-02-14 Thread Gilles Chehade
On Thu, Feb 14, 2013 at 04:00:32PM +0100, Martijn van Duren wrote: > > > > 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

Re: opensmtpd relay

2013-02-14 Thread Martijn van Duren
On Thu, 2013-02-14 at 15:49 +0100, Gilles Chehade wrote: > 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

Re: opensmtpd relay

2013-02-14 Thread Gilles Chehade
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 > > > >

Re: opensmtpd relay

2013-02-14 Thread Martijn van Duren
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,

Re: opensmtpd relay

2013-02-14 Thread Gilles Chehade
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 recip

Re: opensmtpd relay

2013-02-14 Thread Martijn van Duren
On Thu, 2013-02-14 at 13:39 +0100, Gilles Chehade wrote: > On Thu, Feb 14, 2013 at 01:29:28PM +0100, Martijn van Duren wrote: > > Hello misc, > > > > Hello, > > > I'm currently trying to set up opensmtpd (OBSD 5.2) as my home > > mailserver. Nothing fancy, so it should do the trick. For my mailse

Re: opensmtpd relay

2013-02-14 Thread Gilles Chehade
On Thu, Feb 14, 2013 at 01:29:28PM +0100, Martijn van Duren wrote: > Hello misc, > Hello, > I'm currently trying to set up opensmtpd (OBSD 5.2) as my home > mailserver. Nothing fancy, so it should do the trick. For my mailserver > I want to be able to receive emails and also be able to relay emai

opensmtpd relay

2013-02-14 Thread Martijn van Duren
Hello misc, I'm currently trying to set up opensmtpd (OBSD 5.2) as my home mailserver. Nothing fancy, so it should do the trick. For my mailserver I want to be able to receive emails and also be able to relay emails from my laptop mail-clients, so I could sent these from all over the world. To do