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 24th July 2008, 11:39
garther garther is offline
Junior Member
 
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail

Hi, I've been setting a mail server with this tutorial.

I've had some problems but overall it started to work

I've got one small advice:

when doing :
postconf -e 'mydestination = server1.example.com, localhost, localhost.localdomain'

you shouldn't place here the domain because it will be stored indatabase as virtual one.


But still I have one problem with squirrelmail. Everything installed and after logging in from website i get: "ERROR: Connection dropped by IMAP server."
But in log i get:

Jul 24 10:27:29 best authdaemond: received auth request, service=imap, authtype=login
Jul 24 10:27:29 best authdaemond: authmysql: trying this module
Jul 24 10:27:29 best authdaemond: authmysqllib: connected. Versions: header 50051, client 50051, server 50051
Jul 24 10:27:29 best authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/vmail", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), quota, "", "" FROM users WHERE email = "marcinp@best.media.pl"
Jul 24 10:27:29 best authdaemond: password matches successfully
Jul 24 10:27:29 best authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=marcinp@best.media.pl, fullname=<null>, maildir=best.media.pl/marcinp/, quota=209715200, options=<null>
Jul 24 10:27:29 best authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=marcinp@best.media.pl, fullname=<null>, maildir=best.media.pl/marcinp/, quota=209715200, options=<null>

So the communication i thionk is ok... what can be the problem?
Reply With Quote
Sponsored Links
  #2  
Old 25th July 2008, 13:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Did you configure Squirrelmail as shown in the tutorial? Did you configure it to use Courier?
__________________
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 25th July 2008, 13:14
garther garther is offline
Junior Member
 
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, i've just solved it now.

I had wrong permissions to vmail directory... now everything worsk great!

Thanks for great tutorial
Reply With Quote
  #4  
Old 28th July 2008, 08:43
adrianl adrianl is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default maildir error

Hello guys! I'm pretty new to the linux world and I've tried falko's howto:
http://www.howtoforge.com/virtual-us...ail-ubuntu8.04
Everything went smoothly untill logging on to squirrelmail when I get the message:
ERROR: Connection dropped by IMAP server.

The mail.log states that there is no such file or directory, I've tried Falko's advice on sending the initial email, but that did not help. One user mentioned editing the permissions on the /home/vmail folder, however he did not state exactly what rights and to whom, so I tried giving everybody read and write rights however to no result.


If anyone has any ideas please be so kind and a share it. Thanks
Reply With Quote
  #5  
Old 28th July 2008, 11:20
garther garther is offline
Junior Member
 
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Under the folder /home/vmail you need to create folder corresponding to domain name so for example.com just create folder example.com

To create mailbox (examaple sales@example.com) for user change directory to your domain folder and inside run maildirmake:

cd /home/vmail/example.com
maildirmake sales


That should do it. Just remember to chown all folders to vmail user.
Reply With Quote
  #6  
Old 28th July 2008, 13:42
adrianl adrianl is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Hello Garther

Thx a lot for the additional info on the permissions, it eventually worked for that specific user(sales@mydomain.com). However I'm a little bit puzzled, do you have to manually create the maildir folder for every user manually? I've tried creating a new user using phpmyadmin site as stated in the howto however that did not create the folder in /home/vmail/mydomain/.. . I tried sending an initial email however that did not help either. There has to be a method for this folders to be created automatically once u create the user. I mean that would be the elegant way or am I absurd?
Reply With Quote
  #7  
Old 29th July 2008, 15:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by adrianl View Post
The mail.log states that there is no such file or directory, I've tried Falko's advice on sending the initial email, but that did not help. One user mentioned editing the permissions on the /home/vmail folder, however he did not state exactly what rights and to whom, so I tried giving everybody read and write rights however to no result.
Are there any errors in the mail log when you send an email to that account?
__________________
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
  #8  
Old 3rd August 2008, 14:26
MrTeaM MrTeaM is offline
Junior Member
 
Join Date: Aug 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hello guys! I'm having problems in sending the messages, as they do not reach their addressees.

Can anyone help to indicate the error? this is my mail.log


Aug 3 08:15:10 mrteam postfix/smtpd[2347]: connect from localhost[127.0.0.1]
Aug 3 08:15:10 mrteam postfix/smtpd[2347]: CD27372DDA: client=localhost[127.0.0.1]
Aug 3 08:15:10 mrteam postfix/cleanup[2263]: CD27372DDA: message-id=<489592FB.8030908@mrteam.osxbrazil.com>
Aug 3 08:15:10 mrteam postfix/qmgr[2060]: CD27372DDA: from=<sales@mrteam.osxbrazil.com>, size=1096, nrcpt=1 (queue active)
Aug 3 08:15:10 mrteam postfix/smtpd[2347]: disconnect from localhost[127.0.0.1]
Aug 3 08:15:11 mrteam amavis[17348]: (17348-10) Passed CLEAN, LOCAL [192.168.93.1] [192.168.93.1] <sales@mrteam.osxbrazil.com> -> <mauricio@mrteam.osxbrazil.com>, Message-ID: <489592FB.8030908@mrteam.osxbrazil.com>, mail_id: 5GzRYlRUGlvD, Hits: 1.045, size: 614, queued_as: CD27372DDA, 24153 ms
Aug 3 08:15:11 mrteam postfix/smtp[2264]: B143772DD9: to=<mauricio@mrteam.osxbrazil.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=25, delays=0.14/0.01/1.2/23, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as CD27372DDA)
Aug 3 08:15:11 mrteam postfix/qmgr[2060]: B143772DD9: removed

Aug 3 08:21:18 mrteam postfix/qmgr[2060]: CD27372DDA: from=<sales@mrteam.osxbrazil.com>, size=1096, nrcpt=1 (queue active)
Aug 3 08:21:18 mrteam postfix/smtp[2410]: CD27372DDA: to=<mauricio@mrteam.osxbrazil.com>, relay=none, delay=368, delays=368/0.12/0.07/0, dsn=5.4.6, status=bounced (mail for mrteam.osxbrazil.com loops back to myself)
Aug 3 08:21:18 mrteam postfix/cleanup[2412]: E05CE72DDC: message-id=<20080803112118.E05CE72DDC@mrteam.osxbrazil.com >
Aug 3 08:21:18 mrteam postfix/qmgr[2060]: E05CE72DDC: from=<>, size=3043, nrcpt=1 (queue active)
Aug 3 08:21:18 mrteam postfix/bounce[2411]: CD27372DDA: sender non-delivery notification: E05CE72DDC
Aug 3 08:21:18 mrteam postfix/qmgr[2060]: CD27372DDA: removed
Aug 3 08:21:18 mrteam postfix/smtp[2410]: E05CE72DDC: to=<sales@mrteam.osxbrazil.com>, relay=none, delay=0.07, delays=0.07/0/0.01/0, dsn=5.4.6, status=bounced (mail for mrteam.osxbrazil.com loops back to myself)
Aug 3 08:21:18 mrteam postfix/qmgr[2060]: E05CE72DDC: removed
Aug 3 08:26:05 mrteam imapd: Connection, ip=[::ffff:127.0.0.1]

Last edited by MrTeaM; 3rd August 2008 at 14:30.
Reply With Quote
  #9  
Old 4th August 2008, 11:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Aug 3 08:21:18 mrteam postfix/smtp[2410]: CD27372DDA: to=<mauricio@mrteam.osxbrazil.com>, relay=none, delay=368, delays=368/0.12/0.07/0, dsn=5.4.6, status=bounced (mail for mrteam.osxbrazil.com loops back to myself)
Please add mrteam.osxbrazil.com to the mydestination line in /etc/postfix/main.cf and restart Postfix.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
MrTeaM (4th August 2008)
  #10  
Old 5th August 2008, 01:11
MrTeaM MrTeaM is offline
Junior Member
 
Join Date: Aug 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko View Post
Please add mrteam.osxbrazil.com to the mydestination line in /etc/postfix/main.cf and restart Postfix.

Hello!
I did what you asked me.
still the same problem, the messages did not arrive to their recipients.



Aug 4 19:07:32 server amavis[4915]: (04915-04) Passed CLEAN, <root@mrteam.osxbrazil.com> -> <sales@mrteam.osxbrazil.com>, Message-ID: <20080804220719.6B2E9E125@server.mrteam.osxbrazil. com>, mail_id: 9gKSPrwPdWKq, Hits: 1.449, size: 329, queued_as: 9ACB8E119, 13150 ms
Aug 4 19:07:32 server postfix/smtp[7191]: 6B2E9E125: to=<sales@mrteam.osxbrazil.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=13, delays=0.1/0.01/0.02/13, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 9ACB8E119)
Aug 4 19:07:32 server postfix/trivial-rewrite[7203]: warning: do not list domain mrteam.osxbrazil.com in BOTH mydestination and virtual_mailbox_domains
Aug 4 19:07:32 server postfix/qmgr[7167]: 6B2E9E125: removed
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
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 11:49
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail Ubuntu 8.04 paulodani HOWTO-Related Questions 7 4th June 2008 01:46
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 mtzcesar HOWTO-Related Questions 3 1st June 2008 11:57
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04) canardwc HOWTO-Related Questions 12 29th May 2008 19:29
Virtual Users And Domains W/ Postfix, Courier and MySql + Squirrelmail prob nsurge HOWTO-Related Questions 10 23rd October 2006 18:43


All times are GMT +2. The time now is 08:17.


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