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 20th May 2008, 13:18
macorama macorama is offline
Junior Member
 
Join Date: May 2008
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default postfix virtual users on debian etch

Hello!

I've also followed the tutorial with no problem. (http://www.howtoforge.com/virtual_us...ix_debian_etch)
But after I was done I couldn't login with imap nor pop3. All I get with telnet is:

Code:
Trying <IP>...
Connected to <HOST>.
Escape character is '^]'.
+OK Hello there.
info@mail.com
pass test
-ERR Temporary problem, please try again later
Connection closed by foreign host.
Checking my /etc/log/mail.log I get this:
Code:
May 19 22:50:20 b098 courierpop3login: Connection, ip=[::ffff:84.168.27.40]
May 19 22:50:39 b098 authdaemond: authmysql: MYSQL_USERNAME not set in /etc/courier/authmysqlrc.
May 19 22:50:39 b098 courierpop3login: LOGIN FAILED, user=info@mail.com, ip=[::ffff:84.168.27.40]
May 19 22:50:39 b098 courierpop3login: authentication error: Input/output error
From this, I check my /etc/courier/authmysqlrc
Code:
MYSQL_SERVER 127.0.0.1 # tried also localhost, same problem
MYSQL_USERNAME mail_admin
MYSQL_PASSWORD test
MYSQL_PORT 0
MYSQL_DATABASE mail
MYSQL_USER_TABLE users
MYSQL_CRYPT_PWFIELD password
#MYSQL_CLEAR_PWFIELD password
MYSQL_UID_FIELD 5000
MYSQL_GID_FIELD 5000
MYSQL_LOGIN_FIELD email
MYSQL_HOME_FIELD "/home/vmail"
MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
#MYSQL_NAME_FIELD
MYSQL_QUOTA_FIELD quota
I'm clueless. Does anyone has an idea?

Best regards,
Daniel

BTW: I edit all files on a Mac. For line end I use LF and encoding is UTF-8. Shouldn't be a problem, should it?

This is an excerpt from my /etc/log/mail.log:
Code:
May 20 13:03:23 b098 postfix/smtpd[21693]: connect from 218-160-110-48.dynamic.hinet.net[218.160.110.48]
May 20 13:03:24 b098 postfix/smtpd[21696]: connect from mail.gmx.net[213.165.64.20]
May 20 13:03:24 b098 postfix/smtpd[21696]: 68545274209: client=mail.gmx.net[213.165.64.20]
May 20 13:03:24 b098 postfix/cleanup[21701]: 68545274209: message-id=<0DBE2EE1-B866-4A16-8EF9-1F5040F84BC6@gmx.de>
May 20 13:03:24 b098 postfix/qmgr[21637]: 68545274209: from=<myaddress@gmx.de>, size=935, nrcpt=1 (queue active)
May 20 13:03:24 b098 postfix/smtpd[21696]: disconnect from mail.gmx.net[213.165.64.20]
May 20 13:03:25 b098 postfix/smtpd[21693]: lost connection after EHLO from 218-160-110-48.dynamic.hinet.net[218.160.110.48]
May 20 13:03:25 b098 postfix/smtpd[21693]: disconnect from 218-160-110-48.dynamic.hinet.net[218.160.110.48]
May 20 13:03:25 b098 postfix/smtpd[21696]: connect from 218-160-110-48.dynamic.hinet.net[218.160.110.48]
May 20 13:03:27 b098 postfix/smtpd[21696]: warning: 218-160-110-48.dynamic.hinet.net[218.160.110.48]: SASL LOGIN authentication failed: authentication failure
May 20 13:03:27 b098 postfix/smtpd[21696]: lost connection after AUTH from 218-160-110-48.dynamic.hinet.net[218.160.110.48]
May 20 13:03:27 b098 postfix/smtpd[21696]: disconnect from 218-160-110-48.dynamic.hinet.net[218.160.110.48]
May 20 13:03:30 b098 postfix/smtpd[21707]: fatal: unexpected command-line argument: =
May 20 13:03:31 b098 amavis[20773]: (20773-06) (!) FWD via SMTP: <myaddress@gmx.de> -> <daniel@mydomain.com>, 450 4.4.1 Can't connect to 127.0.0.1 port 10025,  (Bad file descriptor) at (eval 42) line 145, <GEN26> line 282., MTA([127.0.0.1]:10025), id=20773-06
May 20 13:03:31 b098 postfix/master[21635]: warning: process /usr/lib/postfix/smtpd pid 21707 exit status 1
May 20 13:03:31 b098 postfix/master[21635]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
May 20 13:03:31 b098 amavis[20773]: (20773-06) Blocked TEMPFAIL, [213.165.64.20] [213.165.64.20] <myaddress@gmx.de> -> <daniel@mydomain.com>, Message-ID: <0DBE2EE1-B866-4A16-8EF9-1F5040F84BC6@gmx.de>, mail_id: nu09eFLwIqBl, Hits: 0., 6622 ms
May 20 13:03:31 b098 postfix/smtp[21702]: 68545274209: to=<daniel@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.7, delays=0.06/0.01/0.01/6.6, dsn=4.4.1, status=deferred (host 127.0.0.1[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025,  (Bad file descriptor) at (eval 42) line 145, <GEN26> line 282., MTA([127.0.0.1]:10025), id=20773-06 (in reply to end of DATA command))
May 20 13:04:30 b098 courierpop3login: Connection, ip=[::ffff:84.168.34.110]
May 20 13:04:42 b098 courierpop3login: chdir mydomain.com/daniel/: No such file or directory
May 20 13:06:47 b098 postfix/anvil[21697]: statistics: max connection rate 2/60s for (smtp:218.160.110.48) at May 20 13:03:25
May 20 13:06:47 b098 postfix/anvil[21697]: statistics: max connection count 1 for (smtp:218.160.110.48) at May 20 13:03:23
May 20 13:06:47 b098 postfix/anvil[21697]: statistics: max cache size 2 at May 20 13:03:24
May 20 13:07:31 b098 postfix/qmgr[21637]: 39CED274211: from=<amavis@mail.mydomain.com>, size=757, nrcpt=1 (queue active)
May 20 13:16:34 b098 courierpop3login: Connection, ip=[::ffff:84.168.34.110]
May 20 13:16:48 b098 authdaemond: authmysql: MYSQL_USERNAME not set in /etc/courier/authmysqlrc.
May 20 13:16:48 b098 courierpop3login: LOGIN FAILED, user=daniel@mydomain.com, ip=[::ffff:84.168.34.110]
May 20 13:16:48 b098 courierpop3login: authentication error: Input/output error
May 20 13:22:10 b098 postfix/master[21635]: terminating on signal 15
May 20 13:22:12 b098 postfix/master[21844]: daemon started -- version 2.3.8, configuration /etc/postfix
May 20 13:22:12 b098 postfix/qmgr[21846]: 39CED274211: from=<amavis@mail.mydomain.com>, size=757, nrcpt=1 (queue active)
May 20 13:22:12 b098 postfix/qmgr[21846]: 68545274209: from=<myaddress@gmx.de>, size=935, nrcpt=1 (queue active)
May 20 13:22:12 b098 postfix/qmgr[21846]: 4B3AB274201: from=<myaddress@gmx.de>, size=911, nrcpt=1 (queue active)

Last edited by macorama; 20th May 2008 at 13:26.
Reply With Quote
Sponsored Links
  #2  
Old 21st May 2008, 13:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by macorama
BTW: I edit all files on a Mac. For line end I use LF and encoding is UTF-8. Shouldn't be a problem, should it?
That can be a problem. Please save the file with Unix linebreaks (\n, not \r).
__________________
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:
macorama (21st May 2008)
  #3  
Old 21st May 2008, 14:04
macorama macorama is offline
Junior Member
 
Join Date: May 2008
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

It's working now. I can't say for sure, what was the solution. The files are all LF and UTF-8. I've restarted all running services, must've been to do with that.

Thanks anyways! Great tut by the way!
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
Question on Virtual Users And Domains With Postfix, Courier And MySQL (Debian Etch) Horizon HOWTO-Related Questions 12 26th February 2008 20:22
Virtual Users And Domains With Postfix, Courier And MySQL (Debian Etch) ShadyB HOWTO-Related Questions 1 2nd November 2007 18:23
Virtual Users And Domains With Postfix, Courier And MySQL & debian etch Tortanick HOWTO-Related Questions 5 19th June 2007 12:29
Junk mail and spamassassin... sthompson Installation/Configuration 4 27th December 2006 16:11
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 16:24.


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