Search our database

How to setup mail footer/signature using exim.conf

1. SSH to your server.

2. vi /etc/exim.conf, and include line below.

remote_smtp:
  driver = smtp
  transport_filter = /scripts/footer.sh

Save it and exit.

3. Go to root, create folders and files accordingly as below:

cd /
mkdir scripts
cd scripts

4. Create 3 files, footer.html footer.sh footer.txt.

The content of footer.sh is as below:

###############footer.sh###############
#!/bin/sh
TEMP=`/bin/date "+%s.%N"`
/bin/cat >/tmp/altermime.$TEMP
/bin/altermime --input=/tmp/altermime.$TEMP --disclaimer=/scripts/footer.txt --disclaimer-html=/scripts/footer.html --log-syslog
/bin/cat /tmp/altermime.$TEMP
/bin/rm -f /tmp/altermime.$TEMP
###############footer.sh###############

While content of footer.html and footer.txt is the mail footer/signature you wish to include inside. Save everything and restart exim service.

service exim restart

You may test it by sending a test mail to yourself.

Tags: , , ,