From owner-freebsd-questions@FreeBSD.ORG Wed Jul 6 00:46:29 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9249516A41C; Wed, 6 Jul 2005 00:46:29 +0000 (GMT) (envelope-from julian@vicor.com) Received: from postoffice.vicor-nb.com (www.vicor.com [12.155.182.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53FDF43D4C; Wed, 6 Jul 2005 00:46:29 +0000 (GMT) (envelope-from julian@vicor.com) Received: from localhost (localhost [127.0.0.1]) by postoffice.vicor-nb.com (Postfix) with ESMTP id 8F5C14CE986; Tue, 5 Jul 2005 17:46:28 -0700 (PDT) Received: from postoffice.vicor-nb.com ([127.0.0.1]) by localhost (postoffice.vicor-nb.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20383-05; Tue, 5 Jul 2005 17:46:28 -0700 (PDT) Received: from bigwoop.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by postoffice.vicor-nb.com (Postfix) with ESMTP id 607CB4CE7C1; Tue, 5 Jul 2005 17:46:28 -0700 (PDT) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by bigwoop.vicor-nb.com (Postfix) with ESMTP id 500AF7A403; Tue, 5 Jul 2005 17:46:28 -0700 (PDT) Message-ID: <42CB29E4.8090203@vicor.com> Date: Tue, 05 Jul 2005 17:46:28 -0700 From: Julian Elischer Organization: VICOR User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050629 X-Accept-Language: en, hu MIME-Version: 1.0 To: questions@freebsd.org, gshapiro@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postoffice.vicor.com Cc: Subject: aaaargghh.. sendmail again X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2005 00:46:29 -0000 N machines on a "ficticious net "fred.com" (not the real name). neet to get email out to the real world. via connected server mailgate.real.domain. (ficticious name) They pass it forward to a server on their net "server.ficticious.net" which uses the "Smarthost" option in Sendmail to forward them on to mailgate.real.domain, however mailgaet will not accept the mail unless the "sender" resolves to something real. I have no control over that machine. I am trying to alter the sendmail config on server.ficticious.net so that it rewrites the sender (both envelope and header) to be from mumble@registered.domain. the sendmail m4 config file now has: divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.17 2002/11/14 03:21:18 keramida Exp $') OSTYPE(freebsd4) DOMAIN(generic) FEATURE(access_db, `hash -o -T /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') FEATURE(genericstable, `hash -o /etc/mail/senders.db') FEATURE(masquerade_entire_domain) FEATURE(local_no_masquerade) FEATURE(masquerade_envelope) define(`SMART_HOST', `mailgate.vicor-nb.com') MASQUERADE_AS(`registered.domain') MASQUERADE_DOMAIN(`ficticious.net') MASQUERADE_DOMAIN(`server.ficticious.net') where /etc/mail/senders.db contains: the 'has' version of: root jre@registered.domain root@server.ficticious.net jre2@registered.domain So, by 2 different methods I'm trying to get the mail to say its coming from registered.domain but it isn't doing it, leaving it as comig from server.ficticious.net is there a trick to this?