LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mail server questions? (https://www.linuxquestions.org/questions/linux-server-73/mail-server-questions-703854/)

dissident85 02-11-2009 06:57 AM

Mail server questions?
 
Hi, I have just setup my first Linux mail server using Debian, Postfix, Dovecot, SASL & Roundcube. Everything is working find but i just had a few questions about Linux mail servers. First question is where are the emails kept? and where are the attachments kept?
I wanted to control what my users can access so to stop my users accessing the server via ssh i changed their shell to /bin/false. is that the best way to go about that? or is there another preferred method?

and finally is there any way to keep track of usage quotas? well set some?

datopdog 02-12-2009 03:14 AM

Where mail is kept depends on whether you are using mbox or maildir for mbox mail will be stored in /var/mail/username, for maildir its stored in /home/username/Maildir

You can set and track quota's using the filesystem quota's look at the quota package for details.

pcunix 02-12-2009 06:41 AM

Attachments are in the email itself. If you go look at any mail message with an attachment, you'll find the mime encoded attachment(s) within.

Using /bin/false stops them from logging in. However, that can cause problems for programs like "vacation" that want to use sendmail, because it wants a real shell (Google for "using vacation with /bin/false").

See the sendmail FAQ for quotas: http://www.sendmail.org/~ca/email/lfaq.html#QUOTA


All times are GMT -5. The time now is 04:51 AM.