File: output.html

package info (click to toggle)
emil 2.1.0-beta9-5
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,160 kB
  • ctags: 587
  • sloc: ansic: 10,358; yacc: 412; makefile: 329; sh: 182
file content (116 lines) | stat: -rw-r--r-- 3,877 bytes parent folder | download | duplicates (6)
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<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=emil.cf.html><IMG ALIGN=MIDDLE SRC=arrow_right3.gif></A><A HREF=main.html><IMG ALIGN=MIDDLE SRC=arrow_up2.gif></A><A HREF=input.html><IMG ALIGN=MIDDLE SRC=arrow_left3.gif></A>

<H2>OUTPUT CONVERSION</H2>
<p>
Output conversion is the recommended way of using Emil. When setting
up output conversion you modify the delivery agent definitions in sendmail.cf
to call Emil instead of other delivery agents. You also supply Emil with 
mailer arguments to make Emil invoke these delivery agents.
<p>
Normally you'll need to modify the local mailer (if you have local mail
recipients on your system), the TCP mailer (if you use SMTP to send messages)
and the UUCP or other kinds of mailers if you use any of them.
<H3>Local mailer</H3>
<p>
To get instructions on how
to modify sendmail's local mailer, run the program <b>helper</b>. It will
parse your sendmail.cf and print the necessery changes. You will also get
an idea on how to change other mailers to use Emil. One important thing
to remember is to supply a "-m <mailer_name>" argument to Emil in sendmail.cf
and include the definition of mailer <mailer_name> in emil.cf.

<p>Running <b>helper</b> on my workstation yields this:
<pre>
# helper /etc/sendmail.cf


This program will help you to set up Emil as a filter to the
local mailer of sendmail.

Locate the following line in /etc/sendmail.cf:

        Mlocal,         P=/bin/bellmail, F=lsDFMmn, S=10, R=20/40,
        A=mail -F $g $u

Modify it to look like this:

        Mlocal, P=/usr/local/bin/emil, F=lsDFMmn, S=10, R=20/40, 
	A=emil -s $g -r $u -m local -u

Also, add the following line to your /usr/local/lib/emil.cf:

        mailer local : /bin/bellmail, mail, -F, $s, $r ;

Restart sendmail and try it out.
# 
</pre>
<p>
As you can see <b>helper</b> provides the necessery changes to both sendmail.cf
and emil.cf. In the mailer definition in sendmail.cf Emil is called instead
of bellmail. Emil is called with the argument "-m local" (mailer local in emil.cf). In emil.cf mailer local is defined, for a description of the syntax check
the man page on emil.cf.

<H3>TCP mailer</H3>
<p>
Emil has a builtin SMTP client interface that is invoked by the "-n" argument.
You do not have to define anything in emil.cf to make it work (and you cannot
either). Remember to supply Emil with the three arguments 
"-r &lt;recipient&gt;",
"-s &lt;sender&gt;" and "-x &lt;recipient host&gt;".
<p>
To get conversion on the TCP (or SMTP) mailer in sendmail.cf modify this 
(Don't copy this, instead modify the definition in your sendmail.cf. The
syntax may vary on different sendmails):
<pre>
Mtcp,    P=[IPC], F=mDFMueXLN,  S=14, R=24, A=IPC $h, E=\r\n
</pre>
into:
<pre>
Mtcp,P=&lt;path_to_emil&gt;,F=DFMueXLN,S=14,R=24,A=emil -s $g -r $u -x $h -n,E=\r\n
</pre>

<p>
Beware the change in the flag field (look above), Emil cannot handle 
multiple recipients, you need to remove the "m" (handle multiple recipients) 
from the mailer specification in sendmail.cf.

<H3>Other mailers</H3>
<p>
Just like when you define a local mailer (perhaps using <b>helper</b>), you
can also define other mailers. The method is the same. I've set up conversion
this way for a mail2pager facility, a mail2news facility etc.


<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>