
10th November 2005, 09:28
|
|
Junior Member
|
|
Join Date: Nov 2005
Location: Salzburg / Austria
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by falko
What's in /etc/courier/authmysqlrc? Do you have authmodulelist="authmysql" in /etc/courier/authdaemonrc?
|
I tried it also with "MYSQL_SERVER 127.0.0.1". Do I have to restart any program?
Code:
MYSQL_SERVER localhost
MYSQL_USERNAME mail_admin
MYSQL_PASSWORD #######
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
Code:
#
# The authentication modules that are linked into authdaemond. The
# default list is installed. You may selectively disable modules simply
# by removing them from the following list. The available modules you
# can use are: authcustom authcram authuserdb authldap authmysql authpam
authmodulelist="authmysql"
|

10th November 2005, 09:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Please check the courier config files if you have any whitespces behind the values. Courier is very picky with that. I had this in one setup and searched for hours until i found the whitespace... Most other programs are ignoring whitespaces behind values in config files.
Example:
This will work:
MYSQL_USERNAME mail_admin
This wont work:
MYSQL_USERNAME mail_admin[WHITESPACE]
|

10th November 2005, 09:47
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
|
Originally Posted by oaky
I tried it also with "MYSQL_SERVER 127.0.0.1". Do I have to restart any program?
|
Yes:
Code:
/etc/init.d/courier-authdaemon restart
Is the uid/gid of user/group vmail really 5000?
|

10th November 2005, 09:52
|
|
Junior Member
|
|
Join Date: Nov 2005
Location: Salzburg / Austria
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by till
Please check the courier config files if you have any whitespces behind the values. Courier is very picky with that. I had this in one setup and searched for hours until i found the whitespace... Most other programs are ignoring whitespaces behind values in config files.
Example:
This will work:
MYSQL_USERNAME mail_admin
This wont work:
MYSQL_USERNAME mail_admin[WHITESPACE]
|
I had whitespaces after mail_admin and password.
...but nothing has changed, do I have to restart any program?
|

10th November 2005, 09:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Yes. Go to /etc/init.d/ and restart everything with courier in the name.
|

10th November 2005, 10:40
|
|
Junior Member
|
|
Join Date: Nov 2005
Location: Salzburg / Austria
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by till
Yes. Go to /etc/init.d/ and restart everything with courier in the name.
|
Thank you, that was one problem!
But now I get:
"Unable to open the maildir for this account -- the maildir doesn't exist or has incorrect ownership or permissions."
I will search for this problem in the forum....
|

10th November 2005, 11:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
|
Originally Posted by oaky
"Unable to open the maildir for this account -- the maildir doesn't exist or has incorrect ownership or permissions."
|
When does it happen? When you send an email to that account, or when you try to fetch emails with POP3/IMAP? In the latter case you first have to send an email to the account in question - the Maildir will then be created.
|

10th November 2005, 11:18
|
|
Junior Member
|
|
Join Date: Nov 2005
Location: Salzburg / Austria
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by falko
When does it happen? When you send an email to that account, or when you try to fetch emails with POP3/IMAP? In the latter case you first have to send an email to the account in question - the Maildir will then be created.
|
It happens when I want to fetch emails with sqwebmail.
I wrote allready an email to this account.
Should there be a folder in /home/vmail ? Because there is no folder.
Is there a log where I can see if the mail has arrived at my mailserver because I get no "undeliverable" message from my provider.
Code:
Nov 10 10:04:00 m34s12 courierpop3login: LOGIN FAILED, ip=[::ffff:62.47.184.28]
Nov 10 10:04:09 m34s12 courierpop3login: LOGIN FAILED, ip=[::ffff:62.47.184.28]
Nov 10 10:05:25 m34s12 last message repeated 2 times
Nov 10 10:06:07 m34s12 postfix/trivial-rewrite[24810]: warning: do not list domain m34s12.vlinux.de in BOTH mydestination and virtual_mailbox_domains
Last edited by oaky; 10th November 2005 at 11:38.
|

10th November 2005, 11:47
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
|
Originally Posted by oaky
Is there a log where I can see if the mail has arrived at my mailserver because I get no "undeliverable" message from my provider.
|
Yes, /var/log/mail.log.
Quote:
|
Originally Posted by oaky
Code:
Nov 10 10:06:07 m34s12 postfix/trivial-rewrite[24810]: warning: do not list domain m34s12.vlinux.de in BOTH mydestination and virtual_mailbox_domains
|
You have m34s12.vlinux.de in both mydestination and in the domains table in the database. Remove it from one of them and restart Postfix!
|

10th November 2005, 12:01
|
|
Junior Member
|
|
Join Date: Nov 2005
Location: Salzburg / Austria
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I removed it and restarted postfix...
mail.log
Code:
Nov 10 10:48:16 m34s12 postfix/smtpd[1789]: connect from warsl404pip7.highway.telekom.at[195.3.96.91]
Nov 10 10:48:16 m34s12 postfix/smtpd[1789]: 2B590333D5: client=warsl404pip7.highway.telekom.at[195.3.96.91]
Nov 10 10:48:16 m34s12 postfix/cleanup[1797]: 2B590333D5: message-id=<20051110104816.2B590333D5@m34s12.vlinux.de>
Nov 10 10:48:16 m34s12 postfix/qmgr[1702]: 2B590333D5: from=<michael.eichriedler@aon.at>, size=1030, nrcpt=1 (queue active)
Nov 10 10:48:16 m34s12 postfix/qmgr[1702]: 2B590333D5: to=<office@m34s12.vlinux.de>, relay=none, delay=0, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: server dropped connection without sending the initial SMTP greeting)
Nov 10 10:48:16 m34s12 postfix/smtpd[1789]: disconnect from warsl404pip7.highway.telekom.at[195.3.96.91]
|
| Thread Tools |
|
|
| Display Modes |
Linear 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 06:16.
|
|
Recent comments
1 day 28 min ago
1 day 7 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 21 hours ago
2 days 6 hours ago
2 days 7 hours ago
2 days 10 hours ago
2 days 15 hours ago
2 days 15 hours ago