Okay, this is the weird bit. I can send email to email accounts created by users (ie,
testaccount@domain.com) but not the default email account for that account (ie, say the username is bob and the domain is fred.com,
bob@fred.com is the default email account for fred.com.) The only account I can send email to the default account for is one that I created myself before moving all the files over, so obviously there's a directory or a file somewhere that I've missed that contains the names of the default email accounts for each account.
That's easily the least understandable thing I've ever written, so if someone out there can understand it and give me a solution they'll be some kind of god.