Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] IP address binding

2004-06-15 by manu@netbsd.org

Cyril Guibourg <cg+milter-greylist@...> wrote:

> I started to play with it and got something working. At this time a [-i addr]
> cmd arg changes the default bind to INADD_ANY behaviour.

What about a configuration file option? We already have too much command
line options. I propose syncaddr, and while we are there, we can have a
syncport option to set a particular TCP port. 
 
> I choosen to make the code in sync.c to use getaddrinfo() if it is available.
> For now, only sync_master() uses it. If you agree with the mods I propose to
> continue working on it so that peer_connect() also uses getaddrinfo() if
> available. For systems without getaddrinfo() the code uses the old socket API.

I think the right approach is to define a getaddrinfo replacement
elsewhere if it is missing. This is what is done with timersub or queue
stuff. For now all the replacement functions are in milter-greylist.c,
but we can make a replace.c to contain them.

-- 
Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.