1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/docs/wiki/MailIntegration--MTA Sun Nov 01 18:43:11 2015 +0100
1.3 @@ -0,0 +1,64 @@
1.4 += Mail Transfer Agents =
1.5 +
1.6 +Although this documentation does not seek to cover the details of configuring
1.7 +mail transfer agent (MTA) software, some hints and tips are offered to help
1.8 +avoid frustration.
1.9 +
1.10 +== General ==
1.11 +
1.12 +Some general measures are presented below.
1.13 +
1.14 +=== Mailname ===
1.15 +
1.16 +The contents of `/etc/mailname` should probably be the fully-qualified hostname,
1.17 +at least for Exim and Postfix. See
1.18 +[[https://wiki.debian.org/EtcMailName|the Debian Wiki page]] for more details.
1.19 +
1.20 +=== Hostname ===
1.21 +
1.22 +The `hostname` command should provide a suitable hostname on the system, or MTAs
1.23 +may behave strangely. This can be tested with the following command:
1.24 +
1.25 +{{{
1.26 +hostname -f
1.27 +}}}
1.28 +
1.29 +It should report a fully-qualified hostname.
1.30 +
1.31 +=== Interfaces ===
1.32 +
1.33 +Some software attempts to listen on interfaces that may not be supported. For example,
1.34 +Exim may be configured to listen on both IPv4 and IPv6 interfaces, even in environments
1.35 +(such as User Mode Linux) where IPv6 interfaces may not be available.
1.36 +
1.37 +== Exim ==
1.38 +
1.39 +On Debian, the following command can be run to adjust the configuration:
1.40 +
1.41 +{{{
1.42 +dpkg-reconfigure exim4-config
1.43 +}}}
1.44 +
1.45 +The following questions are especially interesting:
1.46 +
1.47 +{{{{#!table
1.48 +'''Question''' || '''Remarks'''
1.49 +==
1.50 +IP-addresses to listen on for incoming SMTP connections
1.51 +|| Remove IPv6 interfaces in User Mode Linux or other environments without
1.52 +.. IPv6 support or Exim will not bother listening on IPv4 interfaces either.
1.53 +==
1.54 +System mail name
1.55 +|| State the fully-qualified hostname, not just the domain name, which is
1.56 +.. what the dialogue suggests is sufficient. For example:
1.57 +{{{
1.58 +mailserver.example.com
1.59 +}}}
1.60 +==
1.61 +Other destinations for which mail is accepted
1.62 +|| This is a colon-separated list that should indicate the local domain as
1.63 +.. well as the unqualified hostname. For example:
1.64 +{{{
1.65 +mailserver:example.com
1.66 +}}}
1.67 +}}}}