Hi,
I need to use procmail to receive some mail messages forwarded to the
final receipient over 1 or 2 intermediate forwarder(s), ie:
A --> F1 [--> F2] --> B
where A is the real sender and B is the real receipient and F1 is the
first forwarder and F2 being the optional second forwarder. The reason
with the forwarder is that A and B are actually on different networks
(A on Novell, and B on UNIX) and there is *no* way for both machines to
deliver e-mails directly to each other (in fact it's only one way
traffic from A to B always) due to a proprietary mailer used on A!
However, there is SMTP server between A and the mailhub where all
outgoing mails would be forwarded. So for A to send mail to B, one must
specify proper Internet e-mail address of the receipient. But,
since the network is behind firewall and where there is only a mail
hub all Internet e-mail address will go *not* go directly to B either
as B is *not* set up to be externally visible, ie it does not have a
externally visible Internet e-mail address/alias and B does not run
internal DNS either.
As a result, for A to send mail to B, A must specify the recipient as
F1 (which has valid Internet e-mail alias), and relies on F1's procmail
filters to relay messages to B based on some criteria. Upon
receiving message, B again would use procmail to extract certain bits
of information from the header and body of the message and store them
away. Some of those information required are:
A's name
Data and time when message was sent by A
So, the obvious point is that, the message gets forwarded 2 (or 3 times
if F2 is involved) and the header would be added to the original
message presumably and how could one extract the very *original* header
information from the message ?
Thanks in advance.
M.C Wong
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com