You are not logged in.

#1 2014-07-16 20:54:13

Dornith
Member
Registered: 2013-02-19
Posts: 84

[SOLVED]OpenSMTPD fails to start, bind invalid argument

I'm setting up a new server and I want it to be able to email me if anything goes wrong. (e.g. raid drive fails)  I new I also eventually wanted to set it up as a personal email aswell so I thought I'd go ahead and set up a full email server.
After looking around I decided on OpenSMTPD.  I configured everything and the check said it was okay, but when I try to run it this is the result:

[dornith@linux-server-01->~]
(0) $ sudo systemctl start smtpd
[dornith@linux-server-01->~]
(0) $ sudo journalctl -xn 26
-- Logs begin at Fri 2014-07-04 14:21:05 CDT, end at Wed 2014-07-16 15:48:22 CDT. --
Jul 16 15:48:18 linux-server-01 sudo[603]: dornith : TTY=pts/0 ; PWD=/home/dornith ; USER=root ; COMMAND=/usr/bin/systemctl start smtpd
Jul 16 15:48:18 linux-server-01 sudo[603]: pam_unix(sudo:session): session opened for user root by dornith(uid=0)
Jul 16 15:48:18 linux-server-01 smtpd[606]: info: OpenSMTPD 5.4.2p1 starting
Jul 16 15:48:18 linux-server-01 smtpd[607]: info: startup
Jul 16 15:48:18 linux-server-01 smtpd[615]: fatal: smtpd: bind: Invalid argument
Jul 16 15:48:18 linux-server-01 sudo[603]: pam_unix(sudo:session): session closed for user root
Jul 16 15:48:18 linux-server-01 smtpd[609]: warn: control -> smtp: pipe closed
Jul 16 15:48:18 linux-server-01 smtpd[612]: warn: mfa -> smtp: pipe closed
Jul 16 15:48:18 linux-server-01 smtpd[608]: warn: queue -> smtp: pipe closed
Jul 16 15:48:18 linux-server-01 smtpd[614]: warn: scheduler -> queue: pipe closed
Jul 16 15:48:18 linux-server-01 smtpd[613]: warn: mta -> queue: pipe closed
Jul 16 15:48:18 linux-server-01 smtpd[611]: warn: mda -> queue: pipe closed
Jul 16 15:48:18 linux-server-01 smtpd[607]: warn: lost child: queue exited abnormally
Jul 16 15:48:18 linux-server-01 smtpd[607]: warn: lost child: filter exited abnormally
Jul 16 15:48:18 linux-server-01 smtpd[607]: warn: lost child: transfer exited abnormally
Jul 16 15:48:18 linux-server-01 smtpd[607]: warn: lost child: scheduler exited abnormally
Jul 16 15:48:18 linux-server-01 smtpd[607]: warn: lost child: smtp exited abnormally
Jul 16 15:48:18 linux-server-01 smtpd[610]: warn: lka -> smtp: pipe closed
Jul 16 15:48:18 linux-server-01 smtpd[607]: warn: parent terminating
Jul 16 15:48:18 linux-server-01 systemd[1]: smtpd.service: main process exited, code=exited, status=1/FAILURE
Jul 16 15:48:18 linux-server-01 systemd[1]: Unit smtpd.service entered failed state.
Jul 16 15:48:22 linux-server-01 sudo[618]: dornith : TTY=pts/0 ; PWD=/home/tflucke ; USER=root ; COMMAND=/usr/bin/journalctl -xn 26
Jul 16 15:48:22 linux-server-01 sudo[618]: pam_unix(sudo:session): session opened for user root by dornith(uid=0)
Jul 16 15:48:24 linux-server-01 sudo[618]: pam_unix(sudo:session): session closed for user root

I looked around but couldn't find much of anything.  Can anyone tell me why this would happen?

/etc/smtpd/smtpd.conf:

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

# To accept external mail, replace with: listen on all
listen on enp2s5
listen on localhost
listen on linux-server-01

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

table virtualDomains    file:/etc/smtpd/vdoms
table virtualUsers      file:/etc/smtpd/vusers

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

#accept for local alias <aliases> deliver to mbox
#accept for any relay

accept from any for domain <virtualDomains> virtual <virtualUsers> deliver to mbox
#accept from source { localhost 10.1.1.0/24 } for any relay
accept for local
#accept for any relay

/etc/smtpd/vdoms:

example.com

/etc/smtpd/vusers:

(blank)

Last edited by Dornith (2014-07-16 22:32:36)

Offline

#2 2014-07-16 22:25:52

Dornith
Member
Registered: 2013-02-19
Posts: 84

Re: [SOLVED]OpenSMTPD fails to start, bind invalid argument

I don't know what happened, but some how, in my random trying various things and hope something works, I got it to work.

Edit: Okay, the error was coming from the fact that I hd multiple "listen ons"

Last edited by Dornith (2014-07-16 22:33:12)

Offline

Board footer

Powered by FluxBB