Bug#656046: postgrey: listening on IPv6 does not work, gives connection refused to postfix
Hello Maintainer, # cat /etc/postfix/main.cf ... check_policy_service inet:127.0.0.1:10023, check_policy_service inet:[::1]:10023, ... # netstat -pln | grep postgrey tcp0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 1340/postgrey.pid - tcp6 0 0 ::1:10023 :::*LISTEN 1340/postgrey.pid - It seems postgrey listening on IPv6. Regards Cedric
Bug#656046: postgrey: listening on IPv6 does not work, gives connection refused to postfix
Note that while telnetting to localhost works, telnetting to 127.0.0.1 doesn't: $ telnet localhost 10023 Trying ::1... Connected to localhost. Escape character is '^]'. ^]q telnet q Connection closed. $ telnet 127.0.0.1 10023 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused In case this is useful: $ grep localhost /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback Attempts to force postgrey to listen on IPv4 by running postgrey --inet=127.0.0.1:10023 fail -- netstat also shows only the tcp6 line listening on ::1:10023, telnet to 127.0.0.1 continues to report Connection refused. Marius Gedminas -- A real friend isn't someone you use once and then throw away. A real friend is someone you can use over and over again. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#656046: postgrey: listening on IPv6 does not work, gives connection refused to postfix
I have the same problem as the bug report with my Ubuntu server, which I've just upgraded (not tried under Debian, because I don't use postgrey on my Debian machines). On 2012-03-31 15:29:20 +0200, Frank Engler wrote: Are you sure postfix tries to connect to IPv6? If you are using check_policy_service inet:127.0.0.1:10023 as suggested in README.Debian postfix will not use IPv6. The examples in README.Debian should cover IPv6. Actually there are 2 problems, IMHO. First I think that the examples are wrong, unless the postfix goal is to use IPv4 only, at least there (but for what reason?). The second problem is that postfix doesn't use IPv6 even with: check_policy_service inet:localhost:10023 I suppose that the bug reported uses that too because the log messages say: localhost:10023. For instance, on my Ubuntu machine, I had lines like postfix/smtpd[5516]: warning: connect to 127.0.0.1:10023: Connection refused before doing the change from 127.0.0.1:10023 to localhost:10023, and after the change: postfix/smtpd[6088]: warning: connect to localhost:10023: Connection refused Note that telnet localhost 10023 can connect. So, I wonder why postfix can't. Then I don't know what is the culprit: postgrey for listening with IPv6 only[*], or postfix, which doesn't try IPv6, or both? [*] # netstat -pln | grep postgrey tcp6 0 0 ::1:10023 :::*LISTEN 3001/postgrey.pid - -- Vincent Lefèvre vinc...@vinc17.net - Web: http://www.vinc17.net/ 100% accessible validated (X)HTML - Blog: http://www.vinc17.net/blog/ Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#656046: postgrey: listening on IPv6 does not work, gives connection refused to postfix
Package: postgrey Version: 1.34-1.1 Followup-For: Bug #656046 Are you sure postfix tries to connect to IPv6? If you are using check_policy_service inet:127.0.0.1:10023 as suggested in README.Debian postfix will not use IPv6. The examples in README.Debian should cover IPv6. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#656046: postgrey: listening on IPv6 does not work, gives connection refused to postfix
Package: postgrey Version: 1.33-3~bpo60+1 Severity: normal Tags: ipv6 upstream With a version of libnet-server-perl which is capable of listening on IPv6, postgrey does not work. I believe the default configuration in /etc/default/postgrey includes this line: POSTGREY_OPTS=--inet=10023 With no host specified, postgrey translates this to localhost:10023. This means Net::Server will open an IPv6 socket, if you have localhost resolve to::1 in /etc/hosts. Regardless of /etc/hosts though, postgrey should be able to listen on IPv6. With postgrey listening on IPv6, postfix logs these messages, and then rejects incoming mail due to server configuration problems (code 451): 2012-01-15T21:57:05.274902-08:00 darwin postfix/smtpd[10610]: warning: connect to localhost:10023: Connection refused 2012-01-15T21:57:05.274935-08:00 darwin postfix/smtpd[10610]: warning: problem talking to server localhost:10023: Connection refused However, strangely, telnet to the postgrey port on IPv6 seems to work fine. I've looked at postgrey's code, but I don't see why this happens. -- System Information: Debian Release: 6.0.3 APT prefers stable APT policy: (990, 'stable'), (500, 'stable-updates') Architecture: amd64 (x86_64) Kernel: Linux 3.0.4-x86_64-linode21 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages postgrey depends on: ii adduser3.112+nmu2add and remove users and groups ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy ii libberkeleydb-perl 0.42-1~squeeze1 use Berkeley DB 4 databases from P ii libnet-dns-perl0.66-2Perform DNS queries from a Perl sc ii libnet-server-perl 0.99-3~bpo60+1extensible, general perl server en ii perl 5.10.1-17squeeze2 Larry Wall's Practical Extraction ii ucf3.0025+nmu1 Update Configuration File: preserv Versions of packages postgrey recommends: ii libdigest-sha1-perl 2.13-1 NIST SHA-1 message digest algorith ii libnet-rblclient-perl0.5-2 Queries multiple Realtime Blackhol ii libparse-syslog-perl 1.10-1 Perl module for parsing syslog ent ii postfix 2.8.3-1~bpo60+1 High-performance mail transport ag postgrey suggests no packages. -- debconf information: postgrey/1.32-3_changeport: -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org