Russell Nelson wrote:
>
> Sounds like somebody is trying to parse the RFC822 headers again (but
> not clear who that is). This is not right. Once you've got an
> envelope address, you preserve it forever. Is fetchmail parsing the
> message? How are you getting the recipient information when the mail
> is pulled from your POP server?
>
All I want to do is find out if the originator of the message is local.
I really don't know how to do this, and would appreciate any help. I
just want to stop qmail from relaying messages which did not originate
on the local network.
My setup is working 100% except for the 'glitch' in question. Locally
and Remotely generated mail is all getting routed & delivered correctly.
The only problem is that when FetchMail delivers mail to port 25, qmail
"interprets" this as if someone local were sending the mail. This is
normally not a problem, because generally the mail retrieved is only
addressed to local recipients, and therefore gets delivered fine.
The problem comes when an email is addressed to _two_ or more people.
One of those people is local, but more often than not the other(s) are
not. Qmail delivers a copy to the local address, and another copy into
the outgoing ppp maildir for each non-local addressee ....
The only way I can see out of this is for qmail to inspect who's sending
the mail, and turf it if it's not a local user. This would mean
inspecting the "From:" field, or somehow finding out if FetchMail was
the one delivering the mail. Unfortunately I don't have a clue as to how
this would be done....
Am I on the right track ?
Regards,
Thomas