LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Troubleshooting mail with CentOS/ Webmin: first steps? (https://www.linuxquestions.org/questions/linux-newbie-8/troubleshooting-mail-with-centos-webmin-first-steps-855253/)

jsp_1983 01-09-2011 08:18 PM

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.

novice06 01-09-2011 09:53 PM

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

never say never 01-09-2011 09:55 PM

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.

jsp_1983 01-11-2011 10:18 AM

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?

novice06 01-11-2011 10:15 PM

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


All times are GMT -5. The time now is 07:54 AM.