From owner-freebsd-questions@FreeBSD.ORG Sat Mar 15 01:36:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 533EC106566B for ; Sat, 15 Mar 2008 01:36:13 +0000 (UTC) (envelope-from roberto.nunnari@supsi.ch) Received: from ti-edu.ch (posta.ti-edu.ch [195.176.176.171]) by mx1.freebsd.org (Postfix) with ESMTP id D76A38FC14 for ; Sat, 15 Mar 2008 01:36:12 +0000 (UTC) (envelope-from roberto.nunnari@supsi.ch) X-Virus-Scanned: by cgpav Received: from [193.5.152.27] (HELO [127.0.0.1]) by ti-edu.ch (CommuniGate Pro SMTP 5.1.12) with ESMTP id 24866138 for freebsd-questions@freebsd.org; Sat, 15 Mar 2008 01:36:11 +0100 Message-ID: <47DB19D8.2010001@supsi.ch> Date: Sat, 15 Mar 2008 01:35:36 +0100 From: Roberto Nunnari User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: sendmail: from virtual address changed to maindomain 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: Sat, 15 Mar 2008 01:36:13 -0000 Hi all. This is driving me mad.. I hope a kind soul can help me out.. This is the relevant environment: # uname -rms FreeBSD 6.1-RELEASE-p23 i386 # hostname jupiter.maindomain.com # cat /etc/mail/local-host-names maindomain.com mydomain1.com # cat /etc/mail/generics-domains mydomain1.com # cat /etc/mail/genericstable md101 john@mydomain1.com md102 jack@mydomain1.com # cat /etc/mail/virtusertable john@mydomain1.com md101 jack@mydomain1.com md102 entries in hostname.mc FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') FEATURE(genericstable, `hash -o /etc/mail/genericstable') GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains') MX hostnames are all A records. well, as long as the users receive/send emails from/to external domains everything works just fine, but when: john@mydomain1.com sends to jack@mydomain1.com or viceversa the message gets to the right user, but the from header is changed to john@maindomain.com, mailbox that doesn't exists! Any hints/suggestions? Please, help! Thank you. Robi