DKIM and Postfix/Centos error (unable to create socket)

Discussion in 'Server Operation' started by ookblah, Jul 23, 2009.

  1. ookblah

    ookblah New Member

    Hi all,

    I was following the tutorial on DKIM setup and all was going well until I actually started the services: My maillog becomes flooded with this error:

    Sendmail DKIM Filter: Unable to bind to port inet:[email protected]: Address already in use
    Jul 22 19:43:20 ookblah dkim-filter[23539]: Sendmail DKIM Filter: Unable to create listening socket on conn inet:[email protected]
    Jul 22 19:43:20 ookblah dkim-filter[23539]: smfi_opensocket() failed

    I checked the permissions on /var/run/dkim-milter and its chmod 700, but i don't see a dkim.sock file in there. Coudl anyone point me int he right direction? Thanks.
  2. dzudzu

    dzudzu New Member

    looks like something is allready runing on that port so u can't bind it again,

    post with netstat -tap so we can see whats up from services on your system
  3. ookblah

    ookblah New Member

    This is the result of my netstat -tap

    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN 2266/mysqld
    tcp 0 0 localhost:smtp *:* LISTEN 2778/master
    tcp 0 0 localhost:mysql localhost:45673 ESTABLISHED 2266/mysqld
    tcp 0 0 localhost:45673 localhost:mysql ESTABLISHED 5905/httpd
    tcp 0 0 *:http *:* LISTEN 2363/httpd
    tcp 0 0 *:ssh *:* LISTEN 2173/sshd
    tcp 0 576 mydomain:ssh <ip address>:49693 ESTABLISHED 5421/sshd: user [
    tcp 0 0 mydomain:ssh <ip address>:64096 ESTABLISHED 2540/sshd: user [
  4. dzudzu

    dzudzu New Member

    lets just try quick thing,

    try moding the setup and change 20209 to something like 20207 and see what heapens when u restart all services.

    mod that port number in all files from perfect setup guide
  5. ookblah

    ookblah New Member

    Thank you for the help, I no longer get the socket errors. However, when I try to send a test e-mail I get this error:

    warning: connect to Milter service inet:localhost:20207: Connection refused
    Jul 24 00:31:12 hostname postfix/cleanup[7436]: 585DAF8347: milter-reject: CONNECT from localhost[]: 4.7.1 Service unavailable -
    try again later; from=<[email protected]>
  6. topdog

    topdog Active Member HowtoForge Supporter

    Something else is listening to that port run the command

    netstat -nalp
    To see what is listening to the port

Share This Page