2007/12/7, Василий Озеров <[EMAIL PROTECTED]>:
>
>
>
>
> Ok. I will add  more information about my work.
> --
> Озеров Василий aka fr33man

<table border=1>
<tr>
<td>&nbsp;</td>
<td>Postfix</td>
<td>Exim</td>
<td>James Mail server</td>
</tr>
<tr>
<td>Add header to all mail</td>
<td>hard</td>
<td>easy</td>
<td>easy</td>
</tr>
<tr>
<td>send mail to online users only</td>
<td>easy</td>
<td>medium</td>
<td>easy</td>
</tr>
</table>


1) Add header to all mail(outgoind and incoming).
- When you are using postfix,  you can't add header to all mail by default.
By default you can only rewrite some basic headers. If you want to add you
own header you must to write script, or C/C++ program and add it to
master.cf config file. Master.cf describes external modules, that would pass
all mail. Your script or program must read mail and add some information to
the head. I think, it is not easy.

- When you are using exim, as mail server, you can easily add header to all
mail. You must add only one line to config file, like this: headers_add =
new_header:some_info

- When you are using James Mail server, you can easily add header to all
mail. You must add a few lines, like this:
<mailet match="All" class="AddHeader">
<name>new_header</name>
<value>some_info</value>
</mailet>
It is very easy.

2) Send Mail to online users(external check).
- If you are using postfix you have to write script, which would check
online users get its emails. Then the script must forward mail to local
delivery agent with recipient mail address of online user. When you have
written this script you must only add one line about it in master.cf. That's
all.

- If you are using exim Mail server you must write the same script, but it
doesn't need to forward mail to local delivery agent. When we execute this
script it must return only email address of online user. When the script is
written you must add new "router" and "transport" to exim configuration
file. It is not very easy, because you have to write the script and create a
new "router" and "transport" in exim configuration file.

- If you are using James mail server you also must write script, which will
rewrite header "To" with online user. And in configuration file you must add
one line, which will forward incoming mail to our script. It is easy I
think.


If you want to add header to all mail you must add a few lines to
configuration file, if you are using exim or James Mail server. And you must
write your own script, if you are using postfix.
If you want send mail to online users you must write you own script, which
will return mail address of online users. Then you must add one line about
this script to master.cf, if you are using postfix. And you must add
"router" and "transport" to exim configuration files, if you are using exim.
If you are using James Mail server you must only add a few line to config.



-- 
Озеров Василий aka fr33man

Reply via email to