
24th July 2008, 10:39
|
|
Junior Member
|
|
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

25th July 2008, 12:10
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,602 Times in 2,451 Posts
|
|
Did you configure Squirrelmail as shown in the tutorial? Did you configure it to use Courier?
|

25th July 2008, 12:14
|
|
Junior Member
|
|
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok, i've just solved it now.
I had wrong permissions to vmail directory... now everything worsk great!
Thanks for great tutorial
|

28th July 2008, 07:43
|
|
Junior Member
|
|
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

29th July 2008, 14:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,602 Times in 2,451 Posts
|
|
Quote:
Originally Posted by adrianl
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?
|

3rd August 2008, 13:26
|
|
Junior Member
|
|
Join Date: Aug 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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 13:30.
|

28th July 2008, 10:20
|
|
Junior Member
|
|
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

28th July 2008, 12:42
|
|
Junior Member
|
|
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

5th August 2008, 00:49
|
|
Junior Member
|
|
Join Date: Aug 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by garther
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.
|
I have the same problem as this user had. But i do not know what you does mean when u say "chown all forlders to vmail user." What should i write in the terminal as example.com as exapmle.
Best regards.
|

5th August 2008, 15:48
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,602 Times in 2,451 Posts
|
|
Quote:
Originally Posted by yelles
I have the same problem as this user had. But i do not know what you does mean when u say "chown all forlders to vmail user." What should i write in the terminal as example.com as exapmle.
Best regards.
|
Try this:
Code:
chown -R vmail /home/vmail
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 14:40.
|
|
Recent comments
8 hours 30 min ago
13 hours 23 min ago
22 hours 15 min ago
23 hours 15 min ago
1 day 3 hours ago
1 day 4 hours ago
1 day 7 hours ago
1 day 15 hours ago
2 days 47 sec ago
2 days 1 hour ago