root@maildemo:~# apt-get install exim4 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: exim4-base exim4-config exim4-daemon-light libpcre3 Suggested packages: exim4-doc-html exim4-doc-info eximon4 gnutls-bin openssl libmail-spf-query-perl Recommended packages: mailx The following NEW packages will be installed: exim4 exim4-base exim4-config exim4-daemon-light libpcre3 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 1919kB of archives. After this operation, 4100kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://mirror.cs.dixie.edu hardy/main exim4-config 4.69-2 [310kB] Get:2 http://mirror.cs.dixie.edu hardy/main exim4-base 4.69-2 [981kB] Get:3 http://mirror.cs.dixie.edu hardy-updates/main libpcre3 7.4-1ubuntu2.1 [206kB] Get:4 http://mirror.cs.dixie.edu hardy/main exim4-daemon-light 4.69-2 [416kB] Get:5 http://mirror.cs.dixie.edu hardy/main exim4 4.69-2 [6354B] Fetched 1919kB in 0s (3126kB/s) Preconfiguring packages ... Selecting previously deselected package exim4-config. (Reading database ... 17828 files and directories currently installed.) Unpacking exim4-config (from .../exim4-config_4.69-2_all.deb) ... Selecting previously deselected package exim4-base. Unpacking exim4-base (from .../exim4-base_4.69-2_i386.deb) ... Selecting previously deselected package libpcre3. Unpacking libpcre3 (from .../libpcre3_7.4-1ubuntu2.1_i386.deb) ... Selecting previously deselected package exim4-daemon-light. Unpacking exim4-daemon-light (from .../exim4-daemon-light_4.69-2_i386.deb) ... Selecting previously deselected package exim4. Unpacking exim4 (from .../archives/exim4_4.69-2_all.deb) ... Setting up exim4-config (4.69-2) ... Adding system-user for exim (v4) Setting up exim4-base (4.69-2) ... Setting up libpcre3 (7.4-1ubuntu2.1) ... Setting up exim4-daemon-light (4.69-2) ... * Starting MTA [ OK ] Setting up exim4 (4.69-2) ... Processing triggers for libc6 ... ldconfig deferred processing now taking place ========================================================================= NOTE: I used --frontend readline to make the screen capture work. You probably want to remove that option. For example you should type: # dpkg-reconfigure exim4-config ========================================================================= root@maildemo:~# dpkg-reconfigure --frontend readline exim4-config Mail Server configuration ------------------------- Please select the mail server configuration type that best meets your needs. Systems with dynamic IP addresses, including dialup systems, should generally be configured to send outgoing mail to another machine, called a 'smarthost' for delivery because many receiving systems on the Internet block incoming mail from dynamic IP addresses as spam protection. A system with a dynamic IP address can receive its own mail, or local delivery can be disabled entirely (except mail for root and postmaster). 1. internet site; mail is sent and received directly using SMTP 2. mail sent by smarthost; received via SMTP or fetchmail 3. mail sent by smarthost; no local mail 4. local delivery only; not on a network 5. no configuration at this time General type of mail configuration: 2 The 'mail name' is the domain name used to 'qualify' mail addresses without a domain name. This name will also be used by other programs. It should be the single, fully qualified domain name (FQDN). Thus, if a mail address on the local host is foo@example.org, the correct value for this option would be example.org. This name won't appear on From: lines of outgoing messages if rewriting is enabled. System mail name: maildemo.utahsg.net Please enter a semicolon-separated list of IP addresses. The Exim SMTP listener daemon will listen on all IP addresses listed here. An empty value will cause Exim to listen for connections on all available network interfaces. If this system only receives mail directly from local services (and not from other hosts), it is suggested to prohibit external connections to the local Exim daemon. Such services include e-mail programs (MUAs) which talk to localhost only as well as fetchmail. External connections are impossible when 127.0.0.1 is entered here, as this will disable listening on public network interfaces. IP-addresses to listen on for incoming SMTP connections: 144.38.211.189 Please enter a semicolon-separated list of recipient domains for which this machine should consider itself the final destination. These domains are commonly called 'local domains'. The local hostname (maildemo.utahsg.net) and 'localhost' are always added to the list given here. By default all local domains will be treated identically. If both a.example and b.example are local domains, acc@a.example and acc@b.example will be delivered to the same final destination. If different domain names should be treated differently, it is necessary to edit the config files afterwards. Other destinations for which mail is accepted: maildemo.utahsg.net Please enter a semicolon-separated list of IP address ranges for which this system will unconditionally relay mail, functioning as a smarthost. You should use the standard address/prefix format (e.g. 194.222.242.0/24 or 5f03:1200:836f::/48). If this system should not be a smarthost for any other host, leave this list blank. Machines to relay mail for: 144.38.211.160/27 Please enter the IP address or the host name of a mail server that this system should use as outgoing smarthost. If the smarthost only accepts your mail on a port different from TCP/25, append two colons and the port number (for example smarthost.example::587 or 192.168.254.254::2525). Colons in IPv6 addresses need to be doubled. If the smarthost requires authentication, please refer to the Debian-specific README files in /usr/share/doc/exim4-base for notes about setting up SMTP authentication. IP address or host name of the outgoing smarthost: stumail.cs.dixie.edu The headers of outgoing mail can be rewritten to make it appear to have been generated on a different system. If this option is chosen, 'maildemo.utahsg.net', 'localhost' and 'maildemo.utahsg.net' in From, Reply-To, Sender and Return-Path are rewritten. Hide local mail name in outgoing mail? no In normal mode of operation Exim does DNS lookups at startup, and when receiving or delivering messages. This is for logging purposes and allows keeping down the number of hard-coded values in the configuration. If this system does not have a DNS full service resolver available at all times (for example if its Internet access is a dial-up line using dial-on-demand), this might have unwanted consequences. For example, starting up Exim or running the queue (even with no messages waiting) might trigger a costly dial-up-event. This option should be selected if this system is using Dial-on-Demand. If it has always-on Internet access, this option should be disabled. Keep number of DNS-queries minimal (Dial-on-Demand)? no Exim is able to store locally delivered email in different formats. The most commonly used ones are mbox and Maildir. mbox uses a single file for the complete mail folder stored in /var/mail/. With Maildir format every single message is stored in a separate file in ~/Maildir/. Please note that most mail tools in Debian expect the local delivery method to be mbox in their default. 1. mbox format in /var/mail/ 2. Maildir format in home directory Delivery method for local mail: 1 The Debian exim4 packages can either use 'unsplit configuration', a single monolithic file (/etc/exim4/exim4.conf.template) or 'split configuration', where the actual Exim configuration files are built from about 50 smaller files in /etc/exim4/conf.d/. Unsplit configuration is better suited for large modifications and is generally more stable, whereas split configuration offers a comfortable way to make smaller modifications but is more fragile and might break if modified carelessly. A more detailed discussion of split and unsplit configuration can be found in the Debian-specific README files in /usr/share/doc/exim4-base. Split configuration into small files? no * Stopping MTA for restart [ OK ] * Restarting MTA [ OK ] root@maildemo:~# apt-get install mailx Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: mailx 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 157kB of archives. After this operation, 299kB of additional disk space will be used. Get:1 http://mirror.cs.dixie.edu hardy/main mailx 1:8.1.2-0.20071017cvs-2 [157kB] Fetched 157kB in 0s (1666kB/s) Selecting previously deselected package mailx. (Reading database ... 18037 files and directories currently installed.) Unpacking mailx (from .../mailx_1%3a8.1.2-0.20071017cvs-2_i386.deb) ... Setting up mailx (1:8.1.2-0.20071017cvs-2) ... root@maildemo:~# exit exit cgl@maildemo:~$ mailx cgl@infowest.com Subject: Test from utahsg.net Hello Goodbye . Cc: cgl@maildemo:~$ ==================================================================== This is the resulting email message that was received. ==================================================================== Return-Path: Delivered-To: cgl@infowest.com Received: from martos.filtered.smtp.infowest.com (martos.filtered.smtp.infowest.com [204.17.177.70]) by ubrique.infowest.com (Postfix) with ESMTP id 33258C382A for ; Thu, 24 Sep 2009 16:53:38 -0600 (MDT) Received: from ceuta.scan.iwsmtp.com (ceuta.scan.iwsmtp.com [209.33.205.6]) by martos.filtered.smtp.infowest.com (Postfix) with ESMTP id 29229A1023 for ; Thu, 24 Sep 2009 16:53:38 -0600 (MDT) Received: from sol.cs.dixie.edu (cs.dixie.edu [144.38.193.10]) by ceuta.scan.iwsmtp.com (8.14.3/8.14.3/Debian-5) with ESMTP id n8OMrVln003201 for ; Thu, 24 Sep 2009 16:53:34 -0600 Received: from stumail.cs.dixie.edu ([144.38.193.16]) by sol.cs.dixie.edu with esmtp (Exim 4.69) (envelope-from ) id 1Mqx2P-0000yh-Tf for cgl@infowest.com; Thu, 24 Sep 2009 16:43:45 -0600 Received: from maildemo.utahsg.net ([144.38.211.189]) by stumail.cs.dixie.edu with esmtp (Exim 4.69) (envelope-from ) id 1MqxBm-0001kd-35 for cgl@infowest.com; Thu, 24 Sep 2009 16:53:26 -0600 Received: from cgl by maildemo.utahsg.net with local (Exim 4.69) (envelope-from ) id 1MqkWK-0001WG-Kb for cgl@infowest.com; Thu, 24 Sep 2009 03:21:48 -0600 To: cgl@infowest.com Subject: Test from utahsg.net Message-Id: From: cgl Date: Thu, 24 Sep 2009 03:21:48 -0600 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN, cgl@infowest.com) X-Spam-Score: 1.80 (*) [Hold at 2.50] DATE_IN_PAST_12_24,SPF(none,0) X-CanIt-Geo: ip=144.38.193.10; country=US; region=UT; city=Saint George; postalcode=84770; latitude=37.1834; longitude=-113.5999; metrocode=770; areacode=435; http://maps.google.com/maps?q=37.1834,-113.5999&z=6 X-CanItPRO-Stream: cgl@infowest.com (inherits from default) X-Canit-Stats-ID: 296068184 - 4daa8f39ba74 X-Antispam-Training-Forget: https://spamtrap.infowest.com/canit/b.php?i=296068184&m=4daa8f39ba74&c=f X-Antispam-Training-Nonspam: https://spamtrap.infowest.com/canit/b.php?i=296068184&m=4daa8f39ba74&c=n X-Antispam-Training-Spam: https://spamtrap.infowest.com/canit/b.php?i=296068184&m=4daa8f39ba74&c=s Content-Type: text/plain MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: CanIt (www . roaringpenguin . com) on 10.128.3.10 Hello Goodbye ==================================================================== A sample message was sent from the infowest account. ==================================================================== cgl@maildemo:~$ cat /var/mail/cgl From cgl@mail.infowest.com Thu Sep 24 03:22:55 2009 Return-path: Envelope-to: cgl@maildemo.utahsg.net Delivery-date: Thu, 24 Sep 2009 03:22:55 -0600 Received: from tozar.out.smtp.infowest.com ([204.17.177.66]) by maildemo.utahsg.net with esmtp (Exim 4.69) (envelope-from ) id 1MqkXP-0001WZ-5Y for cgl@maildemo.utahsg.net; Thu, 24 Sep 2009 03:22:55 -0600 Received: from marbella.client.smtp.infowest.com (marbella.client.smtp.infowest.com [204.17.177.60]) by tozar.out.smtp.infowest.com (Postfix) with ESMTP id A359C2465A9 for ; Thu, 24 Sep 2009 16:55:59 -0600 (MDT) Received: from imail.infowest.com (webmail.infowest.com [204.17.177.50]) (Authenticated sender: cgl@infowest.com) by marbella.client.smtp.infowest.com (Postfix) with ESMTPSA id A0160A1020 for ; Thu, 24 Sep 2009 16:55:59 -0600 (MDT) MIME-Version: 1.0 Received: from brockhall.cs.dixie.edu [144.38.205.133] with HTTP/1.1 (POST); Thu, 24 Sep 2009 16:55:59 -0600 Date: Thu, 24 Sep 2009 16:55:59 -0600 From: cgl To: Subject: Test from infowest Message-ID: <7c80e24e414345329b8698b62ecd9ee9@mail.infowest.com> X-Sender: cgl@mail.infowest.com User-Agent: RoundCube Webmail/0.3-stable Content-Type: multipart/alternative; boundary="=_b61ab3738620318443eeaefa536cf99d" --=_b61ab3738620318443eeaefa536cf99d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello from infowest.=20 =20 --=_b61ab3738620318443eeaefa536cf99d Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Hello from infowest.

 

--=_b61ab3738620318443eeaefa536cf99d-- cgl@maildemo:~$ sudo bash root@maildemo:~# cat /var/log/exim4/mainlog 2009-09-24 03:18:03 exim 4.69 daemon started: pid=5092, -q30m, listening for SMTP on [127.0.0.1]:25 2009-09-24 03:18:03 Start queue run: pid=5093 2009-09-24 03:18:03 End queue run: pid=5093 2009-09-24 03:20:34 exim 4.69 daemon started: pid=5809, -q30m, listening for SMTP on [144.38.211.189]:25 2009-09-24 03:20:34 Start queue run: pid=5810 2009-09-24 03:20:34 End queue run: pid=5810 2009-09-24 03:21:48 1MqkWK-0001WG-Kb <= cgl@maildemo.utahsg.net U=cgl P=local S=376 2009-09-24 03:21:48 1MqkWK-0001WG-Kb => cgl@infowest.com R=smarthost T=remote_smtp_smarthost H=stumail.cs.dixie.edu [144.38.193.16] 2009-09-24 03:21:48 1MqkWK-0001WG-Kb Completed 2009-09-24 03:22:55 1MqkXP-0001WZ-5Y <= cgl@mail.infowest.com H=tozar.out.smtp.infowest.com [204.17.177.66] P=esmtp S=1568 id=7c80e24e414345329b8698b62ecd9ee9@mail.infowest.com 2009-09-24 03:22:55 1MqkXP-0001WZ-5Y => cgl R=local_user T=mail_spool 2009-09-24 03:22:55 1MqkXP-0001WZ-5Y Completed root@maildemo:~# exit cgl@maildemo:~$ mailx Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/cgl": 1 message 1 new >N 1 cgl@mail.infowest Thu Sep 24 03:22 47/1742 Test from infowest & 1 Message 1: From cgl@mail.infowest.com Thu Sep 24 03:22:55 2009 Envelope-to: cgl@maildemo.utahsg.net Delivery-date: Thu, 24 Sep 2009 03:22:55 -0600 MIME-Version: 1.0 Date: Thu, 24 Sep 2009 16:55:59 -0600 From: cgl To: Subject: Test from infowest X-Sender: cgl@mail.infowest.com User-Agent: RoundCube Webmail/0.3-stable Content-Type: multipart/alternative; boundary="=_b61ab3738620318443eeaefa536cf99d" --=_b61ab3738620318443eeaefa536cf99d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello from infowest.=20 =20 --=_b61ab3738620318443eeaefa536cf99d Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Hello from infowest.

 

--=_b61ab3738620318443eeaefa536cf99d-- & d1 & q cgl@maildemo:~$