Mail Server

I have some experience with Virtualmin, but I had a small break in use. I installed Ubuntu 8.04, updated packages to the latest version, and run the configuration script. The installation went well, start checking the script - all ok. I’ve created a new domain and started to test the mail. I send a message from the newly created account, Virtualmin writes a message “sent”, but when I’m checking there is now new messages. In the other side also does not work. I checked the rule in the firewall - added exceptions, the status information report all services running properly.

Thanks for help

Yep, Virtualmin is very flexible. You can disable the local mailserver, and you can choose not to create mailboxes on the local machine (or create them on an LDAP server). You can also configure your DNS templates to point the MX record and mail.domain.tld to the other server.

It’s pretty difficult to say exactly what you’ll need, as the possibilities are pretty wide open–probably the simplest thing is to just disable mailbox and alias creation:

In Module Configuration find the option "Mailbox and alias configuration enabled?" and set it to No.

And also disable all mail related modules for server owners in the “Feature modules available to server administrators” section. Server Templates can be used to setup alternate DNS entries, as well–so you don’t have to manually create the MX records to point to your other server.

Hi Rafal,

Try looking in the Email logs. If there’s a problem, those should tell you what’s going on. On Ubuntu, you can find those in /var/log/mail.log.

I writed in Polish,this is the english transation: I tried to re distribution system to another and this time I use CentOS 5.2.

When try to edit my post: Oops! You’ve hit a bug in the forum software. It’ll be fixed soon

check DNS

WARNING: MX records points to a CNAME. CNAMEs are not allowed in MX records, according to RFC974, RFC1034 3.6.2, RFC1912 2.4, and RFC2181 10.3. The problem MX record(s) are: points to [‘’]
This is not ok per the RFCs and can cause problems including mail being lost!

This my zone file

ttl 38400
@ IN SOA (
38400 )
@ IN NS IN A IN A IN A IN A IN A IN A IN A IN A IN A IN A IN A IN A IN MX 5 IN TXT "v=spf1 a mx ip4: ?all"

Okay, it doesn’t look like port 25 (SMTP) is open on

My guess is that either there’s some firewall software running on your server blocking that port, or that your ISP is blocking it.

This is strange. I can connect from localhost, but from web I can’t. I’don’t configure nothing.All the things do installation script. When I’m looking in the webmin->firewall port 25 is accepting incoming connections.

check DNS namely the nameservers.

ERROR: One or more of your nameservers did not respond: The ones that did not responded are:
ERROR: looks like you have lame nameservers. The following nameservers are lame:
Oh well, I did not detect any MX records so you probably don't have any and if you know you should have then they may be missing at your nameservers!
ERROR: I could not get any A records for!

and in the words of:

DNS check results for BIND: 9.3.1 BIND: 8.4.7-REL-NOESW BIND: 9.2.4
Asking ( for (type ANY) Error: ( Resolve for (ANY) failed: query timed out
Asking ( for (type ANY) Referral: is at ( Referral: is at ( Security: Server ( is recursive

Asking ( for (type ANY)
Loop detected! Probable cause is lame delegation to server with cached NS data

Results 0.0% of queries will end in failure at (A.ROOT-SERVERS.NET) - nameserver loop detected 10.3% of queries will end in failure at ( - nameserver loop detected 67.3% of queries will end in failure at ( - query timed out 22.4% of queries will end in failure at ( - nameserver loop detected

for IP if this is on a campus/university of some kind, their firewall may be an issue
for the other IP, is it at home and have you configured the router?






Thanks for your suggestion. I call my Internet Provider, and they block my 25 port. They told me,that they didn’t know I have my own mail server. Stupidos.