Difference between revisions of "Mail Setup (Wheezy)"
Jump to navigation
Jump to search
(Created page with "The basics given here are pretty much identical for any *nix setup. == Mailing Certificate(s) == Make a 2048 bit rsa certificate for your IMAP and/or SMTP Submission domain ...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The basics given here are pretty much identical for any *nix setup. | The basics given here are pretty much identical for any *nix setup. | ||
+ | |||
+ | == Virtual Mail User == | ||
+ | |||
+ | addgroup --gid 999 vmail | ||
+ | useradd -d /var/vmail -s /usr/sbin/nologin -g 999 -r -u 999 --disabled-password --gecos "" vmail | ||
+ | chmod 2770 /var/vmail | ||
+ | |||
+ | Keep track of what ids you use for vmail's user/group. | ||
== Mailing Certificate(s) == | == Mailing Certificate(s) == | ||
Line 24: | Line 32: | ||
logcheck: root | logcheck: root | ||
clamav: root | clamav: root | ||
− | root: administrator | + | root: administrator@yourmaindomain.com |
+ | |||
+ | Note that if your main mailserver defines a different alias for root in this guide, it is going to override what you specify here. | ||
+ | |||
+ | {{Bottom Wheezy}} |
Latest revision as of 21:57, 7 May 2014
The basics given here are pretty much identical for any *nix setup.
Virtual Mail User
addgroup --gid 999 vmail useradd -d /var/vmail -s /usr/sbin/nologin -g 999 -r -u 999 --disabled-password --gecos "" vmail chmod 2770 /var/vmail
Keep track of what ids you use for vmail's user/group.
Mailing Certificate(s)
Make a 2048 bit rsa certificate for your IMAP and/or SMTP Submission domain
- Make a private directory in /etc/ that is chmod 0700
- openssl genrsa -out keyname.key 2048
- chmod 600 keyname.key
- Either leave as snake-oil certs or get it signed by a 'real' signer. The latter is more of a convenience, really.
/etc/aliases
mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root noc: root security: root logcheck: root clamav: root root: administrator@yourmaindomain.com
Note that if your main mailserver defines a different alias for root in this guide, it is going to override what you specify here.