LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problems with Sendmail and Dovecot (https://www.linuxquestions.org/questions/linux-server-73/problems-with-sendmail-and-dovecot-4175443877/)

kipthomas01 01-02-2013 05:26 PM

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,

acid_kewpie 01-03-2013 10:15 AM

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

sleddog 01-03-2013 04:11 PM

Quote:

Originally Posted by acid_kewpie (Post 4862163)
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.

kipthomas01 01-03-2013 04:21 PM

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.

acid_kewpie 01-03-2013 04:23 PM

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?

kipthomas01 01-03-2013 04:39 PM

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.

acid_kewpie 01-04-2013 02:01 AM

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.

kipthomas01 01-04-2013 10:26 AM

it goes to to /var/spool/mail

acid_kewpie 01-04-2013 04:58 PM

right, so configure your dovecot config appropriately. /var/spool/mail != /var/mail...

kipthomas01 01-05-2013 01:37 PM

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.


All times are GMT -5. The time now is 03:43 AM.