I want to setup a local mail server to do some testing, is it possible to setup up e-mail accounts that are only on the local machine such as bob@localhost or will I have to setup a domain??
You can configure local accounts like you listed. I'd go with exim if you want to do anything fancy. Its very configurable but is a bit more complicated than most.
On most, it is already running. Every user that is created on that machine will tend to have a mailbox. However the mail server itself is usually, by default, only bound to the local loopback address so you won't receive mail from external sources.
Just say you wanted to send bob an email.
From the command line:
Code:
mail -s "Test mail" bob@localhost < /var/log/messages
su - bob
mutt
N.B. mutt installed on quite a few distro's and is a text based mail client.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.