|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
NULL vs 127.0.0.1 passed to milter for connections from localhost
From: April Lorenzen (outboundindex
gmail.com)
Date: Sun Jul 16 2006 - 11:47:38 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
postfix gets a localhost [127.0.0.1] connection from the same host it
is running on.
Opens connection to milters, and the milter xxfi_connect handler sees arguments:
xxfi_connect(ctx, "localhost", NULL)
The milter does is not passsed the IP address, which should be "127.0.0.1". The
milter API for xxfi_connect:
http://www.milter.org/milter_api/xxfi_connect.html
states that the hostaddr argument is only NULL when the socket address
type is of an unsupported type or the SMTP connection is from stdin.
This may be part Postfix emulation bug - Postfix's behaviour here
seems unusual. Hostaddr=NULL is not the way to indicate "localhost" and
since Postfix knows its localhost, even if its coming from a unix
socket, it could provide a mock localhost socket address to the milter.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]