Date: Mon, 1 Sep 2008 08:35:31 +0300 From: "Ivan \"Rambius\" Ivanov" <rambiusparkisanius@gmail.com> To: "Jeffrey Goldberg" <jeffrey@goldmark.org> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Forwarding all mail to a local user Message-ID: <89ce7f740808312235h4756260kaa5727e93a0d4abe@mail.gmail.com> In-Reply-To: <C1FF04AD-821F-4063-B51D-051AF83578FB@goldmark.org> References: <89ce7f740808311800l15ed3df2k4b549cbf8f257f87@mail.gmail.com> <C1FF04AD-821F-4063-B51D-051AF83578FB@goldmark.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Jeffrey, On Mon, Sep 1, 2008 at 4:24 AM, Jeffrey Goldberg <jeffrey@goldmark.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89ce7f740808312235h4756260kaa5727e93a0d4abe>