Postfix mailing problem


I am having problems sending email to any of my domains - I think I should have RTFM but I didnt - I assumed that my server was setup correctly to install Virtualmin…I upgraded from the GPL to Pro, and so in my naivety left my domain name as localhost.localdomain. which appears to be a problem.
I have since changed my /etc/hosts file to reflect my servername and the DNS domain of my server. However I now get this response when mail is sent:

[code:1]<> (expanded from <>«»): Host or domain name not found. Name service error for type=A: Host not found[/code:1]

My /etc/hosts:

[code:1]# Do not remove the following line, or various programs

that require network functionality will fail. localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6 servername[/code:1]

I’m confused as to where the is coming from.
Again I’m pretty sure that it is related to this /etc/hosts file…

System: CentOS 5

Thanks for any help,

Paul<br><br>Post edited by: pixel_paul, at: 2008/01/10 05:38

I had a similar problem. Correted it in the "Postfix Mail Server" module under "Address Rewriting and Masquerading" I played with it some and found that unchecking the two "Rewrite" statements on the right hand side corrected the problem.


Many thanks.