On Sun, Jun 18, 2017 at 04:36:06PM +0530, Hrishikesh Muruk wrote: Thanks for confirming, pleased to hear it. Back out to the sun and bbq for me...
> Worked after I regenerated the key and crt file > > On Sun, Jun 18, 2017 at 3:16 PM, Hrishikesh Muruk <hris...@gmail.com> wrote: > > > Thank you for the response. I restarted syslogd after using > > > > $ doas rcctl restart syslogd > > syslogd(ok) > > syslogd(ok) > > > > So it should pick up the new config. Perhaps /var/log/spamd is not > > created because nothing has been logged by spamd (since it is not running) > > > > When I run spamd with debug (thanks for suggesting) I get this error > > > > $ doas /usr/libexec/spamd -d -v -G 2:4:864 -K > > /etc/ssl/private/vicharana.net.key > > -C /etc/ssl/vicharana.net.crt > > > > whitelisted 64.233.189.26 > > whitelisted 74.125.130.27 > > whitelisted 74.125.24.27 > > spamd: whitelisted 74.125.200.27 > > failed to configure TLS - failed to load private keywhitelisted > > 74.125.68.27 > > > > whitelisted 74.125.200.26 > > > > Both files are readable by root as well as all members of wheel > > > > $ ls -l /etc/ssl/private/vicharana.net.key > > -rw-r----- 1 root wheel 3243 May 15 18:42 /etc/ssl/private/vicharana. > > net.key > > > > $ ls -l /etc/ssl/vicharana.net.crt > > -rw-r----- 1 root wheel 1679 May 15 18:43 /etc/ssl/vicharana.net.crt > > > > The files were generated using the command lines > > $ openssl genrsa -out /etc/ssl/private/vicharana.net.key 4096 > > $ openssl req -new -x509 -key /etc/ssl/private/vicharana.net.key -out > > /etc/ssl/vicharana.net.crt -days 730 > > > > Is there an error in the way I generated the keys? > > > > Thanks > > Hrishi > > > > > > > > On Sun, Jun 18, 2017 at 12:02 PM, Leighton Sheppard < > > leigh...@openbsd.leighling.co.uk> wrote: > > > >> Hi, > >> > >> Have you tried starting spamd with -d flag, to see if there is any output? > >> > >> Are any other messages in the other log files, daemon.log for example? > >> I'm assuming that you maybe forgot to reload/restart sysyslogd after > >> modifying the syslog.conf file. > >> > >> > >> Regards, > >> Leighton > >> > >> On Sun, Jun 18, 2017 at 11:28:01AM +0530, Hrishikesh Muruk wrote: > >> > Hello > >> > > >> > I am running OpenBSD 6.1 in a VM and I have trouble getting spamd > >> running. > >> > > >> > Here is how I try to run spamd: > >> > > >> > $ doas rcctl enable spamd > >> > $ rcctl set spamd flags -v -G 2:4:864 -K /etc/ssl/private/vicharana.net > >> .key > >> > -C /etc/ssl/vicharana.net.crt > >> > $ doas rcctl start spamd > >> > spamd(ok) > >> > > >> > But I dont think spamd is running because ps does not show it > >> > $ ps aux | grep spam > >> > hrishi 45984 0.0 0.0 680 4 p2 R+p 11:24AM 0:00.00 grep > >> spam > >> > (ks > >> > > >> > > >> > I earlier edited /etc/syslogd.conf, added the following lines > >> > > >> > !spamd > >> > daemon.info /var/log/spamd > >> > > >> > $ doas rcctl restart syslogd > >> > doas (hri...@obsd.vicharana.net) password: > >> > syslogd(ok) > >> > syslogd(ok) > >> > > >> > The /var/log/spamd file does not exist. > >> > > >> > What am I doing wrong? How can I get spamd running? > >> > > >> > Thanks > >> > Hrishi > >> > > > >