Escolar Documentos
Profissional Documentos
Cultura Documentos
MUA
MUA MTA
MTA MUA
MUA
Remote
RemoteMTA
MTA Remote
RemoteMTA
MTA
Internet
Internet
Receiving and Delivering Messages
spool files.
Exim's Queue
exim -bp
How exim delivers messages:
/etc/localdomains
/etc/userdomains
/etc/valiases/domain.com
/etc/vfilters/domain.com
/home/username/etc/domain.com/passwd
/home/username/etc/domain.com/shadow
Message Identification
example: 1LbZ8L-0002GP-NP
Reducing Activity at high load
1) deliver_load_max:
When this option is set, no message deliveries
are ever done if the system load average is
greater than its value.
smtp_load_reserve:
This suspends incoming mail when load is high.
2) smtp_accept_max:
This specifies the maximum number of
simultaneous incoming SMTP calls that Exim
will accept.
smtp_accept_max = 100
3) smtp_accept_max_per_host:
This option restricts the number of simultaneous
IP connections from a single host to the Exim
daemon.
4) smtp_check_spool_space
When this option is set, if an incoming SMTP
session encounters the SIZE option on a MAIL
command, it checks that there is enough space
in the spool directory's partition to accept a
message of that size. If there isn't enough
space, a temporary error code is returned.
5) message_size_limit
This option limits the maximum size of message
that Exim will process.
6) remote_max_parallel
This option controls parallel delivery to remote
sites. If the value is less than 2, parallel
delivery is disabled, and Exim does all the
remote deliveries for a message one by one,
from a single delivery process.
Large Message Queues
split_spool_directory = yes
If this option is set, it causes Exim to split its
input directory into 62 subdirectories. Splitting
up the spool in this way may provide better
performance on systems where there are long
mail queues, by reducing the number of files in
any one directory.
Example:
/var/spool/exim/input
drwxr-x--- 2 mailnull mail 45056 Feb 24 06:56 0/
drwxr-x--- 2 mailnull mail 45056 Feb 24 07:01 1/
drwxr-x--- 2 mailnull mail 45056 Feb 24 07:05 2/
drwxr-x--- 2 mailnull mail 36864 Feb 24 07:00 3/
drwxr-x--- 2 mailnull mail 61440 Feb 24 06:59 4/
drwxr-x--- 2 mailnull mail 36864 Feb 24 07:08 5/
drwxr-x--- 2 mailnull mail 49152 Feb 24 06:19 6/
drwxr-x--- 2 mailnull mail 57344 Feb 24 07:08 7/
Example
host: simple.example
postmaster@simple.example
friend@another.example
For postmaster@simple.example, the domain
is local, so it is passed to the first defined
director, whose configuration is as follows:
system_aliases:
driver = aliasfile
file = /etc/aliases
search_type = lsearch
Second director configuration:
userforward:
driver = forwardfile
file = .forward
lookuphost:
driver = lookuphost
transport = remote_smtp
lookuphost: is used to obtain a list of remote
hosts for the domain of an address, and in its
normal configuration, it does this by looking
up the domain in the DNS using MX and
address records.
This details is then appended to the queue for
remote_smtp as a host list.
friend@another_domain.example
Lookup
Lookuphost
host DNS
DNS
remote_smtp
remote_smtp
Transport
Transportqueue
queue
Exim Commands