So, I've just set up mail
and mutt
and I'm happily sending emails to a gmail.com address.
I am using EXIM as my MTA.
Now, when I reply to those emails (so they get send back to my domain) I see a record that they appeared in /var/spool/mail, but cat
doesn't seem like a very clever way to read it.
How do I properly read mail that is sent to me at my server? How can I set up additional email addresses like [email protected]
, [email protected]
, [email protected]
Links to resources would be helpful - I am searching now as I type but I'm not finding instructions just yet
I don't know exim very well, but by default it should deliver the e-mail to either a mailbox or a Maildir in the user's home folder. The simplest way to get additional e-mail account is to setup additional users on the server (there are other ways, and you can use aliases to send multiple e-mail addresses to the same user).
It turns out it was /etc/aliases that held the answer.
That and /etc/email-addresses
I also learned a bit from this page.
Using exim as a POP server, the mail will be stored in
~/Maildir
. If the email account is [email protected], the mail for that account will be stored in~/Maildir/name
.If the user is using exim and IMAP, the mail will instead be stored in: '~/imap/example.com/Maildir/name'.
If you are logged in as root you can't use ~ to find a user's home directory of course. On a Debian server, you'll find those directories at: '/home/username/Maildir/name' and '/home/username/imap/example.com/Maildir/name' respectively.
In my case (exim on Ubuntu 14.04), it's in
/var/vmail/<domain>/<account>
.