LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2011, 08:18 PM   #1
jsp_1983
LQ Newbie
 
Registered: Dec 2010
Posts: 29

Rep: Reputation: 0
Troubleshooting mail with CentOS/ Webmin: first steps?


Thought I'd cross-post this here, as well as on the Webmin forum (particularly seeing as this place is a little more livelier!).


I've got a troublesome Virtualmin/ Webmin installation that seems to have an endless queue of problems. My VPS provider has managed to get me to the point of having an operational Vmin/Wmin installation, but now I've run in to a problem with mail - when I send a test email to one of the default addresses for a virtual server (eg postmaster@domain.com), I immediately receive a 'mail delivery failed' message, like this:

This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: postmaster@[domain.com] No Such User Here



----------------------------------------

What I'd like to know is, what steps can I take to troubleshoot this problem?

I know that I can ask my VPS provider to help, but I'd like to try to understand the problem, too, and learn from it.
 
Old 01-09-2011, 09:53 PM   #2
novice06
Member
 
Registered: Mar 2006
Location: Singapore
Distribution: RHEL, CentOS
Posts: 132

Rep: Reputation: 23
I assume you are trying to send email locally. All the mail services default is allow to send locally. In this case, you only need to create postmaster account.
If you are relay to another server, you need to make sure your destination mail server has postmaster account.
If you are hosting that 'domain.com' at your server, you need to make sure all the full setup of mail service is take in place.

Cheer
 
Old 01-09-2011, 09:55 PM   #3
never say never
Member
 
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
Well, I don't generally work with the Webmin interface, but we are going to need a lot more information.

The error No Such User seems to explain it have you set up postmaster with a mail account?

Can you send mail to yourself from that server? (This will confirm the server is working)

Do the logs reveal anything? (/var/log/mail)

Have you already set up DNS records for the domain? (Specifically MX Records for Mail Delivery)

Do you have the firewall set to allow SMTP connections? (TCP Port 25)

You don't say what mail server your running, Postfix, Sendmail, QMail ... Which?

If your still having problem post back with the config files for the mail server and the pertinent parts of logs. Many here are willing to help, we just need more information.
 
Old 01-11-2011, 10:18 AM   #4
jsp_1983
LQ Newbie
 
Registered: Dec 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Well, I also posted about the issue on WHT, so save me typing the background, I'll copy/paste it here:

Okay, so I've just set up Virtualmin and Webmin on my VPS (with a few tweaks from my VPS provider). I've tried sending a test email to the aliases that Vmin sets up, as well as an actual account. All I get back is an error saying that the address couldn't be found.

I sent a ticket to my VPS provider and he said that I need to set up an MX record to point to my VPS to receive mail (which I hadn't done because I thought I didn't need one, seeing as web, mail and DNS are all on the same server).

When I set up DNS with Webmin, I followed the guide here: http://forums.devshed.com/dns-36/set...in-406190.html

So, as I'd set up 'mail.holiday-ideas.org.uk' in Webmin/BIND as an A record and as a mail server record, I thought that would be sufficient.

Presumably, my VPS provider is suggesting that I set up 'mail.holiday-ideas.org.uk' as an MX record with my domain at my domain registrar's control panel (1&1)?

What I don't understand is why, when I was on a shared hosting account with another host, I could just register domains, point their nameservers to the ones my host supplied and then just host sites and mail for those domains without having to deal with MX records. What is different in this situation?
 
Old 01-11-2011, 10:15 PM   #5
novice06
Member
 
Registered: Mar 2006
Location: Singapore
Distribution: RHEL, CentOS
Posts: 132

Rep: Reputation: 23
Either you use your domain register DNS server or your own DNS server is same. You must create MX record for your mail server.
Because when you send email to other domains. Other mail servers will check your domain MX record, SPF record, reversed DNS record. If not found all these record, they will simply reject your email.
If I am not wrong, even your email service will check your own domain MX record before relay to other servers.

Cheer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail configuration steps on Centos anamikasoni83 Linux - Newbie 2 02-05-2010 05:15 AM
Unifying permissions between two servers (CentOS + Webmin/CentOs +Cpanel) and rsync d60eba Linux - Server 1 01-01-2010 12:55 PM
Troubleshooting Mail? your_shadow03 Linux - Newbie 1 09-01-2008 03:46 AM
CentOS with webmin Bassboom Linux - Newbie 7 11-15-2006 11:33 AM
Basic Sound troubleshooting steps? penguinlnx Linux - Software 3 03-16-2005 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration