Forwarding all mail to a local user

Jeffrey Goldberg jeffrey at goldmark.org
Mon Sep 1 01:24:11 UTC 2008


[mailed and posted]

On Aug 31, 2008, at 8:00 PM, Ivan Rambius Ivanov wrote:

> I have the following questions. How can I forward all mail sent to
> <anyone>@localhost to a rambius at localhost, where rambius is my own
> user account in my FreeBSD system and <anyone> can be anything
> including a user name that does not exist on the local machine?

> I have default sendmail installation as provided by the base system
> with no modifications of my own.

You should edit

  /etc/mail/virtusertable

to include a line like

  @localhost  rambius at 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.

Cheers,

-j



-- 
Jeffrey Goldberg                        http://www.goldmark.org/jeff/



More information about the freebsd-questions mailing list