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:
localhost
server.domain
localhost.server.domain
localhost.domain
domain
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
name@domain.com and not one of the others, like
name@localhost.server.domain.com??
Thanks again
--Update
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
name@domain.com, I have not received a return to sender (as I was before), but have not received the email yet either.
Recent comments
21 hours 33 min ago
1 day 4 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 18 hours ago
2 days 3 hours ago
2 days 4 hours ago
2 days 7 hours ago
2 days 12 hours ago
2 days 12 hours ago