Help Needed. Server has had problems since day 1

HI

My webmin/virtualmin installation has had problems since it was installed by my hosts technitians, but as its an unmanaged account they are not to helpful.

I have uptill now managed to sort of get it working, BUT
seems now its worse than ever. I am not sure what I have done or what went wrong.

I am looking for someone to take a look and help sort it out.
I am willing to pay if need be as I am tired of having to keep on changing the records when a new virtual server is created,
it also does not always create the email setup for the accounts.

Now its moaning about not allowing email relay and says the users have no email, but the system says the received email today.
(New mail received 08/Apr/2009 11:47)

Please help.

Hey JOe and Andrey I know your out there somewhere.

Regards
Shane<br><br>Post edited by: southerns, at: 2009/04/08 07:00

Alright, I’ll bite :slight_smile:

What I need is:

  1. How did you install? Did you install with the install.sh script?

  2. What distro is this?

  3. What version of Virtualmin are you using, and is it GPL or Pro?

4… A detailed list of what’s wrong – it’s not clear what all isn’t working from the above.

Post that info here for now, then we’ll work from there :slight_smile:
-Eric

Hi

Thanx.

Just registered a new Virtual server and all worked except this one error, not sure if it helps.

Adding to email domains list …
… Mail for domain failed! : Failed to regenerate table /etc/postfix/virtual: at …/web-lib-funcs.pl line 1010.

Will make a list of problems and info about server for yo to.

I cant send mail via the main domain either

Centos-Debian? What distro?
this is a VPS? How much RAM?
If VPS, are the DAG repos in the sources list? Or others non-standard?
if yes remove them before installing webmin/virtualmin.

Hi

Here is some more info.

System hostname centos_pristine
Operating system CentOS Linux 5
Webmin version 1.441
Virtualmin version 3.59.gpl (GPL)

System is a VPS with 128MB ram,
am busy getting it upgraded to 256MB.

Have had it now for must be almost a year.

Here is the reply from a newly created test domain:

Setting Up Virtual Server

In domain testing.co.za
Creating administration group testing …
… done

Creating administration user testing …
… done

Creating aliases for administration user …
… done

Adding administration user to groups …
… done

Creating home directory …
… done

Creating mailbox for administration user …
… done

Adding to email domains list …
… Mail for domain failed! : Failed to regenerate table /etc/postfix/virtual: at …/web-lib-funcs.pl line 1010.

Adding new DNS zone …
… done

Adding new virtual website …
… done

Adding Apache user apache to server’s group …
… done

Setting up scheduled Webalizer reporting …
… done

Setting up log file rotation …
… done

Creating MySQL login …
… done

Creating MySQL database testing …
… done

Adding DAV directives to website configuration …
… done

Setting up AWstats reporting …
Failed to copy template configuration :

Adding Mailman alias and redirects to website configuration …
… done

Creating Webmin user …
… done

Re-starting DNS server …
… done

Applying web server configuration …
… done

Re-loading Webmin …
… done

Saving server details …
… done

As you can see the only 2 errors to show up are the mail and AWstats set-ups.

When you create a new virtual domain you need to manually change the following.

This is the domain DNS file:

$ttl 38400
@ IN SOA centos_pristine. root.centos_pristine. (
1239226574
10800
3600
604800
38400 )
@ IN NS centos_pristine. need to add both NS1 and NS2
testing.co.za. IN A 65.23.129.184
www.testing.co.za. IN A 65.23.129.184
ftp.testing.co.za. IN A 65.23.129.184
m.testing.co.za. IN A 65.23.129.184
localhost.testing.co.za. IN A 127.0.0.1
testing.co.za. IN TXT "v=spf1 a mx a:testing.co.za ip4: ip4:65.23.129.184 ?all"

These 2 line need to be changed and the mail manually setup,
normally if I go back to the domain edit server and enable the mail server it will put it in then.

@ IN SOA centos_pristine. root.centos_pristine. (
@ IN NS centos_pristine. add both NS1 and NS2

At the moment the whole mail system seems to be having a problem and this is the main problem at the moment.

Thanx
Regards
Shane

Regarding:

If VPS, are the DAG repos in the sources list? Or others non-standard?

if yes remove them before installing webmin/virtualmin.

Not sre as server came with webmin/virtualmin installed, but always had hassles as mentioned above.

I have always had to make the changes to the DNS records manually.

Ahh, 128MB of RAM, eh?

I highly suspect that’s your issue :slight_smile:

Systems with low memory can end up with some really odd errors – strange things just seem to not work all over the place!

At the very least, I’d make sure you have lots of swap setup, but getting it upgraded to 256MB of RAM (if not more) should definitely be your first step.
-Eric

Well it was working okay

Then I tried to sort out a Hello problem on email and a problem with the email relay to, it always stoppping me from sending via smtp.

So some of the problems on the email server at least I think are me.

I have a very minimal installation with just whats needed running

and as I say it was fine for quite awhile, but always had to update dns records manually, thought that was the normsl way as I moved here from CPANEL so was not familiar with the system.

and as I say it was fine for quite awhile, but always had to update dns records manually

Didn’t I address this issue in another thread?

Refresh my memory what problem we’re dealing with?

Hi Yes it was spoken about on another thread, just mentioned it so as to give the whole picture of the problems with the server.
(I have not had a chance to sort it out yet.)

The current problem is that it wont send email via my domain (smtp) and also says users have no email while if you go to the user it says they have received new email on what ever date, but it does not show the email and if you try download mail says no new messages on server.

Quick question.

The server is running

Dovecot IMAP/POP3 Server
Version 1.0.7

and

Postfix Mail Server
Postfix version 2.3.3

Do I need to run both.

Dovecot IMAP/POP3 Server Version 1.0.7

and

Postfix Mail Server
Postfix version 2.3.3

Do I need to run both.

If you plan to provide mail service, then yes, of course. Postfix is an SMTP server (for sending and accepting mail to/from other SMTP servers). Dovecot is a POP3/IMAP server, which is how mail clients connect to a mail server. They are wholly separate protocols.

Hi Joe

Thanx for the reply.

So if I cant send email via my domain which one must I look at?

Also does not seem to be placing emails into the users accounts.

I had a VPS with 128 ram which always led to problems with mail/postfix.
Only bind and mail was running on that server. since I upgraded to 256 mb ram those problems disappeared.

I’d suggest to upgrade ram and possibly a reinstall through the install script on a clean OS.

My provider also offered OS+webmin template but had DAG repos in it which gave problems.

imo, It is fruitless to troubleshoot your problems on a such low ram system, per haps you have more traffic to your server now then before which causes more memory to be used.

System says its using less than half of its ram and virtual memory.

I am busy upgrading the serve this month.

So if I cant send email via my domain which one must I look at?

Postfix. But it’s always going to be in the maillog. Always look in the maillog. I don’t think I’ve seen any errors from the maillog posted about this problem?

Also does not seem to be placing emails into the users accounts.

This could be Postfix, procmail, or Dovecot (if the mail is really there but dovecot is looking in the wrong place). The clues will be in the maillog, as always with mail problems.

As ronald mentioned, running a full mail stack on a 128M system (I don’t recall the amount of memory you have being mentioned, but I guess it is a low memory system?). Anyway, look at the Virtualmin on Low Memory Systems guide:

http://www.virtualmin.com/documentation/id,virtualmin_on_low_memory_systems/

Also make sure you’re running the latest version of all of the Webmin/Virtualmin/Usermin packages. There was a dramatic memory reduction and performance boost in the latest releases.

Also, have you looked at the Troubleshooting Common Problems guide?

http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,troubleshooting_common_problems/#email

I am going through my mailog, but its hugh it over 40MB,

I found this error quite a lot.

warning: do not list domain saweb.biz in BOTH mydestination and virtual_alias_domains.

How do I start a new mailog file and is this safe to do?

I was thinking then if I try accessing the mail server and then checking the mailog file, its not a 40Mb file each time to open.

I sort of remember a log rotate option somewhere.

warning: do not list domain saweb.biz in BOTH mydestination and virtual_alias_domains.

This means you’ve named your system the same thing as one of your virtual servers. We don’t recommend you do this. But it is harmless, just chattery. :wink:

There are a couple of ways to correct it. The best is probably to rename the system to something else…like main.saweb.biz or ns0.saweb.biz or srv1.saweb.biz, etc. Doesn’t matter what it is as long as it doesn’t match one of your virtual domains in /etc/postfix/virtual.

How do I start a new mailog file and is this safe to do?

You don’t want to do that. It’ll rotate on its own.

Just get more comfortable with the tools you have available for making use of the logs. "tail" is your friend.

tail -200 /var/log/maillog | less

And:

tail -f /var/log/maillog

Both of these require an interactive terminal, so don’t try this in the Command Shell. Hit “q” to quit from less or “Ctrl-C” to quit from the tail -f.

HI

you lost me with this.

interactive terminal

what is it and where do I find it, is it part of Virtualmin.

Also is 40mb normal for a mailog file seems rather large to me.