Unknown action ""toc""

Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet. It is freely available under the terms of the GNU General Public Licence. In style it is similar to Smail 3, but its facilities are more general. There is a great deal of flexibility in the way mail can be routed, and there are extensive facilities for checking incoming mail. Exim can be installed in place of Sendmail, although the configuration of Exim is quite different.

Installation
A working RPM/YUM environment is required to run this software.
You need to add OS/2Power repository to your configuration: download this file and install with
rpm -i os2power-repo-0.0.0-2.oc00.i386.rpm

Check if your repository list has been updated with
yum repolist

To install Exim4, run:
yum install exim

This will install Exim4 SMTP engine. The configuration files are placed into /@unixroot/etc/exim4 directory.

Configure SMTP send
To enable sending messages using SMTP, I suggest at least the following changes:
--- exim.conf.rpmnew	2011-03-03 09:52:50.000000000 +0100
+++ exim.new	2011-03-23 14:23:00.000000000 +0100
@@ -51,16 +51,16 @@
 # the right thing and you need not set anything explicitly.
 
 # primary_hostname =
-
+primary_hostname = mail.mydomain.com
 
 # The next three settings create two lists of domains and one list of hosts.
 # These lists are referred to later in this configuration using the syntax
 # +local_domains, +relay_to_domains, and +relay_from_hosts, respectively. They
 # are all colon-separated lists:
 
-domainlist local_domains = @ : localhost : localhost.localdomain
+domainlist local_domains = @ : localhost : localhost.localdomain : mydomain.com
 domainlist relay_to_domains =
-hostlist   relay_from_hosts = 127.0.0.1
+hostlist   relay_from_hosts = 127.0.0.1 : 10.1.1.0/24
 
 # Most straightforward access control requirements can be obtained by
 # appropriate settings of the above options. In more complicated situations,
@@ -143,6 +143,7 @@
 # Allow any client to use TLS.
 
 # tls_advertise_hosts = *
+tls_advertise_hosts = *
 
 # Specify the location of the Exim server's TLS certificate and private key.
 # The private key must not be encrypted (password protected). You can put
@@ -163,6 +164,7 @@
 # non-standard port 465.
 
 # daemon_smtp_ports = 25 : 465 : 587
+daemon_smtp_ports = 587
 # tls_on_connect_ports = 465
 
 
@@ -220,7 +222,7 @@
 # expensive, you can specify the networks for which a lookup is done, or
 # remove the setting entirely.
 
-host_lookup = *
+host_lookup = !10.1.1.0/24
 
 
 # The settings below, which are actually the same as the defaults in the
@@ -233,7 +235,7 @@
 # connection, leading to delays on starting up SMTP sessions. (The default was
 # reduced from 30s to 5s for release 4.61.)
 
-rfc1413_hosts = *
+rfc1413_hosts = !10.1.1.0/24
 rfc1413_query_timeout = 5s
 
 
@@ -722,6 +724,7 @@
 # Address or Domain    Error       Retries
 # -----------------    -----       -------
 
+*                      rcpt_4xx    F,1h,6m; F,2h,15m; G,16h,1h,1.5; F,4d,6h
 *                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h


If you configure Exim to use a port different from 25, you can run it in parallel with your existing SMTP server.

It is also possible to enable OpenSSL support, to get support for encrypted communications.

Configure SMTP receive
Receive mail is currently tested only for local users, using MySQL or virtual domains is not tested. To configure local users, it is possible to use Samba User manager, who takes care of adding users, groups and manage passwords.
With standard configuration, maildir format is used to store user messages; using Samba User manager, it is necessary to define an existing home directory for every user, otherwise local delivery will fail.
Current public release of Samba User manager does not store the password in /@unixroot/etc/master.passwd: use a standard program like Apache's htpasswd.exe (htpasswd -n yuri) to generate user passords on console, then paste them in master.passwd; you need to run (from Samba distribution)
pwd_mkdb.exe x:\etc\master.passwd

to regenerate secure databases.

Access mailboxes
Please look at CourierImap page for details about POP3 and IMAP access.


Categories
CategorySoftware
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki