HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (http://www.howtoforge.com/forums/showthread.php?t=25418)

garther 24th July 2008 10:39

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?

falko 25th July 2008 12:10

Did you configure Squirrelmail as shown in the tutorial? Did you configure it to use Courier?

garther 25th July 2008 12:14

Ok, i've just solved it now.

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

Thanks for great tutorial :)

adrianl 28th July 2008 07:43

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

garther 28th July 2008 10:20

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.

adrianl 28th July 2008 12:42

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?:)

falko 29th July 2008 14:27

Quote:

Originally Posted by adrianl (Post 138169)
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?

MrTeaM 3rd August 2008 13:26

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]

falko 4th August 2008 10:32

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.

MrTeaM 5th August 2008 00:11

Quote:

Originally Posted by falko (Post 139281)
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


All times are GMT +2. The time now is 23:53.

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