lmtp delivery to cyrus store over unix socket requires
/etc/hosts.allow entry. why?
OpenMacNews
openmacnews at gmail.com
Tue Oct 18 14:32:58 EDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
hi,
Hajimu UMEMOTO wrote:
> I don't know about MacOS X, but there was similar bug in FreeBSD. So,
> our port still applies following patch to avoid the bug in old version
> of FreeBSD:
>
> Index: master/service-thread.c
> diff -u master/service-thread.c.orig master/service-thread.c
> --- master/service-thread.c.orig Wed Jan 22 22:52:36 2003
> +++ master/service-thread.c Wed Jan 22 23:09:52 2003
> @@ -99,6 +99,9 @@
> struct sockaddr_storage sin;
> socklen_t len = sizeof(sin);
>
> + /* XXX: old FreeBSD didn't fill sockaddr correctly against AF_UNIX */
> + sin.ss_family = AF_UNIX;
> +
> /* is this a connection from the local host? */
> if (getpeername(fd, (struct sockaddr *) &sin, &len) == 0) {
> if (((struct sockaddr *)&sin)->sa_family == AF_UNIX) {
i tried making this _specific_ change to my cyrus code, but, to no avail ...
delivery _still_ requires the presence of:
lmtpunix : 0.0.0.0
in /etc/hosts.allow
i think i'll file this as a bug ...
cheers,
richard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
iEYEAREDAAYFAkNVP9kACgkQm/Q3NoilZ44kZACfbwxXGKd0LY2qt9GvrXay7QI2
gqsAn1cgRBVODBfpryW3bN/MK87vW38/
=KXHp
-----END PGP SIGNATURE-----
More information about the Info-cyrus
mailing list