Hello!

I am trying to set up an email server with opensmtpd on Archlinux but I
have ran in to a few issues and will probably continue doing so on the way.
The thing that I guess is the most current issue is that for some reason I
cannot load the certificate files for some strange reason. My configuration
file looks like this:

``````````
# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.

pki BrutusBjare certificate "/etc/ssl/certs/puffinmail.crt"
pki BrutusBjare key "/etc/ssl/private/puffinmail.key"

# To accept external mail, replace with: listen on all
#listen on localhost
#listen on all
listen on eth0 tls pki BrutusBjare auth

# If you edit the file, you have to run "smtpctl update table aliases"
table aliases file:/etc/smtpd/aliases

# Uncomment the following to accept external mail for domain "example.org"
#accept from any for domain "example.org" alias <aliases> deliver to mbox
accept from any for domain "*.bitpuffin.com" alias <aliases> deliver to
maildir
#accept for local alias <aliases> deliver to maildir

#accept for local alias <aliases> deliver to maildir
accept for any relay #verify
`````````````

So the hostname on the system is BrutusBjare, I thought that might be
necessary to put that on the pki thing, however initially I was trying some
other name. However when I try to run this it looks like the following:

```````````````
BrutusBjare% sudo systemctl restart smtpd
BrutusBjare% systemctl status smtpd
smtpd.service - OpenSMTPD
   Loaded: loaded (/usr/lib/systemd/system/smtpd.service; enabled)
   Active: failed (Result: exit-code) since Tue 2014-02-18 02:36:06 UTC; 9s
ago
  Process: 4929 ExecStart=/usr/bin/smtpd (code=exited, status=0/SUCCESS)
 Main PID: 4930 (code=exited, status=1/FAILURE)

Feb 18 02:36:06 BrutusBjare smtpd[4935]: warn: mfa -> smtp: pipe closed
Feb 18 02:36:06 BrutusBjare smtpd[4932]: warn: control -> mfa: pipe closed
Feb 18 02:36:06 BrutusBjare smtpd[4934]: warn: mda -> control: pipe closed
Feb 18 02:36:06 BrutusBjare smtpd[4937]: warn: scheduler -> control: pipe
closed
Feb 18 02:36:06 BrutusBjare smtpd[4933]: warn: lka -> control: pipe closed
Feb 18 02:36:06 BrutusBjare smtpd[4936]: warn: mta -> control: pipe closed
Feb 18 02:36:06 BrutusBjare smtpd[4931]: warn: queue -> mda: pipe closed
Feb 18 02:36:06 BrutusBjare smtpd[4930]: warn: parent -> smtp: pipe closed
Feb 18 02:36:06 BrutusBjare systemd[1]: smtpd.service: main process exited,
code=exited, status=1/FAILURE
Feb 18 02:36:06 BrutusBjare systemd[1]: Unit smtpd.service entered failed
state.
BrutusBjare% smtpd -n
fatal: load_ssl_tree: failed to load certificate file
```````````````````

Which is strange because the files are indeed there:
````````````````````
BrutusBjare% ls /etc/ssl/certs/puffinmail.crt
/etc/ssl/certs/puffinmail.crt
BrutusBjare% ls /etc/ssl/private
puffinmail.key
``````````````````````

Anyone know what could possibly be the reasons for this? I do have more
issues but I'll deal with them once I get this sorted, don't want to make
the email too long and boring!

Anyways I appreciate any help very much!

Best regards,
Isak Andersson
[email protected]

Reply via email to