Hi guys
I have a webmin installed on ubuntu server and I configured it from official website to have a mailserver.
I can send outgoing emails for example to yahoo or gmail accounts but I can’t receive email from outside.
I have created a virtual server for my mail server and named it like my domain name, and then i created a bind zone and in there configured A records and nameservers and mail server records.
when i send an email from gmail to my mailserver i get this error message :
" This is an automatically generated Delivery Status Notification
THIS IS A WARNING MESSAGE ONLY.
YOU DO NOT NEED TO RESEND YOUR MESSAGE.
Delivery to the following recipient has been delayed: info@mydomain.com
Message will be retried for 2 more day(s)
Technical details of temporary failure:
DNS Error: MX lookup of mydomain.com returned error DNS server returned general failure "
when i look up my domain in intodns.com everything is ok but the only problem is MX record and it shows this message :
"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! "
FYI :
for example myvirtual server is like : mydomain.com
Its hard to see what is wrong from your post, it would be nice if you could post your entire DNS for that domain. Use < code> tags or something like pastebin.
That appears to be your provider, rather than your Virtualmin server.
That’s okay, but you’d just want to make sure your DNS records are setup the way you want there.
Now, things should actually work without an MX record, it should revert to using the ‘A’ record for delivering email… that said, it wouldn’t hurt to setup an MX record where ever your nameservers are pointed.
anonymox can you go Virtualmin -> Virtual server (probably “karshenasan-nezam.com”) -> Server configuration -> DNS records -> click “Manually edit records” and copy here entire zone. Another option is to use SSH or SFTP and go where you have zone files and do the same.
$ttl 38400
karshenasan-nezam.com. IN SOA karshenasan-nezam.com. info.mail.karshenasan-nezam.com. (
1444481938
10800
3600
604800
38400 )
karshenasan-nezam.com. IN NS darya1.irandns.com.
karshenasan-nezam.com. IN NS darya2.irandns.com.
karshenasan-nezam.com. IN A 128.65.188.13
www.karshenasan-nezam.com. IN A 128.65.188.13
ftp.karshenasan-nezam.com. IN A 128.65.188.13
m.karshenasan-nezam.com. IN A 128.65.188.13
www.karshenasan-nezam.com. IN A 128.65.188.13
localhost.karshenasan-nezam.com. IN A 127.0.0.1
webmail.karshenasan-nezam.com. IN A 128.65.188.13
admin.karshenasan-nezam.com. IN A 128.65.188.13
mail.karshenasan-nezam.com. IN A 128.65.188.13
karshenasan-nezam.com. IN MX 5 mail.karshenasan-nezam.com.
autoconfig.karshenasan-nezam.com. IN A 128.65.188.13
I have copied this records from webmin > servers > bind dns servers > karshenasan-nezam.com > edit records file
which is located in : /var/lib/bind/karshenasan-nezam.com.hosts
I don’t believe that’s the case, and that may be the issue here… even though you’re seeing an MX record that Virtualmin is creating for you, that’s not likely what’s acting as your nameserver.
You would need to add the MX record to whatever provider is hosting your DNS, not your Virtualmin server.
let me make it clear for you : i have an ubuntu server which my website is on it, i needed a mailserver so i installed postfix and dovecot ,etc… manually then i installed webmin and virtualmin plugin, then i created a virtual server named after my domain name, i mean my virtual server and my domain name are the same : “karshenasan-nezam.com”
after i created my virtual server in virtualmin i created and configured a mail user for it, and for outgoing and outcoming email i configured my bind server (i mean a records and mx records) like above,
but it’s not working.
I don’t know enough about your setup there to know where this change needs to be made. All I can offer is that whatever darya1.irandns.com is – that’s where the MX record needs to go.