[SOLVED] OMG please help

29 posts / 0 new
Last post
#1 Thu, 09/17/2009 - 11:47
zer0

[SOLVED] OMG please help

Something has happend to my system, virtual min has disappeared and when i goto https://192.168.1.6:10000 to access virtualmin instead webmin login screen appears. I dont know whats going on, my email is not working. and i'm panicking any help please.

Thu, 09/17/2009 - 11:54
andreychek

We can help, but you'll have to give lots of details :-)

What all has changed recently? Any config changes, system updates, etc?

Regarding the login screen -- can you still log in?

If you go into Webmin Configuration -> Webmin Themes, what theme is set? If it's not the Virtualmin Framed Theme, try changing the theme and see if that helps.

Regarding email --

What isn't working exactly? What are the symptoms? What errors are you getting? If you look in /var/log/mail.log or /var/log/maillog, do you see any errors or warnings? What happens if you restart Postfix?

-Eric

Thu, 09/17/2009 - 12:10
zer0

hi thank you for reply, yes i can log into webmin (but why is the default one, it used to be virtualmin) and the theme is oldwebmin

entire email is not working i cant login using outlook or wemail, usermin, IMAP etc...

here is some part of the mail.log

Sep 17 12:00:04 domain postfix/trivial-rewrite[6988]: warning: do not list domain domain.ca in BOTH mydestination and virtual_alias_domains Sep 17 12:00:04 domain postfix/local[6989]: BB4E47E18D: to=administrator@domain.ca, orig_to=, relay=local, delay=2.4, delays=2.4/0.01/0/0.01, dsn=5.3.0, status=bounced (Command died with status 127: "/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME". Command output: sh: /usr/bin/procmail-wrapper: not found ) Sep 17 12:00:04 domain postfix/cleanup[6987]: C2A967E18E: message-id=20090917170004.C2A967E18E@domainn.ca Sep 17 12:00:04 domain postfix/qmgr[6081]: C2A967E18E: from=<>, size=2371, nrcpt=1 (queue active) Sep 17 12:00:04 domain postfix/trivial-rewrite[6988]: warning: do not list domain domain.ca in BOTH mydestination and virtual_alias_domains Sep 17 12:00:04 domain postfix/bounce[6992]: BB4E47E18D: sender non-delivery notification: C2A967E18E Sep 17 12:00:04 domain postfix/qmgr[6081]: BB4E47E18D: removed Sep 17 12:00:04 domain postfix/local[6989]: C2A967E18E: to=administrator@domain.ca, orig_to=root@domain.ca, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=5.3.0, status=bounced (Command died with status 127: "/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME". Command output: sh: /usr/bin/procmail-wrapper: not found ) Sep 17 12:00:04 domain postfix/qmgr[6081]: C2A967E18E: removed Sep 17 12:03:01 domain postfix/cleanup[7083]: BFB437E18D: message-id=20090917170301.BFB437E18D@domain.ca Sep 17 12:03:01 domain postfix/qmgr[6081]: BFB437E18D: from=root@domain.ca, size=647, nrcpt=1 (queue active) Sep 17 12:03:01 domain postfix/trivial-rewrite[7084]: warning: do not list domain domain.ca in BOTH mydestination and virtual_alias_domains Sep 17 12:03:01 domain postfix/trivial-rewrite[7084]: warning: do not list domain domain.ca in BOTH mydestination and virtual_alias_domains Sep 17 12:03:01 domain postfix/local[7085]: BFB437E18D: to=administrator@domain.ca, orig_to=, relay=local, delay=0.04, delays=0.02/0.01/0/0.01, dsn=5.3.0, status=bounced (Command died with status 127: "/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME". Command output: sh: /usr/bin/procmail-wrapper: not found ) Sep 17 12:03:01 domain postfix/cleanup[7083]: C7A987E18E: message-id=20090917170301.C7A987E18E@domain.ca Sep 17 12:03:01 domain postfix/qmgr[6081]: C7A987E18E: from=<>, size=2478, nrcpt=1 (queue active) Sep 17 12:03:01 domain postfix/trivial-rewrite[7084]: warning: do not list domain domain.ca in BOTH mydestination and virtual_alias_domains Sep 17 12:03:01 domain postfix/bounce[7088]: BFB437E18D: sender non-delivery notification: C7A987E18E Sep 17 12:03:01 domain postfix/qmgr[6081]: BFB437E18D: removed Sep 17 12:03:01 domain postfix/local[7085]: C7A987E18E: to=administrator@domain.ca, orig_to=root@domain.ca, relay=local, delay=0.01, delays=0.01/0/0/0.01, dsn=5.3.0, status=bounced (Command died with status 127: "/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME". Command output: sh: /usr/bin/procmail-wrapper: not found ) Sep 17 12:03:01 domain postfix/qmgr[6081]: C7A987E18E: removed Sep 17 12:03:03 domain postfix/master[5402]: terminating on signal 15 Sep 17 12:03:03 domain postfix/master[7182]: daemon started -- version 2.5.1, configuration /etc/postfix

Thu, 09/17/2009 - 12:22 (Reply to #3)
andreychek

yes i can log into webmin (but why is the default one, it used to be virtualmin) and the theme is oldwebmin

Okay, but if you change that to the Virtualmin Framed Theme, does that resolve the issue?

entire email is not working i cant login using outlook or wemail, usermin, IMAP etc...

Does the user exist in /etc/passwd still?

Command output: sh: /usr/bin/procmail-wrapper: not found )

This message in your email logs certainly points to some of the trouble -- it suggests the program that is used to deliver the email is missing.

I'm not sure what distro you're on, but in CentOS, Debian, and Ubuntu, there should be a program called procmail-wrapper installed. On Ubuntu/Debian, that's part of a package named "procmail-wrapper", I imagine it'd be something similar on CentOS.

Is the procmail-wrapper package installed on your system?

-Eric

Thu, 09/17/2009 - 12:27 (Reply to #4)
zer0

i'm using ubuntu 8.04 and everything was working fine yesterday. Also, yes the users exist. and there is no virtualmin theme.

Thu, 09/17/2009 - 12:13
zer0

there have been normal system updates, that i downloaded and installed... nothing else have changed... i think clamav was removed and reinstalled this morning... thats about it

instead of virtualmin i'm asked to log in to webmin 1.480 which is from webmin.com somehow virtualmin is replaced by webmin... but how

Thu, 09/17/2009 - 12:20
zer0

in my synaptic package manager virtualmin is unchecked and webmin is checked as it has been uninstalled. Is there a way to confirm this? and probably reinstall and restore my settings. I had used virtualmin's backup feature to make daily backups, is there a way to restore using that?

Thank you

Thu, 09/17/2009 - 12:28
andreychek

Ahh, Virtualmin not being installed is one way to get the symptoms you're describing :-)

As to how to fix it -- it kind of depends on how it was uninstalled exactly, and what files are left behind.

If your various Apache/Virtualmin/Postfix config files are still in-tact, it might be as simple as just re-installing Virtualmin (though, I don't recommend using the install.sh, I'd install the packages directly).

Before doing that -- you might want to make a backup of your entire /etc/ directory, which may have working/correct configs in it.

Then go ahead and install the various Virtualmin packages, and see what works, and what doesn't.

From there, you may have working configs in your /etc/ backup, and you also have the ability to restore data using the backups you had made, if necessary.

-Eric

Thu, 09/17/2009 - 12:32 (Reply to #8)
zer0

Ok i will try doing that from synaptic pakage manager, also should i remove webmin1.480?

Thu, 09/17/2009 - 12:35
andreychek

Virtualmin is a Webmin module -- so no, don't remove Webmin, you need both :-)

Let us know how that works for you!

-Eric

Thu, 09/17/2009 - 12:43
zer0

good news : virtulmin is back (after installing it and changing the theme) bad news: email still doenst work, i can not login using usermin or outlook or roundcube all the services are running

Thu, 09/17/2009 - 12:45
zer0

I get this message when i click on login to usermin

An error occurred listing mail in this folder : Failed to connect to localhost:143 : Connection refused

Thu, 09/17/2009 - 12:48
andreychek

An error occurred listing mail in this folder : Failed to connect to localhost:143 : Connection refused

This error suggests that Dovecot isn't installed or running.

For all the other things you described that aren't working, you'll need to provide lots of details, error messages, log entries, etc for each of them so that we'll be able to help.

-Eric

Thu, 09/17/2009 - 12:50
zer0

what if i use the restore feature in virtualmin and restore one of the previous backups? will that solve problem?

Thu, 09/17/2009 - 12:55
andreychek

Well, you're not really providing many details, error messages, and logs, so it's really hard to tell :-)

However, that isn't likely to help.

In all likeliness, what you're missing isn't the Virtual Servers themselves.

It's sounding like problems with Virtualmin dependencies -- dovecot not running, procmail-wrapper not being installed, etc.

To fix it, we'll just need to go through the symptoms one by one and correct things.

-Eric

Thu, 09/17/2009 - 12:58
zer0

my apologies... i'm still in a semi-panic mode

Which logs would you like me to provide you?

Thu, 09/17/2009 - 13:02
zer0

i dont know if this will help if i goto webmin>>servers>>postfix mail server>>user mailboxes i can from there enter the user mail boxes and see the mail

Thu, 09/17/2009 - 13:05
andreychek

Well, there's probably a few issues going on. But that's okay, it sounds like everything is fixable.

So the way we should tackle this would be to just step through the issues you're seeing -- such as not being able to log into Usermin -- and to tackle them one by one.

Let's start with the one you described most recently:

I get this message when i click on login to usermin

An error occurred listing mail in this folder : Failed to connect to localhost:143 : Connection refused

The things to do there are:

  1. Try launching Dovecot -- you can use: /etc/init.d/dovecot restart

  2. If dovecot isn't installed, go ahead and install it

  3. If that doesn't work, look in /var/log/mail.log for related error messages, and post those here so we can lend a hand.

Then once we get Dovecot working, we'll move to the next issue. It sounds like there's an excellent chance the majority of your data and configs are in-tact, so all we have to do is get the various components back in working order again.

-Eric

Thu, 09/17/2009 - 13:20
zer0

Dovecot restarted fine without any errors Also i've been noticing alot more "permission" related warnings in ubuntu like "permission denied" or "you dont have permission to do this" do you think it could be related to that?

here is the mail.log

Sep 17 12:33:01 domain postfix/cleanup[7474]: 3CE737E18E: message-id=20090917173301.3CE737E18E@domain.ca Sep 17 12:33:01 domain postfix/qmgr[7185]: 3CE737E18E: from=<>, size=2478, nrcpt=1 (queue active) Sep 17 12:33:01 domain postfix/trivial-rewrite[7475]: warning: do not list domain domain.ca in BOTH mydestination and virtual_alias_domains Sep 17 12:33:01 domain postfix/bounce[7479]: 311AB7E18D: sender non-delivery notification: 3CE737E18E Sep 17 12:33:01 domain postfix/qmgr[7185]: 311AB7E18D: removed Sep 17 12:33:01 domain postfix/local[7476]: 3CE737E18E: to=administrator@domain.ca, orig_to=root@domain.ca, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=5.3.0, status=bounced (Command died with status 127: "/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME". Command output: sh: /usr/bin/procmail-wrapper: not found ) Sep 17 12:33:01 domain postfix/qmgr[7185]: 3CE737E18E: removed Sep 17 12:35:53 domain postfix/postfix-script[9656]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ Sep 17 12:53:11 domain dovecot: Killed with signal 15 Sep 17 12:53:14 domain dovecot: Dovecot v1.0.10 starting up Sep 17 12:53:19 domain postfix/postfix-script[12036]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ Sep 17 12:54:16 domain postfix/postfix-script[12234]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ Sep 17 12:55:57 domain postfix/postfix-script[12385]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ Sep 17 12:59:18 domain postfix/postfix-script[12520]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ Sep 17 13:00:05 domain postfix/cleanup[12640]: DB18C7E199: message-id=20090917180005.DB18C7E199@domain.ca Sep 17 13:00:05 domain postfix/qmgr[7185]: DB18C7E199: from=root@domain.ca, size=540, nrcpt=1 (queue active) Sep 17 13:00:05 domain postfix/trivial-rewrite[12641]: warning: do not list domain domain.ca in BOTH mydestination and virtual_alias_domains Sep 17 13:00:06 domain postfix/trivial-rewrite[12641]: warning: do not list domain domain.ca in BOTH mydestination and virtual_alias_domains Sep 17 13:00:06 domain postfix/local[12642]: DB18C7E199: to=administrator@domain.ca, orig_to=, relay=local, delay=4.2, delays=3.4/0.12/0/0.69, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME) Sep 17 13:00:06 domain postfix/qmgr[7185]: DB18C7E199: removed Sep 17 13:01:28 domain postfix/postfix-script[12707]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ Sep 17 13:11:49 domain dovecot: Killed with signal 15 Sep 17 13:11:50 domain dovecot: Dovecot v1.0.10 starting up

Thu, 09/17/2009 - 13:30
andreychek

Dovecot restarted fine without any errors

Great! Are you able to log into Usermin now?

Also i've been noticing alot more "permission" related warnings in ubuntu like "permission denied" or "you dont have permission to do this"

Sorry, I'm getting a little confused as to what issue we're tackling -- is this error related to not being able to log into Webmin? Or is this a different issue/symptom?

That is, what are you doing now that isn't working?

In this case, what actions can you take that generate a permission issue? And what what does the error message does it say exactly?

The good news is that it looks like you got the procmail-wrapper installed, so email appears to be delivering now.

here is the mail.log

The only real problem I see in there at the moment is that there are some warning messages that suggest you may need to restart Postfix. That's nice and easy though, just run: /etc/init.d/postfix restart

Thu, 09/17/2009 - 13:36
zer0

ok, so... I've restarted postfix, i tried sending email out which works... and i can recive email from out (according to mail.log) and i can log into usermin to send email but i cant view the inbox

An error occurred listing mail in this folder : Failed to connect to localhost:143 : Connection refused

Thu, 09/17/2009 - 13:42
andreychek

ok, so... I've restarted postfix, i tried sending email out which works... and i can recive email from out (according to mail.log) and i can log into usermin to send emal

Okay, that's a good start!

An error occurred listing mail in this folder : Failed to connect to localhost:143 : Connection refused

Hmm, that's an odd one, as it makes it sound as if Dovecot may not be running at the moment.

If you type this, what output do you get:

netstat -an | grep :143

Also, what do you see what typing this:

ps auxw | grep dovecot

Thanks,

-Eric

Thu, 09/17/2009 - 13:47
zer0

typing in netstat -an | grep :143 i get nothing

typing in second command ps auxw | grep dovecot

root 12956 0.0 0.0 2072 592 ? Ss 13:11 0:00 /usr/sbin/dovecot root 12957 0.0 0.2 9008 2144 ? S 13:11 0:00 dovecot-auth 1000 14266 0.0 0.0 3008 776 pts/0 R+ 13:46 0:00 grep dovecot

Thu, 09/17/2009 - 13:51
andreychek

Okay, it looks like something is indeed awry with Dovecot -- so we'll need to get that all fixed up!

It didn't look like there were any errors in your mail.log file when it started up, so we may need to look at the Dovecot config file.

Can you attach the /etc/dovecot/dovecot.conf file to this thread?

Also, do you have a file in /etc/default/dovecot? I don't, but if you do, go ahead and post that as well.

Thanks,

-Eric

Thu, 09/17/2009 - 14:13
zer0

here is the dovecot.conf no files in /etc/default/dovecot

Also i was going through forum and it seems you have helped someone with the same problem some time ago. they solved the problem by turning on IMAP. http://www.virtualmin.com/node/9758 is it a possibility that IMAP is turned off? and how do i check if its on?

Thu, 09/17/2009 - 14:16
andreychek

Aha! Yeah, the first non-commented line of your dovecot.conf file reads:

protocols = none

So that won't work at all, it essentially tells Dovecot not to do anything :-)

Change that line to read:

protocols = imap imaps pop3 pop3s

Then restart Dovecot: /etc/init.d/dovecot restart

Thu, 09/17/2009 - 14:27
zer0

I LOVE YOU

THANK YOU VERY MUCH!!!!!! YOU GUYS ARE AWESOME!!!!!!!!!!

Thu, 09/17/2009 - 14:31
andreychek

Thanks for the update -- I'm glad to hear it's working for you now :-)

Have a good one!

-Eric

Thu, 10/01/2009 - 18:59
jdamron

Hey dont you just love it when things go well... one more happy cust. Hows everything going around here? good i hope.. just getting back in the Sceen... talk at you another time.. John