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
10 hours 25 min ago
13 hours 20 min ago
14 hours 34 min ago
15 hours 57 min ago
17 hours 35 min ago
19 hours 4 min ago
20 hours 18 min ago
1 day 12 hours ago
1 day 13 hours ago
1 day 16 hours ago