--inet=10023 binds to ipv6 only on oneiric

Bug #884743 reported by dyna
40
This bug affects 9 people
Affects Status Importance Assigned to Milestone
postgrey (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After updating to oneiric, postgrey will only bind to ::1, not to 127.0.0.1. default localhost resolution seems to be changed to ipv6.

In the README.Debian however, the advised way to use postgrey is: check_policy_service inet:127.0.0.1:10023.
This will result in postfix not being able to connect to postgrey.

settings --inet=127.0.0.1:10023 in /etc/default/postgrey fixes the problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in postgrey (Ubuntu):
status: New → Confirmed
Revision history for this message
H.-Dirk Schmitt (dirk-computer42) wrote :

I run here in the same problem.
But setting 127.0.0.1 doesn't help, because postgrey was still trying the ipv6-localhost.

To avoid this I'm using now the real ip from the interface.

see also:
https://www.computer42.org/xwiki/bin/view/DevNotes/postgrey

Revision history for this message
Darryl Weaver (dweaver) wrote :

An alternative solution is to use:

check_policy_service inet:[::1]:10023

instead in postfix main.cf.

But postfix must have ipv6 enabled with:

inet_protocols = all

Revision history for this message
Marius Gedminas (mgedmin) wrote :

For the record, the external symptoms of this issue are (or were for me) Postfix rejecting every incoming email with a very uninformative

    451 4.3.5 Server configuration problem

I was bit by this after I upgraded an Ubuntu server from 10.04 to 12.04.

Revision history for this message
Marius Gedminas (mgedmin) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.