| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
03-19-2008, 11:27 AM
|
#1
|
|
Member
Registered: Dec 2006
Posts: 357
Rep:
|
need help with getting Dovecot mail server to work
hi i've tried to get Dovecot mail server to work and the install went ok but when i run "/etc/init.d/dovecot start" i get this error:
Code:
Error: Error in configuration file /etc/dovecot/dovecot.conf line 762: Auth section not allowed here (section changed at line 762)
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
and here's my (default) dovecot.conf file:
http://paste-it.net/7441
os: ubuntu server 7.1
|
|
|
|
03-19-2008, 01:39 PM
|
#2
|
|
Member
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 472
Rep:
|
is it possibly due to the auth default2 { defined immediately above (line 760)?
Code:
#
auth default2 {
auth default {
|
|
|
|
03-19-2008, 01:43 PM
|
#3
|
|
Member
Registered: Dec 2006
Posts: 357
Original Poster
Rep:
|
that was done from this guide in part 3c
|
|
|
|
03-19-2008, 02:57 PM
|
#4
|
|
Member
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 472
Rep:
|
If i'm reading that article correctly it would look like this:
Code:
auth default {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
auth default2 {
what i meant by my previous statement is you are not closing the 'auth default2' stanza before you open your 'auth default' stanza.
by doing the above you are using the already existing closing } that is "buried" further down past the comments and default settings.
|
|
|
|
03-19-2008, 04:26 PM
|
#5
|
|
Member
Registered: Dec 2006
Posts: 357
Original Poster
Rep:
|
Quote:
Originally Posted by rayfordj
If i'm reading that article correctly it would look like this:
Code:
auth default {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
auth default2 {
what i meant by my previous statement is you are not closing the 'auth default2' stanza before you open your 'auth default' stanza.
by doing the above you are using the already existing closing } that is "buried" further down past the comments and default settings.
|
but that code you just posted is what i have.. or am i missing something? (ie what should it look like?)
Last edited by steve51184; 03-19-2008 at 04:27 PM.
|
|
|
|
03-19-2008, 04:50 PM
|
#6
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
What he means is try changing
to
Note the additional "}"
|
|
|
|
03-19-2008, 05:05 PM
|
#7
|
|
Member
Registered: Dec 2006
Posts: 357
Original Poster
Rep:
|
Quote:
Originally Posted by billymayday
What he means is try changing
to
Note the additional "}"
|
thanks for replying but that give the same error but for line 774 instead of line 762
http://paste-it.net/7447
|
|
|
|
03-19-2008, 05:18 PM
|
#8
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Try commenting out lines 774-776
if that doesn't work, do you still have a copy of the default dovecot.conf? If so, my the version you've been working on to a saved version (say dovecot.conf.sav) and copy the default to dovecot.conf. It should work out of the box anyway (except you may want to change the protocols section to imap and pop)
|
|
|
|
03-19-2008, 05:31 PM
|
#9
|
|
Member
Registered: Dec 2006
Posts: 357
Original Poster
Rep:
|
Quote:
Originally Posted by billymayday
Try commenting out lines 774-776
if that doesn't work, do you still have a copy of the default dovecot.conf? If so, my the version you've been working on to a saved version (say dovecot.conf.sav) and copy the default to dovecot.conf. It should work out of the box anyway (except you may want to change the protocols section to imap and pop)
|
that gives this error:
Code:
Error: Error in configuration file /etc/dovecot/dovecot.conf line 781: Unknown setting: mechanisms
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
|
|
|
|
03-19-2008, 05:33 PM
|
#10
|
|
Member
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 472
Rep:
|
in the default config file (before your modifications) it has
auth default {
# some comments
#
some values {
stuff
}
#comments
#comments
#and eventually closes the 'auth default' stanza with
}
so when you put your copy/paste under and rename the above to auth default2 you are placing an auth in an auth which does not work.
what you want to do is take the code that you pasted into (under) the auth default2 and move it above the (now named) auth default2 line.
http://paste-it.net/7449
Last edited by rayfordj; 03-19-2008 at 05:41 PM.
Reason: added link
|
|
|
|
03-19-2008, 05:35 PM
|
#11
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Did you try my other suggestion of the default config?
Where did the version you are using come from? It sounds like you have the wrong version for the dovecot version you are trying to run. Definitely try the original config that came with dovecot
|
|
|
|
03-19-2008, 05:48 PM
|
#12
|
|
Member
Registered: Dec 2006
Posts: 357
Original Poster
Rep:
|
Quote:
Originally Posted by rayfordj
in the default config file (before your modifications) it has
auth default {
# some comments
#
some values {
stuff
}
#comments
#comments
#and eventually closes the 'auth default' stanza with
}
so when you put your copy/paste under and rename the above to auth default2 you are placing an auth in an auth which does not work.
what you want to do is take the code that you pasted into (under) the auth default2 and move it above the (now named) auth default2 line.
http://paste-it.net/7449
|
that's works but i get a new error:
Code:
Error: Can't use mail executable /usr/lib/dovecot/pop3: No such file or directory
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
seems i need to set that link to the correct file?
Last edited by steve51184; 03-19-2008 at 05:50 PM.
|
|
|
|
03-19-2008, 05:57 PM
|
#13
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
How did you install dovecot?
|
|
|
|
03-19-2008, 06:14 PM
|
#14
|
|
Member
Registered: Dec 2006
Posts: 357
Original Poster
Rep:
|
seems i missed the second command from this guide:
http://www.mysql-apache-php.com/#mailserver
apt-get install dovecot-imapd dovecot-pop3d dovecot-common
all working now 
|
|
|
|
03-19-2008, 06:24 PM
|
#15
|
|
Member
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 472
Rep:
|
Good to hear!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
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 -5. The time now is 08:47 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|