#7 miilter was not installed

closed
nobody
opendkim (10)
5
2013-05-17
2012-09-15
lucas03
No

Hi,
I have installed opendkim by
"apt-get install opendkim"
I have debian vps and I could not run it, so I downloaded newest version and installed it manually.
However, milter could not be installed.
In /etc/opendkim.conf I have
Socket inet:12345@localhost
in /etc/default/opendkim
SOCKET="inet:12345@localhost" # listen on loopback on port 12345
Opendkim and postfix are running.
in /var/log/mail.log
Sep 16 00:00:26 ym postfix/cleanup[8137]: warning: connect to Milter service inet:localhost:12345: Connection refused
How can I install milter?
When I set socket like this
SOCKET="local:/var/run/opendkim/opendkim.sock" # default
I dont get error, but dkim signature is not attached.

Discussion

  • If you do "netstat -a | fgrep LISTEN" it will show you all listening sockets. One of those will be the running filter. Or you could use "lsof -p <pid>" using the pid of the running filter to find out where it's listening.

    For the case where you're using local domain sockets, turn on "LogWhy" to find out what decisions it's making about the signing decision to see why it isn't signing your mail.

     
    • status: open --> pending
     
  • lucas03
    lucas03
    2012-09-16

    • status: pending --> open
     
  • lucas03
    lucas03
    2012-09-16

    Hi, thanks for reply.
    Which of these is my filter then?

    tcp 0 0 localhost:mysql *:* LISTEN
    tcp 0 0 *:sunrpc *:* LISTEN
    tcp 0 0 ym.sk:domain *:* LISTEN
    tcp 0 0 localhost:domain *:* LISTEN
    tcp 0 0 *:ftp *:* LISTEN
    tcp 0 0 *:ssh *:* LISTEN
    tcp 0 0 *:smtp *:* LISTEN
    tcp 0 0 localhost:953 *:* LISTEN
    tcp 0 0 *:59009 *:* LISTEN
    tcp6 0 0 [::]:www [::]:* LISTEN
    tcp6 0 0 [::]:domain [::]:* LISTEN
    tcp6 0 0 [::]:ssh [::]:* LISTEN
    tcp6 0 0 localhost:953 [::]:* LISTEN
    tcp6 0 0 [::]:https [::]:* LISTEN
    unix 2 [ ACC ] STREAM LISTENING 59993 /var/run/mysqld/mysqld.sock
    unix 2 [ ACC ] STREAM LISTENING 3544 /var/run/saslauthd/mux
    unix 2 [ ACC ] STREAM LISTENING 4210 /var/run/dovecot/dict-server
    unix 2 [ ACC ] STREAM LISTENING 4212 /var/run/dovecot/login/default
    unix 2 [ ACC ] STREAM LISTENING 4217 /var/run/dovecot/auth-worker.1421
    unix 2 [ ACC ] STREAM LISTENING 3455 /var/run/acpid.socket
    unix 2 [ ACC ] STREAM LISTENING 9944717 public/cleanup
    unix 2 [ ACC ] STREAM LISTENING 9944724 private/tlsmgr
    unix 2 [ ACC ] STREAM LISTENING 9944728 private/rewrite
    unix 2 [ ACC ] STREAM LISTENING 9944732 private/bounce
    unix 2 [ ACC ] STREAM LISTENING 9944736 private/defer
    unix 2 [ ACC ] STREAM LISTENING 9944740 private/trace
    unix 2 [ ACC ] STREAM LISTENING 9944744 private/verify
    unix 2 [ ACC ] STREAM LISTENING 9944748 public/flush
    unix 2 [ ACC ] STREAM LISTENING 9944752 private/proxymap
    unix 2 [ ACC ] STREAM LISTENING 9944756 private/proxywrite
    unix 2 [ ACC ] STREAM LISTENING 9944760 private/smtp
    unix 2 [ ACC ] STREAM LISTENING 9944764 private/relay
    unix 2 [ ACC ] STREAM LISTENING 9944768 public/showq
    unix 2 [ ACC ] STREAM LISTENING 9944772 private/error
    unix 2 [ ACC ] STREAM LISTENING 9944776 private/retry
    unix 2 [ ACC ] STREAM LISTENING 9944780 private/discard
    unix 2 [ ACC ] STREAM LISTENING 9944784 private/local
    unix 2 [ ACC ] STREAM LISTENING 9944788 private/virtual
    unix 2 [ ACC ] STREAM LISTENING 9944792 private/lmtp
    unix 2 [ ACC ] STREAM LISTENING 9944796 private/anvil
    unix 2 [ ACC ] STREAM LISTENING 9944800 private/scache
    unix 2 [ ACC ] STREAM LISTENING 9944804 private/maildrop
    unix 2 [ ACC ] STREAM LISTENING 9944808 private/uucp
    unix 2 [ ACC ] STREAM LISTENING 9944812 private/ifmail
    unix 2 [ ACC ] STREAM LISTENING 9944816 private/bsmtp
    unix 2 [ ACC ] STREAM LISTENING 9944820 private/scalemail-backend
    unix 2 [ ACC ] STREAM LISTENING 9944824 private/mailman

    LogWhy is set to yes, otherwise I would not be getting warnings as well.

     
    • status: open --> pending
     
  • Do you have a packet filter in place that might block connections over that port?

    Can you try the "lsof" step I mentioned previously?

     
    • status: pending --> closed
     
  • Abandoned.