Portál AbcLinuxu, 10. května 2025 08:08
Nov 4 15:15:38 vm18827 postfix/smtpd[13348]: warning: connect to Milter service inet:127.0.0.1:8891: Connection refused
Nov 4 15:15:40 vm18827 postfix/smtpd[13348]: warning: unknown[195.154.38.236]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Nov 4 15:20:02 vm18827 postfix/smtpd[14122]: warning: connect to Milter service inet:127.0.0.1:8891: Connection refused
Nov 4 15:24:11 vm18827 postfix/smtpd[14856]: warning: hostname 195-154-XX-236.rev.poneytelecom.eu does not resolve to address 195.154.XX.236: Name or service not known
A na logu:
Nov 4 15:25:02 vm18827 postfix/smtpd[14856]: connect from localhost[::1]
Nov 4 15:25:02 vm18827 postfix/smtpd[14856]: warning: connect to Milter service inet:127.0.0.1:8891: Connection refused
Nov 4 15:25:02 vm18827 postfix/smtpd[14856]: lost connection after CONNECT from localhost[::1]
Nov 4 15:25:02 vm18827 postfix/smtpd[14856]: disconnect from localhost[::1]
Nov 4 15:25:02 vm18827 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<43OUcHpAeQAAAAAAAAAAAAAAAAAAAAAB>
Nov 4 15:25:02 vm18827 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<+4mUcHpARAAAAAAAAAAAAAAAAAAAAAAB>
Děkuji za pomoc a případné rady.
connect to Milter service inet:127.0.0.1:8891: Connection refusedBezi ten DKIM demon vubec?
systemctl status opendkim
je aktivní, běží. Daemon nevím bohužel ani co myslíš..
netstat -nlp | grep 8891
, nevypsalo to nic.
Nov 4 18:54:04 vm18827 postfix/smtpd[1435]: warning: connect to Milter service inet:127.0.0.1:12768: Connection refused
Nov 4 18:54:04 vm18827 postfix/smtpd[1435]: warning: table "mysql:/etc/postfix/mysql-virtual_client.cf": empty query string -- ignored
Nov 4 18:54:05 vm18827 postfix/smtpd[1445]: warning: connect to Milter service inet:127.0.0.1:12768: Connection refused
Nov 4 18:54:09 vm18827 postfix/smtpd[1435]: warning: connect to Milter service inet:127.0.0.1:12768: Connection refused
Nov 4 18:54:11 vm18827 postfix/smtpd[1445]: warning: connect to Milter service inet:127.0.0.1:12768: Connection refused
Nov 4 18:54:22 vm18827 postfix/smtpd[1435]: warning: hostname 195-154-38-236.rev.poneytelecom.eu does not resolve to address 195.154.38.236: Name or service not known
netstat -tanp | grep dkim
/var/log/maillog
$enable_dkim_verification = 1; $enable_dkim_signing = 1; dkim_key('mojedomena.net', 'smtp', '/cosi/kdesi/klic'); @dkim_signature_options_bysender_maps = ( { '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } ); @mynetworks = qw(0.0.0.0/8 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16); # list your internal networksa testovani
amavisd showkeys amavisd testkeys
/etc/opendkim.conf
? Z logu jasně vidíš, že se Postfix nemůže připojit na localhost:8891 - na tomto socketu by měl OpenDKIM naslouchat.
# https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy
# http://www.opendkim.org/opendkim.conf.5.html
# https://soledadpenades.com/articles/ubuntu/setting-up-opendkim-ubuntu-12-4/
# https://www.ictspecialista.cz/archives/1506
#### priklad generovani klicu / nastaveni nove domeny : ####
# mkdir /etc/opendkim/keys/xxx.cz/
# cd /etc/opendkim/keys/xxx.cz/
# opendkim-genkey --hash=rsa-sha256 -s default2016 -d xxx.cz
# nano /etc/opendkim/SigningTable
# xxx.cz default2016._domainkey.xxx.cz
# nano /etc/opendkim/KeyTable
# default2016._domainkey.xxx.cz xxx.cz:default2016:/etc/opendkim/keys/xxx.cz/default2016.private
AutoRestart Yes
AutoRestartRate 10/1h
Umask 002
UserID opendkim:opendkim
PidFile /var/run/opendkim/opendkim.pid
# s=signer, v=verified, sv=sign and verify
Mode s
Syslog yes
SyslogSuccess Yes
LogWhy Yes
Canonicalization relaxed/simple
DNSTimeout 5
# pro jednu doménu použijeme :
#Domain domena.tld
#KeyFile /etc/opendkim/keys/dkim.private
#Selector default
# pro vice domen pouzijeme :
ExternalIgnoreList /etc/opendkim/TrustedHosts
InternalHosts /etc/opendkim/TrustedHosts
KeyTable /etc/opendkim/KeyTable
SigningTable refile /etc/opendkim/SigningTable
SignatureAlgorithm rsa-sha256
#SubDomains no
#SubDomains no
#AlwaysSignHeaders To,Subject,MIME-Version,Content-Type,Sender,From,Message-Id,Date,Reply-To,List-Unsubscribe
# Specifies a list of headers which should be included in all signature header lists (the "h=" tag) even if they were not present at the time the signature was generated.
OversignHeaders From,Sender,To,CC,Subject,Message-Id,Date
# Specifies the set of header fields that should be included when generating signatures.
SignHeaders From,Sender,To,CC,Subject,Message-Id,Date
#Diagnostics true
# If enabled, log verification stats here
Statistics /var/lib/opendkim/stats.dat
#RequiredHeaders yes
SOCKET="inet:8891@127.0.0.1"
/etc/postfix/main.cf
milter_default_action = accept
milter_protocol = 6
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.