Ultimately we need to get our email client/MUA to send an email to its MTA which sends it to the RT server which gets picked up by exim which sends it to rt-mailgate which sends it to rt to make a ticket.
That should be easy, right?
Configure exim to send and receive email
First of all, the MTA needs to be set up. Since I'm using Debian Squeeze I will be configuring exim4, which comes installed.
To get your bearings, type
# exim -bV
# update-exim4.conf -v
to see where exim is reading its config from. Since I've not touched any settings yet, this directs me to /var/lib/exim4/config.autogenerated, which is generated from the config files in /etc/exim4/.
To configure exim, start by using dpkg-reconfigure:
# dpkg-reconfigure exim4-config
I entered the following:
- type of mail config: mail sent by smarthost, received by SMTP
- system mail name: same as the server name, tickets.company.com
- IP addresses to listen on: 127.0.0.1; ::1
- other domains for which mail is accepted: tickets.company.com
- machines to relay mail for: blank
- outgoing smarthost: smtp.company.com
- hide local mail name: no
- keep number of dns queries minimal: no
- mailbox in /var/mail
- split configuration: yes
At the end of the configuration, exim will restart.
Test the new configuration:
# exim -bt email@example.com
which ought to return details of the router and mail server that will be used to deliver mail to this address.
Next, test that exim can deliver an email to this address:
# echo 'hello' | mail -s "Test subject" firstname.lastname@example.orgNext we'll look at configuring RT and rt-mailgate to interact with exim.