Max memory for 21" 2007 iMac?
Crucial, UK state that 4GB is the maximum amount of RAM that your iMac officially supports. 

If you put more in and it worked then this could be seen as a 'bug', and wouldn't be supported by Apple. Such abilities could also be revoked through software/firm was updates.