User Tools

Site Tools


exim4:install_exim4_complete

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
exim4:install_exim4_complete [2020/07/25 16:30] – old revision restored (2016/11/08 10:59) 92.220.10.100exim4: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 /etc/ssl/certs cd /etc/ssl/certs openssl req -x509 -newkey rsa:1024 -keyout mail.pem -out mail.pem \ ? -days 9999 -nodes+mkdir -p /etc/ssl/certs  
 +cd /etc/ssl/certs  
 +openssl req -x509 -newkey rsa:1024 -keyout mail.pem -out mail.pem \ ? -days 9999 -nodes
 </code> </code>
 +
 +<WRAP alert>
 +Less than 9999 days exist before the Unix / Linux 32-bit date wrap-around occurs.
 +</WRAP>
 +
 +<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 []:
 +</code>
 +
 +Fills as your heart desires (because you're not going to pay for the certificate), except for the string **Common Name (eg, YOUR name) []**.  Here you need to enter the name of our server:
 +
 +<code bash>
 +Common Name (eg, YOUR name) []: sharewiz.net
 +</code>
 +
 +In the directory **/etc/ssl/certs** appeared certificate file mail.pem, which in the future we will use for the secure connection to our mail server.  We carry on this file two more opertsii: 
 +
 +<code bash>
 +chmod 440 /etc/ssl/certs/mail.pem 
 +chgrp mail /etc/ssl/certs/mail.pem
 +</code>
 +
 +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 "Exim" -d /var/spool/mqueue -s /sbin/nologin -g mail 
 +exit 
 +cat /etc/passwd | grep exim -d /var/spool/mqueue -s /sbin/nologin -g mail 
 +exit 
 +cat /etc/passwd | pw useradd exim -c "Exim" -d /var/spool/mqueue -s /sbin/nologin -g mail 
 +exit 
 +cat /etc/passwd | grep exim 
 +pw useradd exim -c "Exim" -d /var/spool/mqueue -s /sbin/nologin -g mail 
 +exit 
 +cat /etc/passwd | grep exim exim:*:1003:6:Exim:/var/spool/mqueue/:/sbin/nologin mqueue /:/sbin/nologin
 +</code>
 +
 +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.  Do not take the earlier version.  This is due to the fact that, since version 4.50, previously separately existing patch **exiscan-acl** is integrated in the source code.
 +
 +<code bash>
 +cd $HOME/install 
 +links www.exim.org 
 +tar xzfv exim-4.50.tar.gz 
 +cd exim-4.50 
 +cp src/EDITME Local/Makefile
 +</code>
 +
 +Edit the Local/Makefile 
 +
 +<code bash>
 +$ ee Local/Makefile
 +</code>
 +
 +changing
 +
 +<file bash Local/Makefile>
 +  BIN_DIRECTORY = /usr/exim/bin
 +  on 
 +
 +  BIN_DIRECTORY = /usr/local/exim/bin
 +  Here we specify the installation path Exim executable files. 
 + 
 +  CONFIGURE_FILE = /usr/exim/configure
 +  on 
 +
 +  CONFIGURE_FILE = /usr /local/exim/configure
 +  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 = /var/spool/exim
 +  on 
 +
 +  SPOOL_DIRECTORY = /var/spool/mqueue
 +  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. 
 +</file>
 +
 +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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki