@Ozymandis
зелень

Не запускается Opendkim [Ubuntu Server 16.04]?

Всем Привет, настраиваю подпись DKIM на Ubuntu Server 16.04

Столкнулся с проблемой при запуске службы
systemctl start opendkim.service
Job for opendkim.service failed because the control process exited with error code. See "systemctl status opendkim.service" and "journalctl -xe" for details.


systemctl status opendkim.service
spoiler

administrator@devserver ~ # systemctl status opendkim.service
● opendkim.service - DomainKeys Identified Mail (DKIM) Milter
   Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-01-11 14:33:50 MSK; 1s ago
     Docs: man:opendkim(8)
           man:opendkim.conf(5)
           man:opendkim-genkey(8)
           man:opendkim-genzone(8)
           man:opendkim-testadsp(8)
           man:opendkim-testkey
           http://www.opendkim.org/docs.html
  Process: 25272 ExecStart=/usr/sbin/opendkim -x /etc/opendkim.conf -u opendkim -P /var/run/opendkim/opendkim.pid -p $SOCKET $DAEMON_OPTS (code=exited, status=78)
  Process: 25269 ExecStartPre=/bin/chown opendkim.opendkim /var/run/opendkim (code=exited, status=0/SUCCESS)
  Process: 25265 ExecStartPre=/bin/mkdir -p /var/run/opendkim (code=exited, status=0/SUCCESS)

Jan 11 14:33:50 production systemd[1]: Starting DomainKeys Identified Mail (DKIM) Milter...
Jan 11 14:33:50 production opendkim[25272]: opendkim: /etc/opendkim.conf: configuration error at line 1: unrecognized parameter
Jan 11 14:33:50 production systemd[1]: opendkim.service: Control process exited, code=exited status=78
Jan 11 14:33:50 production systemd[1]: Failed to start DomainKeys Identified Mail (DKIM) Milter.
Jan 11 14:33:50 production systemd[1]: opendkim.service: Unit entered failed state.
Jan 11 14:33:50 production systemd[1]: opendkim.service: Failed with result 'exit-code'.



syslog
Jan 11 14:34:49 production systemd[1]: Starting DomainKeys Identified Mail (DKIM) Milter...
Jan 11 14:34:49 production opendkim[25354]: opendkim: /etc/opendkim.conf: configuration error at line 1: unrecognized parameter
Jan 11 14:34:49 production systemd[1]: opendkim.service: Control process exited, code=exited status=78
Jan 11 14:34:49 production systemd[1]: Failed to start DomainKeys Identified Mail (DKIM) Milter.
Jan 11 14:34:49 production systemd[1]: opendkim.service: Unit entered failed state.
Jan 11 14:34:49 production systemd[1]: opendkim.service: Failed with result 'exit-code'.


сам файл /etc/opendkim.conf
Syslog                 	yes
UMask                   002
Mode                   	sv
OversignHeaders         From
AutoRestart             Yes
AutoRestartRate         10/1h
PidFile                 /var/run/opendkim/opendkim.pid
Canonicalization 		relaxed/relaxed
SyslogSuccess 			yes
KeyTable 				file:/etc/opendkim/keytable
SigningTable 			file:/etc/opendkim/signingtable
ExternalIgnoreList      file:/etc/opendkim/TrustedHosts
InternalHosts           file:/etc/opendkim/TrustedHosts
SoftwareHeader 			yes
LogWhy 					yes
UserID                	opendkim:opendkim


файл /etc/default/opendkim

# Command-line options specified here will override the contents of
# /etc/opendkim.conf. See opendkim(8) for a complete list of options.
#DAEMON_OPTS=""
#
# Uncomment to specify an alternate socket
# Note that setting this will override any Socket value in opendkim.conf
# default:
SOCKET="local:/var/run/opendkim/opendkim.sock"
# listen on all interfaces on port 54321:
#SOCKET="inet:54321"
# listen on loopback on port 12345:
#SOCKET="inet:12345@localhost"
# listen on 192.0.2.1 on port 12345:
#SOCKET="inet:12345@192.0.2.1"


opendkim -V
opendkim: OpenDKIM Filter v2.10.3
        Compiled with OpenSSL 1.0.2g  1 Mar 2016
        SMFI_VERSION 0x1000001
        libmilter version 1.0.1
        Supported signing algorithms:
                rsa-sha1
                rsa-sha256
        Supported canonicalization algorithms:
                relaxed
                simple
        Active code options:
                QUERY_CACHE
                USE_DB
                USE_LDAP
                USE_LUA
                USE_ODBX
                USE_UNBOUND
                _FFR_ATPS
                _FFR_RBL
                _FFR_REPLACE_RULES
                _FFR_STATS
                _FFR_VBR
        libopendkim 2.10.3: atps query_cache
  • Вопрос задан
  • 1227 просмотров
Пригласить эксперта
Ответы на вопрос 1
Щас угадаю. Конфиг в UTF-8, в начале файла byte order mark?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы