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 firstname.lastname@example.org
and not one of the others, like email@example.com
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 firstname.lastname@example.org
, I have not received a return to sender (as I was before), but have not received the email yet either.