LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2005, 10:38 AM   #1
BigAppleFan
LQ Newbie
 
Registered: Aug 2005
Distribution: Redhat
Posts: 4

Rep: Reputation: 0
Postfix Dovecot Help


I am a web developer who's without a sys admin. So far I have been successful in installing linux, apache and mysql.

I have installed Postfix and am able to send and receive mail. Now I have installed Dovecot for IMAP and POP so that I can check mail remotely from mail clients. I have got Dovecot running but am unable to login to any accounts and it is giving me this error message:

-ERR Plaintext authentication disabled.

My question is: Is this a setting I need to fix in the Dovecot.conf file or postfix main.cf or on my linux installation?

Any direction and info greatly appreciated.

-J
 
Old 08-12-2005, 11:06 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Its in dovecot.conf, the sample file is very well dcumented so you should be able to work out what you need to do.
 
Old 08-13-2005, 09:24 AM   #3
BigAppleFan
LQ Newbie
 
Registered: Aug 2005
Distribution: Redhat
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by phil.d.g
Its in dovecot.conf, the sample file is very well dcumented so you should be able to work out what you need to do.
Okay I found the setting that allows plaintext login. I know turing it on is a big no no but I just want to get IMAP to work first. Now it will accept my plaintext password for login but I get this error message:

NO Authentication failed.

I am positive that I am putting in the correct logins and passwords so it seems IMAP is not getting the correct info somehow. I am just testing out system users now so the:

ssl_disable = yes
mechanisms = plain
userdb = passwd
passdb = pam
user = root
ssl_requires_client_cert = no

I don't have SSL setup. Is it possible to use Dovecot without it? All the online howto guides I used never mention anything about using SSL.

Am I missing something here, all guides show minimal dovecot.conf changes to get it to work, I've read the thing over and over for days and can't seem to get it to work. Help!

I could start from a fresh dovecot.conf file if I knew just which settings need to be uncommemted.

Muchas gracias.
-J
 
Old 08-13-2005, 11:57 AM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Turn on plain text logins to check that your imap server is working and such like, you can then worry about ssl and certificates after. Most of the rest of the internet (ISPs, yahoo) are still using plain text logins for pop3 and imap.

I never bothered with ssl but then again my imap server only listens on the loopback interface.
 
Old 08-14-2005, 01:49 AM   #5
BigAppleFan
LQ Newbie
 
Registered: Aug 2005
Distribution: Redhat
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by phil.d.g
Turn on plain text logins to check that your imap server is working and such like, you can then worry about ssl and certificates after. Most of the rest of the internet (ISPs, yahoo) are still using plain text logins for pop3 and imap.

I never bothered with ssl but then again my imap server only listens on the loopback interface.
Thanks for all your help.

Do I turn on plain text login on my linux server in general or just in Dovecot? I have done it in Dovecot through the conf file.

If I need to do it in linux, what file do i need to modify to turn it on? I told you I was a newbie.

Thanks.
-J
 
Old 08-14-2005, 05:04 AM   #6
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Just in dovecot.conf
 
Old 08-15-2005, 03:17 PM   #7
BigAppleFan
LQ Newbie
 
Registered: Aug 2005
Distribution: Redhat
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the help. I was finally able to get it working. I believe I had to uncomment out this line:

auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@

Now I can check mail via imap on a client machine but I cannot send mail through SMTP. There is no mention of SMTP in the dovecot.conf file, so do I need to fix something on the Postfix server?

I can send mail directly from the server so I know postfix is working. Also all my mail is coming from username"@localhost.localdomain", the username is correct but how do I get it to show my real domain?

Thank you in advance.

-J
 
Old 08-15-2005, 05:08 PM   #8
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
you need to look in the postfix configuration files how to set the domain which mail comes from is documented in there. In order to send mail you will have to set up postfix to relay mail from remote host to remote host aswell as the default remote to local and local to remote, this is probably documented in the postfix configuration file, however make sure you require authentication before relaying mail from remote host to remote host otherwise your box will be used to send spam
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix dovecot Maildir Danny Regan Debian 3 11-15-2005 04:08 PM
FC3, Postfix, and Dovecot Cottsay Fedora 0 06-25-2005 11:18 AM
Postfix Dovecot Spamassassin php4u Fedora 1 04-09-2005 02:48 AM
Postfix and Dovecot umbraeOtheisles Linux - Software 3 11-23-2004 07:36 AM
postfix with dovecot on fc2 rnj Fedora 1 10-09-2004 04:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration