From owner-freebsd-questions@FreeBSD.ORG Mon Sep 1 05:35:33 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 60A5A1065672 for ; Mon, 1 Sep 2008 05:35:33 +0000 (UTC) (envelope-from rambiusparkisanius@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by mx1.freebsd.org (Postfix) with ESMTP id 188138FC21 for ; Mon, 1 Sep 2008 05:35:32 +0000 (UTC) (envelope-from rambiusparkisanius@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so1035207wra.27 for ; Sun, 31 Aug 2008 22:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=nOWWHFFWg3S1csvUuJ5z74JE8MywHa+n7MSoowR3fw4=; b=lp7iOtIET0wRkGKqfSdUQS1j7ck6kKCWsMnL+WjM2lnbjL9a4ynUMjLIrpbjV1OXl2 MTRhQDOOBPHY8lVQjLRQUZ7v2wZb5VpOnNBFg3dKOC0O4mlp53tYNZFXvL+KVcHQmCiR zOk4vCsn4t0fFyaXzgHZ0qJp6+nGYFkc2jnWY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VJr2zJ5OwM+/vUCoMOEYOVQUE2Y1z3iqVIKa/yIWS7ykYuuqIAWmmisfy2itBcA8eB N7NRnKkrf2BrVxzGZB35OpxcUb5sKbPmUIpE2oX9gRb+Sebp0yZ9xjLgP6+BG7YqFGg2 PaxdpZ7eCZZqfvAlG/PuNuCOLKDrXszoVSh2o= Received: by 10.90.53.5 with SMTP id b5mr7280135aga.21.1220247331562; Sun, 31 Aug 2008 22:35:31 -0700 (PDT) Received: by 10.90.89.18 with HTTP; Sun, 31 Aug 2008 22:35:31 -0700 (PDT) Message-ID: <89ce7f740808312235h4756260kaa5727e93a0d4abe@mail.gmail.com> Date: Mon, 1 Sep 2008 08:35:31 +0300 From: "Ivan \"Rambius\" Ivanov" To: "Jeffrey Goldberg" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <89ce7f740808311800l15ed3df2k4b549cbf8f257f87@mail.gmail.com> Cc: FreeBSD Questions Subject: Re: Forwarding all mail to a local user 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: Mon, 01 Sep 2008 05:35:33 -0000 Hello Jeffrey, On Mon, Sep 1, 2008 at 4:24 AM, Jeffrey Goldberg wrote: > > You should edit > > /etc/mail/virtusertable > > to include a line like > > @localhost rambius@localhost > > There is a sample virtusertable you can look at. > > After you have edited the virtusertable file, you should run > > make maps > > in that directory. I followed your advice but I still cannot forward the local email to my account. The full contents of my /etc/mail/virtusertable is: # cat /etc/mail/virtusertable # $FreeBSD: src/etc/mail/virtusertable.sample,v 1.3 2000/11/02 23:32:31 dirk Exp $ # # Map one or all usernames at a source hostname to a specific (or the same) # username at another target hostname. Remember to add the source hostname # to /etc/mail/local-host-names so that sendmail will accept mail for the # source hostname. # @localhost rambius@localhost I run make maps and I tested if my account can receive email: $ echo "Test email 1" | mail -s "Test Email 1" rambius@localhost I successfully got this email in my mbox. Next I tried to send an email to an non-existing user: $ echo "Test email 1" | mail -s "Test Email 1" nonexisting@localhost I got an error saying "/home/rambius/dead.letter... Saved message in /home/rambius/dead.letter" and did not receive the email in my mailbox. Maybe emails to nonexisting users cannot be forwarded at all? Regards Rambius -- Tangra Mega Rock: http://www.radiotangra.com