smtpd fails on automatic startup

2015-10-09 Thread Allyn Bottorff

Greetings,

I've been running an OpenSMTPD server for a while now on an ArchLinux
server and I've noticed some strange behavior. When I reboot the server,
smptd crashes on startup. If I restart the service manually, however, it
starts up just fine and will run without issue until I need to reboot
for whatever reason. Because of this, I'm assuming it has to do with the
way the OS is starting the service rather than an smtpd problem
specifically, but I'm hoping that someone here may know more about the
error codes than I and will be able to point me in the right direction.

#journalctl -u smtpd.service

-- Reboot --
Oct 09 15:03:23 shadesmar systemd[1]: Starting OpenSMTPD...
Oct 09 15:03:23 shadesmar smtpd[2847]: info: OpenSMTPD 5.7.3p1 starting
Oct 09 15:03:23 shadesmar smtpd[2891]: info: startup
Oct 09 15:03:23 shadesmar smtpd[2897]: fatal: smtpd: bind: Cannot assign
requested address
Oct 09 15:03:23 shadesmar smtpd[2891]: warn: lost child: pony express
exited abnormally
Oct 09 15:03:23 shadesmar smtpd[2895]: info: lookup agent exiting
Oct 09 15:03:23 shadesmar smtpd[2894]: info: control process exiting
Oct 09 15:03:23 shadesmar smtpd[2896]: info: scheduler handler exiting
Oct 09 15:03:23 shadesmar systemd[1]: Started OpenSMTPD.
Oct 09 15:03:23 shadesmar smtpd[2893]: warn: queue -> lka: pipe closed
Oct 09 15:03:23 shadesmar systemd[1]: smtpd.service: Main process
exited, code=exited, status=1/FAILURE
Oct 09 15:03:23 shadesmar systemd[1]: smtpd.service: Unit entered failed
state.
Oct 09 15:03:23 shadesmar systemd[1]: smtpd.service: Failed with result
'exit-code'.

#pacman -Qs opensmtpd
local/opensmtpd 5.7.3p1-1
   Free implementation of the server-side SMTP protocol

Any help is appreciated.
Thanks,
Allyn

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: smtpd fails on automatic startup

2015-10-09 Thread Raf Czlonka
On Fri, Oct 09, 2015 at 09:46:47PM BST, Allyn Bottorff wrote:
> >Your network interface might not be fully initialized when the smtpd
> >service attempts to start.
> >
> >Try monkeying with the smtpd.service unit file dependencies as per
> 
> I agree with you that the network startup is probably part of the
> problem, but I'm not sure why this isn't sufficient:
> 
> [Unit]
> Description=OpenSMTPD
> Requires=network.target
> After=network.target
> [Service]
> Type=forking
> ExecStart=/usr/bin/smtpd
> [Install]
> WantedBy=multi-user.target
> 
> I'll keep digging though. Thanks for the advice.

Because 'network.target' doesn't actually wait for any of the interfaces
to be up - what you want is 'network-online.target'[0].

Regards,

Raf

[0] https://wiki.freedesktop.org/www/Software/systemd/NetworkTarget/

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: smtpd fails on automatic startup

2015-10-09 Thread Seth
On Fri, 09 Oct 2015 13:19:32 -0700, Allyn Bottorff   
wrote:



Greetings,

I've been running an OpenSMTPD server for a while now on an ArchLinux
server and I've noticed some strange behavior. When I reboot the server,
smptd crashes on startup. If I restart the service manually, however, it
starts up just fine and will run without issue until I need to reboot
for whatever reason. Because of this, I'm assuming it has to do with the
way the OS is starting the service rather than an smtpd problem
specifically, but I'm hoping that someone here may know more about the
error codes than I and will be able to point me in the right direction.

#journalctl -u smtpd.service


Your network interface might not be fully initialized when the smtpd  
service attempts to start.


Try monkeying with the smtpd.service unit file dependencies as per  
https://wiki.archlinux.org/index.php/Systemd#Handling_dependencies


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Package maintainers

2015-10-09 Thread Gilles Chehade
EHLO package maintainers,

It would be nice if we had a list and-or IRC channel to communicate with
you and synchronize before releases.

Should I setup something ?

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org