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
|
The big change in emil-2.0.4 aside from bug fixes is that Emil
integration with sendmail now is much more straight forward.
Using the two features described below makes rule changes in
sendmail.cf unnecessery. The new concept is that all that is
needed to do is to change the mailer definitions in sendmail.cf,
a change that is much easier and has much less subtle side effects
than the older method used in emil-2.0.3 and previous versions.
Using the features described below, it is possible for a mail
administrator not so experienced in editing rewriting rules in
sendmail.cf to integrate message conversion and sendmail.
New features:
The syntax of emil.cf has been extended to also include external
programs, "mailers". The loopback call to sendmail via the command
line flag -f has been disabled. Now sendmail should be defined as
a mailer in emil.cf and selected with the -m "sendmail" argument
instead.
Emil now has support for not only loopback to sendmail, but also
for calls to local delivery programs, for example /bin/mail. In
emil.cf you define these "mailers":
mailer <mailername> : <path> <program> flags
Example:
mailer local.sunos5 : /bin/mail mail -d $r
In the mailer definition there a two variables available for use:
$s or $S - equals to sender as specified on the command line by
the -s flag. $r or $R - equals to recipient as specified on the
command line by the -r flag. In the above extract from an emil.cf
line "$r" stands for the recipient address. The string $r will
be exchanged for the recipient address by Emil before calling
/bin/mail.
Using the example above, the only thing that is necessery to change
in sendmail.cf, for the local mailer to be prefiltered by Emil, is
to change the local mailer from:
Mlocal, P=/bin/mail, F=**, S=**, R=**, A=mail -d $u
To:
Mlocal, P=<path_to_emil>, F=**, S=**, R=**, A=emil -r $u -s $g -x localhost -m local.sunos5
No need to change the rules in sendmail.cf. Do not take this
example literally, check your sendmail.cf and make the changes
necessery.
There is a small script that might help you, called "helper".
Just run "helper" and you can get some guidance as how to modify
your local mailer to use Emil conversion.
More new features:
Now Emil also has an SMTP client inside. It is enabled with the
"-n" command line flag. If using the SMTP client it is essential
to supply sender, recipient and relay with the "-s", "-r" and "-x"
flags respectively.
It is now possible to replace the TCP mailer of sendmail and instead
use Emil with the SMTP client as a TCP mailer. To do this edit the
TCP mailer specification of sendmail.cf from:
Mtcp, P=[IPC], F=mDFMueXLN, S=14, R=24, A=IPC $h, E=\r\n
to:
Mtcp,P=<path_to_emil>,F=DFMueXLN,S=14,R=24,A=emil -s $g -r $u -x $h -n,E=\r\n
Important! Make sure to remove the multiple recipient flag 'm', Emil
does not as of this version handle more than one recipient at a time.
No need to change the rules in sendmail.cf. Do not take this
example literally, check your sendmail.cf and make the changes
necessery.
|