1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
<HEAD>
<TITLE>EMIL version 2 TUTORIAL</TITLE>
</HEAD>
<BODY>
<H1>TUTORIAL FOR EMIL VERSION 2.1
</H1>
<EM>Written by Martin Wendel, ITS, Uppsala university.
Martin.Wendel@its.uu.se
</EM>
<HR>
<A HREF=output.html><IMG ALIGN=MIDDLE SRC=arrow_right3.gif></A><A HREF=main.html><IMG ALIGN=MIDDLE SRC=arrow_up2.gif></A><A HREF=setting.html><IMG ALIGN=MIDDLE SRC=arrow_left3.gif></A>
<H2>INPUT CONVERSION</H2>
<p>
It is not a very good
idea to mess with the input of your MTA except when the messages to be
converted is sent through a channel only used by those messages. This
could for example be when you need to do message conversion for a site
connected with an UUCP channel or if you do conversion only for users
on the local host.
<p>
There are two methods of doing this: (1) Replacing the sendmail binary or
(2) replacing the program used to run sendmail. In both methods you move
the original program to another location and put Emil at the old location
instead. You then force Emil to call sendmail at the new location. This
is easiest done using a script calling Emil with the "-m sendmail" flag.
<em>This refers to the sendmail mailer as defined in Emil's configuration
file emil.cf. Thus, you need to have this mailer correctly defined in advance
(it should be, if using the emil.cf provided with the source).
Make extensive tests to insure that it works before you move sendmail.</em>
<p>
If emil is invoked as sendmail, it will parse arguments according to:
<p>
<pre>
sendmail -f sender recipient
</pre>
<p>
This is the way sendmail is called by mailer agents. Emil will also
run as if the arguments <b>mxhost</b> and <b>mailer</b> had been set to
<b>localhost</b> and <b>sendmail</b> respectively.
<p>
The procedure for making all local programs call Emil instead of sendmail
is:
<OL>
<LI> Modify the sendmail mailer in emil.cf to call sendmail.new
instead of sendmail.orig. (the original location is referenced
sendmail.orig and the new location sendmail.new)
<LI> Locate the sendmail binary (usually /usr/lib/sendmail or /usr/sbin/sendmail).
<LI> Rename the sendmail binary
<LI> Make a symbolic link from sendmail.orig to Emil or rename Emil to
sendmail.
</OL>
<EM>
You should also change all links pointing to sendmail.orig to point to
sendmail.new. This can be such programs as <b>mailq</b> and <b>newaliases
</b> aswell as links named sendmail at other locations.</EM>
<p>
On AIX the procedure would be:
<OL>
<LI> Modify the sendmail mailer in emil.cf to look like: <br>
<pre>mailer sendmail : /usr/sbin/sendmail.orig, sendmail.orig, -f, $s, $r ;
</pre>
<LI> <pre>mv /usr/sbin/sendmail /usr/sbin/sendmail.orig</pre>
<LI> <pre>ln -s /usr/local/bin/emil /usr/sbin/sendmail</pre>
<LI> <pre>rm /usr/sbin/mailq; ln -s /usr/sbin/sendmail.orig /usr/sbin/mailq</pre>
<LI> <pre>rm /usr/lib/sendmail; ln -s /usr/sbin/sendmail.orig /usr/lib/sendmail</pre>
<LI> <pre>rm /usr/sbin/newaliases; ln -s /usr/sbin/sendmail.orig /usr/sbin/newaliases</pre>
</OL>
<hr size="4" noshade>
<ADDRESS>
<table WIDTH="95%">
<td>
March 1996<p>
<B>ITS Uppsala university</B><BR>
Box 887<BR>
751 08 Uppsala<BR>
SWEDEN<P>
</td>
<td ALIGN="right" VALIGN="middle">
<a href="mailto:Martin.Wendel@its.uu.se">Martin Wendel</a>
</td>
<td ALIGN="left" VALIGN="middle">
<a href="mailto:Martin.Wendel@its.uu.se">
<IMG border="0" SRC="binpobox.gif" ALT="E-Mail: "></a>
</td>
</table>
</ADDRESS>
</body>
</html>
|