LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-02-2013, 06:26 PM   #1
kipthomas01
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Rep: Reputation: Disabled
Problems with Sendmail and Dovecot


I am using Fedora 17 running Sendmail with Dovecot. My problem is I canít get Outlook or Thunderbird to connect to the server. Sendmail is accepting and sending mail by terminal command line with no problems. This is the error I get from Outlook when trying to test the connection:

ďLog onto incoming mail server (POP3): Your mailbox is temporarily unavailable because another e-mail message is being delivered to it or another mail application is accessing it. The server responded: -ERR [IN-USE] Internal error occurred. Refer to server log for more information.Ē

Mail log displays this:
Jan 2 12:22:12 kipperdo dovecot: pop3-login: Login: user=<kip>, method=PLAIN, rip=68.14.209.149, lip=192.168.0.4, mpid=6475, TLS, session=<uBzRKVPSdgBEDtGV>
Jan 2 12:22:12 kipperdo dovecot: pop3(kip): Error: user kip: Initialization failed: Namespace '': Mail storage autodetection failed with home=/home/kip
Jan 2 12:22:12 kipperdo dovecot: pop3(kip): Error: Invalid user settings. Refer to server log for more information.
Jan 2 12:22:13 kipperdo sendmail[6476]: r02JMCsx006476: from=<kip@kipperdo.com>, size=0, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=wsip-68-14-209-149.ph.ph.cox.net [68.14.209.149]
Jan 2 12:22:13 kipperdo sendmail[6476]: r02JMCt1006476: from=<kip@kipperdo.com>, size=354, class=0, nrcpts=1, msgid=<201301021922.r02JMCt1006476@kipperdo.com>, proto=ESMTP, daemon=MTA, relay=wsip-68-14-209-149.ph.ph.cox.net [68.14.209.149]
Jan 2 12:22:13 kipperdo sendmail[6477]: r02JMCt1006476: to=<kip@kipperdo.com>, ctladdr=<kip@kipperdo.com> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30674, dsn=2.0.0, stat=Sent

Any help would be appreciated. Thanks,
 
Old 01-03-2013, 11:15 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
I'd guess that sendmail is writing mbox mail to a location like /var/spool/mail/username but dovecot uses Maildri format storage by default, i.e. /home/user/Maildir/*, so you'd need to decide which mailbox type you prefer and make both systems use them. Note Postfix is often much nicer to use than sendmail and uses Maildir by default, so works well with Dovecot
 
Old 01-03-2013, 05:11 PM   #3
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
Quote:
Originally Posted by acid_kewpie View Post
Note Postfix is often much nicer to use than sendmail and uses Maildir by default, so works well with Dovecot
+1 on this. Unless you have a specific reason to stay with sendmail, try Postfix.
 
Old 01-03-2013, 05:21 PM   #4
kipthomas01
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks for the suggestion, but I am not sure what file to modify for a re-direct. I have older versions of the sendmail and dovecot, that work. Just planning to update the server and did some testing when I came upon this problem. Someone has had to run across this before, it is a simple web server install with no abnormal changes to the settings.
 
Old 01-03-2013, 05:23 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
not abnormal doesn't mean everything magically works. You say you did some updates... what were they? It was working before, you did X, and now it doesn't. so what mail box format are you using?
 
Old 01-03-2013, 05:39 PM   #6
kipthomas01
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Yep, I agree it may need fine tuning, but the update statement was about a new mail server. Sendmail is working fine if you use the command line (accepting and sending mail). It's just being fussy about any mail client trying to connect to it. I did some digging on Dovecot issues and found this statement: mail_location = mbox:~/mail:INBOX=/var/mail/%u but it did not work.
 
Old 01-04-2013, 03:01 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
as above, where IS the mail going? There's no point saying it's an mbox at /var/mail/%u if that's not true.
 
Old 01-04-2013, 11:26 AM   #8
kipthomas01
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
it goes to to /var/spool/mail
 
Old 01-04-2013, 05:58 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
right, so configure your dovecot config appropriately. /var/spool/mail != /var/mail...
 
Old 01-05-2013, 02:37 PM   #10
kipthomas01
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Smile Resolved

Resolved, Thanks for the help and this is how I ended up getting it to work. I edited the /etc/dovecot/conf.d/10-mail.conf file. I removed the # from the statement mail_location = maildir:~/Maildir
Outlook now passes the connection test and mail is working. Thanks again for your input.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slackware Sendmail + Dovecot Mig21 Slackware 4 10-13-2012 01:34 PM
sendmail not working with dovecot Rafael25 Linux - Software 3 08-01-2012 04:58 PM
sendmail and dovecot please Linux - Server 12 06-03-2009 12:22 AM
Dovecot/Sendmail problem cizzi Linux - Software 4 06-04-2007 11:48 PM
Relationship: sendmail <=> dovecot hfreeman Linux - Software 4 03-04-2005 11:41 AM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration