Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed precmd routine for smtpd #617

Closed
xmj opened this issue Jul 13, 2015 · 2 comments
Closed

failed precmd routine for smtpd #617

xmj opened this issue Jul 13, 2015 · 2 comments
Assignees
Labels

Comments

@xmj
Copy link

xmj commented Jul 13, 2015

Hi there,

I'm installing opensmtpd-devel (from FreeBSD ports, version opensmtpd-devel-201506112227) on a FreeBSD 10.1-RELEASE box within a jail created by iocage.

I'm seeing the following error:

failed: [perceivon02] => {"changed": true, "cmd": "iocage exec dd8af675-2953-11e5-ad68-a710c4a2a00f /bin/sh -c "service smtpd start"", "delta": "0:00:01.546799", "end": "2015-07-13 07:11:52.511335", "rc": 1, "start": "2015-07-13 07:11:50.964536", "warnings": []}
stderr: invalid hostname: getaddrinfo() failed: hostname nor servname provided, or not known
/usr/local/etc/rc.d/smtpd: WARNING: failed precmd routine for smtpd
stdout: Performing sanity check on smtpd configuration:

FATAL: all hosts have already failed -- aborting

What's necessary to fix it, beyond putting a hostname in /etc/hosts ?

@poolpOrg poolpOrg self-assigned this Aug 5, 2015
@poolpOrg
Copy link
Member

poolpOrg commented Aug 5, 2015

We don't take care of packaging for different systems, I'll have a look at this to determine if it is a problem with our code or with the packaging on your system.

I'll get back to you by this week-end

@poolpOrg
Copy link
Member

Sorry for the delay, got swamped all of a sudden.

I don't think there is a problem with OpenSMTPD, it expects a hostname to exist on the machine where it runs and in your cases it simply doesn't.

This can either be fixed by adding a hostname in /etc/hosts, or creating a mailname file in the appropriate directory (usually /etc/mail, /etc, /usr/local/etc, ... depends on what your package maintainer decided was a good choice).

There is really nothing to fix here as far as I know, I'll close the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants