From: Rob F. <rf...@fu...> - 2007-08-16 18:12:43
|
Rob MacGregor wrote: > I only have the source for 6.3.8 to hand. It's possible this feature > is relatively recent. See http://mknod.org/svn/fetchmail/ :-) Looks like the way fetchmailhost is determined (in fetchmail.c) has changed since 6.2.5. > It may also be that there's something else > happening to the value of the hostname beforehand - certainly lots of > software relies on resolver libraries, which can be tripped up by > having your hostname against the loopback address. > > I'd advise that, if you can, you create a second line with JUST the > hostname in it, and the real IP of the host. I agree. > Checking the source it looks like the hostname passed is based off of > the value of id_me in sink.c. The value of that depends on whether > "set invisible" is on (which I use). > > That may be set to the value of fetchmailhost, which defaults to > localhost, but is later over-ridden by the DNS name of the host using > gethostname. > > It may also default to value of server.truename, and I'm not enough of > a C programmer to work out where that comes from :) If invisible is on, fetchmail uses the POP/IMAP server's name for HELO. If invisible is off, fetchmail uses the pre-determined "fetchmailhost" value instead. fetchmailhost is determined by heuristics in fetchmail.c, and references the machine fetchmail is running on. It might be worthwhile to add an option to specify fetchmailhost in the config file. Not that I'll have time to do that anytime soon. -- ==============================| "A microscope locked in on one point Rob Funk <rf...@fu...> |Never sees what kind of room that it's in" http://www.funknet.net/rfunk | -- Chris Mars, "Stuck in Rewind" |