Mail server help for an idiot

3 posts / 0 new
Last post
#1 Thu, 07/17/2008 - 15:26
mrmoney

Mail server help for an idiot

Hi,

Im hoping someone can help. I installed Virtualmin on my server to save me from myself in terms of setting up mail and all those things Ive never touched before. Unfortunately I am a bigger fool than I thought since I still cannot get it going.

Basically I have two domains pointing to the same dedicated box. The second one, the one I am concerned with, which was added later, I cannot send or receive mail properly.

From different mail clients, I can sometimes send mail, others I get back "No Such User Here".

Checking the postfix mail queue, I see the mail that does get through sitting there. Unfortunately it never seems to actually end up in my Maildir. I dont know where it goes.

Checking /var/log/mail.log I see these warnings: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ warning: /var/spool/postfix/etc/hosts and /etc/hosts differ

Possibly that is my problem ( postfix/etc/hosts does not list the second domain)?

Sorry, Ive tried having Virtualmin act as my DNS and I currently have Serverbeach handling the DNS. Neither seem to work. Im sure I caused this problem myself somewhere along the way, but I am at a loss as to how to fix it. Pingability.com does not report any errors.

Thanks for any help, it is greatly appreciated

Thu, 07/17/2008 - 15:43
ronald
ronald's picture

if networksettings/dns settings are not correct or recently changed then postfix wont work properly either

my first clue would start looking at the dns set up/propagation, but there is no information to go on.

Fri, 07/18/2008 - 15:44
Joe
Joe's picture

Slow down! Take it one problem at a time. Things can look really intimidating when you're looking at it and thinking, "Holy crap! Look at all the broken stuff!" If you take it one at a time, you may find that all of the many crazy looking problems are actually just one problem, and fixing it will bring everything else into shape.

So, let's take it one at a time:

<div class='quote'>Checking /var/log/mail.log I see these warnings:
warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ
warning: /var/spool/postfix/etc/hosts and /etc/hosts differ</div>

This means you have a chrooted Postfix configuration. This is the default on Debian, I think, but nowhere else--though you haven't identified your OS and version. And Wietse Venema (the author of Postfix) doesn't recommend it--and given the fact that he made his name doing security research and development, I trust him to be right on this count. ;-)

The make this warning go away, restart postfix using the initscript, which should sync these files:

/etc/init.d/postfix restart

I don't think anything fancy is needed to make Virtualmin work with a chrooted configuration.

But this doesn't really tell us what we need to know to be helpful. What <i>else</i> is showing up in the mail.log? There should be something about the problem message. If there isn't, then the problem is with DNS and not the mail server, at all.

<div class='quote'>Possibly that is my problem ( postfix/etc/hosts does not list the second domain)?</div>

hosts is mostly irrelevant. Everything ought to be in DNS on a real mail server...a hosts file isn't going to be useful to anyone outside of your system, so you shouldn't even concern yourself with whether it contains your additional domains (in fact, you probably should leave everything extraneous out of hosts--you just want the system hostname and localhost--because it could give you a false picture of what works and what doesn't).

There are lots of great tools to help you troubleshoot DNS, which are mostly documented here:

http://doxfer.com/Webmin/BINDTroubleshootingTools

So, confirm that DNS is behaving correctly--from glue records to MX records and everything in between. And then move on to the mail server.

--

Check out the forum guidelines!

Topic locked