problem to receive mail after install virtualmin

I just restored my system (centOS 5.4) and installed virtualmin. I tried to sent a test mail to gmail after created a virtual server. It is OK, but there was error when I replied it. My google mail received a message as following:

mail for $mydomainname loops back to back to myself

I didn't change anything since install virtualmin. the files for postfix are all default.

Status: 
Active

Comments

Howdy -- it sounds like your server isn't certain it's the final destination for emails on that domain.

The first thing I'd check is to make sure the hostname is correct in all the config files.

If you log in over SSH, run the command "hostname".

Then, make sure that exists in /etc/hosts, as well as on the mydestination line of /etc/postfix/main.cf.

yes, it exists in /etc/hosts, as well as on the mydestination line of /etc/postfix/main.cf.

but still doesn't work

Okay, try going into System Settings -> Re-Check Config, and see if that picks up any problems.

Also, go to Limits and Validation -> Validate Virtual Servers and perform validation on that domain. There may be issues with the mail server setup for the domain..

1) System Settings -> Re-Check Config

BIND DNS server is installed, and the system is configured to use it. Mail server Postfix is installed and configured.

Apache is installed.

Webalizer is installed.

Apache is configured to host SSL websites.

MySQL is installed and running.

ProFTPd is installed.

Logrotate is installed.

SpamAssassin and Procmail are installed and configured for use.

ClamAV is installed and assumed to be running.

The System and Server Status module is installed, but is not set up to check servers on a regular schedule. This should be enabled on its Scheduled Monitoring page.

Plugin DAV Login is installed OK.

Plugin AWstats reporting is installed OK.

Plugin Mailman is installed OK.

Plugin Protected web directories is installed OK.

Using network interface eth0 for virtual IPs.

IPv6 addresses are available, using interface eth0.

Default IP address for virtual servers is $MYIP.

Default IP address is set to $MYIP, which matches the detected external address.

Both user and group quotas are enabled for home and email directories.

All commands needed to create and restore backups are installed.

Resource limits are supported and configured correctly.

The selected package management and update systems are installed OK.

.. your system is ready for use by Virtualmin.

2) Limits and Validation -> Validate Virtual Servers

Beginning validation of selected virtual servers. Any problems found will be shown in red ..

socdesigner.com All features OK

3) use dig MX

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> MX socdesigner.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40253 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION: ;socdesigner.com. IN MX

;; ANSWER SECTION: socdesigner.com. 1800 IN MX 20 mail.

;; Query time: 122 msec ;; SERVER: 71.243.0.12#53(71.243.0.12) ;; WHEN: Thu Jul 1 13:38:08 2010 ;; MSG SIZE rcvd: 53

It seem all OK

What if you select that socdesigner.com domain from the left menu, then go to Logs and Reports -> Check Connectivity? Does it report any errors?

this is message after I run "Check Connectivity"

Failed to check connectivity

Download timed out

Verify that your DNS server is running, that software.virtualmin.com can be resolved, and that no firewall is blocking outgoing HTTP requests.

Sounds like something is blocking outgoing connections from your system!

If you SSH in as root and run :

curl http://software.virtualmin.com/cgi-bin/ip.cgi

what does it output?

That looks fine then .. can you re-try running the connectivity check?

Well, a bit old, but maybe usefull for others:

to fix that error just goto the Postfix module -> General Options -> What domains to receive mail for In this field add the hostname of your server. For some reason the variable $myhostname isn't sufficient.