From owner-freebsd-isp Fri Jan 29 17:54:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA23794 for freebsd-isp-outgoing; Fri, 29 Jan 1999 17:54:27 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from arnold.neland.dk (mail.swimsuit.internet.dk [194.255.12.232]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA23770 for ; Fri, 29 Jan 1999 17:54:11 -0800 (PST) (envelope-from root@neland.dk) Received: from gina (gina.neland.dk [192.168.0.14]) by arnold.neland.dk (8.9.2/8.9.1) with ESMTP id CAA16283 for ; Sat, 30 Jan 1999 02:53:45 +0100 (CET) (envelope-from root@neland.dk) Date: Sat, 30 Jan 1999 02:53:26 +0100 (CET) From: Leif Neland To: freebsd-isp@FreeBSD.ORG Subject: why fetchmail can't find receiver name. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Just for information: We have some customers who pick up all the mail for their domain in one mailbox with fetchmail, which then split it to the respective users. They used to pick up at mail.our.domain, which was a cname for old.our.domain. Then we changed mailservers, and I put mail.our.domain in the dns with the same ip as new.our.domain. Fetchmail broke. It couldn't find the reciever name, and delivered all mail to root. I used cucipop on the new, and qpopper on the old. Installed cucipop on new too. Didn't help. ftp'ed a mailbox from old to new. Didn't help. Then I tried picking up at new.our.domain (the name the machine calls itself) instead of mail.our.domain. _That_ worked. Appearently, when fetchmail picks up mail at some.mail.host, it looks for the headers: Received from some.other.host by some.mail.host for this.user@my.domain. But when mail.our.domain wasn't the real name, or a cname pointing to the real name of the mailserver, it couldn't find the right recieved-by hostname, and failed. So when I made mail.our.domain a cname for new.our.domain, it worked again. Hopefully, somebody can use this.... I want to let each machine have (at least) two names; one "real" name, and one for the function it serves. So I can assign the mail.our.domain to whatever machine I want. I didn't want to let mail.our.domain be a cname, because sendmail (or actually bind) doesn't like mx-records pointing to a cname, but when fetchmail can't handle an alias, I had to make it a cname anyway. Then I just let awk change all mx'es from old.our.domain to new.our.domain instead... Leif@neland.dk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message