exim4:install_exim4_complete
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exim4:install_exim4_complete [2020/07/25 16:30] – old revision restored (2016/11/08 10:59) 92.220.10.100 | exim4:install_exim4_complete [2020/07/25 16:30] (current) – old revision restored (2016/11/08 11:39) 92.220.10.100 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Exim4 - Install Exim4 Complete ====== | ====== Exim4 - Install Exim4 Complete ====== | ||
+ | |||
+ | Our mail server supports virtual accounts using the MySQL database (enable set like MySQL, I spoke here ), SMTP-authentication and secure connection TLS / SSL. | ||
+ | |||
+ | To use TLS / SSL create a certificate. | ||
<code bash> | <code bash> | ||
- | mkdir -p / | + | mkdir -p / |
+ | cd / | ||
+ | openssl req -x509 -newkey rsa:1024 -keyout mail.pem -out mail.pem \ ? -days 9999 -nodes | ||
</ | </ | ||
+ | |||
+ | <WRAP alert> | ||
+ | Less than 9999 days exist before the Unix / Linux 32-bit date wrap-around occurs. | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | Country Name (2 letter code) [CA]: | ||
+ | State or Province Name (full name) [Quebec]: | ||
+ | Locality Name (eg, city) [Montreal]: | ||
+ | Organization Name (eg, company) [Open Network Architecture]: | ||
+ | Organizational Unit Name (eg, section) [Internet Department]: | ||
+ | Common Name (eg, YOUR name) []: | ||
+ | Email Address []: | ||
+ | </ | ||
+ | |||
+ | Fills as your heart desires (because you're not going to pay for the certificate), | ||
+ | |||
+ | <code bash> | ||
+ | Common Name (eg, YOUR name) []: sharewiz.net | ||
+ | </ | ||
+ | |||
+ | In the directory **/ | ||
+ | |||
+ | <code bash> | ||
+ | chmod 440 / | ||
+ | chgrp mail / | ||
+ | </ | ||
+ | |||
+ | The certificate is over, now the loans directly to Exim. | ||
+ | |||
+ | For Exim we need a non-privileged user that belongs to the group mail. Create it. | ||
+ | |||
+ | <code bash> | ||
+ | pw useradd exim -c " | ||
+ | exit | ||
+ | cat /etc/passwd | grep exim -d / | ||
+ | exit | ||
+ | cat /etc/passwd | pw useradd exim -c " | ||
+ | exit | ||
+ | cat /etc/passwd | grep exim | ||
+ | pw useradd exim -c " | ||
+ | exit | ||
+ | cat /etc/passwd | grep exim exim: | ||
+ | </ | ||
+ | |||
+ | The last command we find that your account has exim uid = 1003, and gid = 6. These data we need in the configuration. | ||
+ | |||
+ | Pick the latest version of **Exim** (as of this writing - 4.50) from site www.exim.org. | ||
+ | |||
+ | <code bash> | ||
+ | cd $HOME/ | ||
+ | links www.exim.org | ||
+ | tar xzfv exim-4.50.tar.gz | ||
+ | cd exim-4.50 | ||
+ | cp src/EDITME Local/ | ||
+ | </ | ||
+ | |||
+ | Edit the Local/ | ||
+ | |||
+ | <code bash> | ||
+ | $ ee Local/ | ||
+ | </ | ||
+ | |||
+ | changing | ||
+ | |||
+ | <file bash Local/ | ||
+ | BIN_DIRECTORY = / | ||
+ | on | ||
+ | |||
+ | BIN_DIRECTORY = / | ||
+ | Here we specify the installation path Exim executable files. | ||
+ | |||
+ | CONFIGURE_FILE = / | ||
+ | on | ||
+ | |||
+ | CONFIGURE_FILE = /usr / | ||
+ | Here we specify the name and path of the configuration file. | ||
+ | |||
+ | EXIM_USER = | ||
+ | on | ||
+ | |||
+ | EXIM_USER = 1003 | ||
+ | # EXIM_GROUP = | ||
+ | on | ||
+ | |||
+ | EXIM_GROUP = 6 | ||
+ | Remember I talked about the uid and gid? Right now we need them. Please enter a numeric user and group IDs on whose behalf will run Exim. | ||
+ | |||
+ | SPOOL_DIRECTORY = / | ||
+ | on | ||
+ | |||
+ | SPOOL_DIRECTORY = / | ||
+ | Here we specify the name of the spool-directory. | ||
+ | |||
+ | # SUPPORT_MAILDIR = yes | ||
+ | on | ||
+ | |||
+ | SUPPORT_MAILDIR = yes | ||
+ | Here we include support for Maildir. | ||
+ | |||
+ | # LOOKUP_MYSQL = yes | ||
+ | on | ||
+ | |||
+ | LOOKUP_MYSQL = yes | ||
+ | Here we include support for MySQL. | ||
+ | </ | ||
+ | |||
+ | To find the path to library files and MySQL headers, execute: | ||
+ |
exim4/install_exim4_complete.1595694624.txt.gz · Last modified: 2020/07/25 16:30 by 92.220.10.100