Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 1998 14:50:17 -0600 (CST)
From:      David Kelly <dkelly@fly.HiWAAY.net>
To:        freebsd-isp@FreeBSD.ORG, lists@fastnet.co.uk
Subject:   Re:  Qpopper (The Sequel)
Message-ID:  <199802262050.OAA30610@fly.HiWAAY.net>

next in thread | raw e-mail | index | archive | help
Jay Tribick <lists@fastnet.co.uk> writes:
> 
> I know this has been covered before, I've checked the archives but
> I'm getting the (now) infamous qpopper canonical name error..
> 
> What I need to know is if I can get qpopper to log the IP address
> of the host that's connecting, the manual pages don't help and
> trace & debug don't yield enough information.
> 
> The trouble is, the mail server we're having this canonical name
> error on has a *lot* of users collecting POP3 mail so doing
> a grep through /var/log/maillog doesn't give me any
> clues.

I added "#ifdef CANONICAL_VERBOSE" to my qpopper like this. Once Upon A
Time in an earlier version I altered this pop_log() to print the numeric
IP address. Recently decided I didn't care.

pop_init.c:
    /*  Get the canonical name of the host to whom I am speaking */
    ch = gethostbyaddr((char *) &cs.sin_addr, sizeof(cs.sin_addr), AF_INET);
    if (ch == NULL){
#ifdef CANONICAL_VERBOSE
        pop_log(p,POP_PRIORITY,
            "(v%s) Unable to get canonical name of client, err = %d",
            VERSION, errno);
#endif
        p->client = p->ipaddr;
    }

--
David Kelly N4HHE, dkelly@hiwaay.net (hm)
======================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802262050.OAA30610>