Mail is skipped from spamassassin saying user whitelisted where as the sender id is not whitelisted
In the header of the spam mail, the sender id was different and the id mentioned in From was different. Though the actual sender id was not whitelisted the id mentioned in From was whitelisted.
The headers checked for whitelist addresses are as follows: if Resent-From is set, use that; otherwise check all addresses taken from the following set of headers:
Envelope-Sender Resent-Sender X-Envelope-From From
In addition, the ``envelope sender data, taken from the SMTP envelope data where this is available, is looked up.