Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th March 2010, 09:35
aic71 aic71 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Does Not Work: Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMai

I've followed the instructions completely.. I'm not able to get any of my users to now login.

I get the following in my /var/log/mail.log:

Mar 13 19:05:38 kaylee imapd: Connection, ip=[::ffff:127.0.0.1]
Mar 13 19:05:38 kaylee imapd: LOGIN FAILED, user=achernow@kaylee.commanddotcom.com, ip=[::ffff:127.0.0.1]
Mar 13 19:05:43 kaylee imapd: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=72, sent=332

The user exists in the database and has the correct password.

Help!
Reply With Quote
Sponsored Links
  #2  
Old 18th March 2010, 14:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

Which distribution do you use?

What are the outputs of
Code:
grep achernow /etc/passwd
and
Code:
grep achernow /etc/aliases
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th March 2010, 17:27
aic71 aic71 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Which distribution do you use?
Debian Lenny I believe is what's on the box.

Quote:
What are the outputs of
Code:
grep achernow /etc/passwd
and
Code:
grep achernow /etc/aliases
?
Do those matter if I've theoretically got the email server set up to use virtual users? The account 'achernow' already exists as a system user anyway, since that's what I'm using to log into the box.

Code:
achernow@kaylee:~$ sudo grep achernow /etc/aliases
[sudo] password for achernow: 
achernow@kaylee:~$ sudo grep achernow /etc/passwd
achernow:x:1000:1000:achernow,,,:/home/achernow:/bin/bash
achernow@kaylee:~$
The username exists, as I said, in the mail database as well:



This is getting really annoying... I can get EVERYTHING else to work except for e-mail. It's like you need to be a rocket scientist or something to configure it.
Reply With Quote
  #4  
Old 18th March 2010, 17:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,003 Times in 3,912 Posts
Default

Quote:
This is getting really annoying... I can get EVERYTHING else to work except for e-mail. It's like you need to be a rocket scientist or something to configure it.
But why do you go the hard route then by configuring everything manually? It is much easier if you use a controlpanel like ispconfig where you just have to enter the email domain and address and which configures postfix for you?

http://www.howtoforge.com/perfect-se...nny-ispconfig3
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 19th March 2010, 16:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

Quote:
Originally Posted by aic71 View Post
The account 'achernow' already exists as a system user anyway, since that's what I'm using to log into the box.
That is exactly the problem. When you send an email to achernow@kaylee.commanddotcom.com, it gets delivered to the system user achernow instead of the virtual user achernow@kaylee.commanddotcom.com, which means the Maildir of achernow@kaylee.commanddotcom.com isn't created, and that's why you can't log in.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 19th March 2010, 17:18
aic71 aic71 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
That is exactly the problem. When you send an email to achernow@kaylee.commanddotcom.com, it gets delivered to the system user achernow instead of the virtual user achernow@kaylee.commanddotcom.com, which means the Maildir of achernow@kaylee.commanddotcom.com isn't created, and that's why you can't log in.
[strike]So if I create the maildir it should be ok?[/strike]

Never mind. I re-read the part of the tutorial where you said to add the user and mail it. It seems to work from an IMAP client now...but Squirrelmail goes to a white screen after it logs in...no inbox. Not sure why.

Quote:
But why do you go the hard route then by configuring everything manually? It is much easier if you use a controlpanel like ispconfig where you just have to enter the email domain and address and which configures postfix for you?
I've had bad experiences with control panels. I'm on a sever that a friend configured right now that Error 500's every time I try to do ANYTHING in the control panel. Also it's made it hard to tweak Apache config files and php.ini files since it'll overwrite them with no notice.

Last edited by aic71; 19th March 2010 at 17:24.
Reply With Quote
  #7  
Old 21st March 2010, 03:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
 
Default

Quote:
Originally Posted by aic71 View Post
but Squirrelmail goes to a white screen after it logs in...no inbox. Not sure why.
Please make sure you introduced no PHP syntax error when you edited the config.php file of the change_sqlpass plugin.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login failed on irtual Users And Domains With Postfix, Courier, MySQL And SquirrelMai dennis00 HOWTO-Related Questions 13 1st May 2009 17:40


All times are GMT +2. The time now is 05:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.