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