ovidiu
By:
ovidiu

Need some help with a basic email server setup

June 21, 2014 815 views
Running Debian Wheezy 64bit on a 500MB RAM Droplet. All the accounts redirect to root and root redirects to an external email via /etc/aliases - this is all good and working. I now need to additional email accounts: daily and mike. I've created the users but am facing the problem that the emails for root were located in /var/mail (no longer apparently, the root file in there now has 0 as size) and the new accounts have their email inside /home/mike but both daily and mike have this fodler structure:
root@server:/home/daily# ls -al
total 32
drwxr-xr-x 4 daily daily 4096 Jun 13 14:31 .
drwxr-xr-x 4 root  root  4096 Jun 12 06:45 ..
drwx------ 2 daily daily 4096 Jun 13 14:29 Mail
drwx------ 5 daily daily 4096 Jun 13 14:31 Maildir
Mail is empty though.
root@server:/home/daily# ls -al Maildir/
total 20
drwx------ 5 daily daily 4096 Jun 13 14:31 .
drwxr-xr-x 4 daily daily 4096 Jun 13 14:31 ..
drwx------ 2 daily daily 4096 Jun 13 14:31 cur
drwx------ 2 daily daily 4096 Jun 18 03:33 new
drwx------ 2 daily daily 4096 Jun 18 03:33 tmp 
So it looks like mails are getting delivered into Maildir/ but checking from terminal:
root@server:/home/daily# su mike
mike@server:/home/daily$ mail
No mail for mike
Any ideas on how to fix this? I'm running postfix and dovecot. No virtual users, only these two I've mentioned are needed...
1 Answer

We have a tutorial on setting up postfix and dovecot that should point you in the right direction. Check it out:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-e-mail-server-with-dovecot

If you're still having issues, could you post some information about you postfix configuration? Run:

<pre>postconf -n</pre>

by Lukas Erlacher
This tutorial will tell you how to setup a basic mail server and attempts to teach you a bit about the Postfix MTA (Mail Transfer Agent) in the process.
Have another answer? Share your knowledge.