Thanks falko, I'm guessing I found the problem I checked my /etc/postfix/local-host-names and it had basically every possible domain combination in there:
so I checked my main.cf and I saw the mydestination line is commented out and does not contain "domain", it does have locahost etc. Could this be the issue?
I also checked the virtualusertable and did notice an entry probably from when I was messing around with ISPConfig trying to figure it out.
If this is the issue how does the server know that when mail is sent, to send it out as email@example.com
and not one of the others, like firstname.lastname@example.org
just uncommented the mydestination line and added domain.com to it, restarted postfix and when i send out mail it still comes as server.domain.com and when sending to email@example.com
, I have not received a return to sender (as I was before), but have not received the email yet either.