From: Ben R. <Be...@mu...> - 2007-04-11 16:03:01
|
Matthias Andree wrote: > Ben Russo schrieb: > >> Help? >> >> I can open Outlook or use a browser to log into my account >> So I know that my username and password are correct. >> (I have tried to modify some of the info like password hashes and >> usernames/hostnames to maintain some security for my company) >> >> Username: user1 >> Domain: win2k >> >> This works fine. >> >> >> When I try to login to the server it fails? >> >> [root@linuxdesktop ~]# /usr/local/bin/fetchmail -v -v -v -c -p IMAP -L >> Fetchlog --auth ntlm -u "user1@win2k" mailserver.win2k.domain.com >> >> > Thanks for your reply! What a great user community. And thanks to Mr. MacGregor too. With a little help from the Exchange Server admin I got squared away. He had to turn on logging on the server, and then checked the log. We found error 0x80040920 every time I tried to authenticate. http://support.microsoft.com/kb/296387 He opened up my account in the Windows Directory server (or Exchange server) and changed the mailbox alias so that it matched my Windows Login name "user1" The mailbox alias was "User.1" (where User is my first name and "1" was my last name" He also adjusted the primary and secondary SMTP alias, but I don't know if that was necessary. It was primary SMTP Us...@do... and secondary smtp us...@do... He swapped the two. Immediately after that it works fine. So I am all set. BTW, it can also fetch other folders in *my* mailbox. with -r "INBOX,Spam/Spam - Quarantine" on the command line. My .fetchmailrc looks like this: set postmaster "linuxuser" set bouncemail set no spambounce set properties "" set logfile /home/linuxuser/.fetchmaillog set no syslog poll mailserver.win2k.domain.com with proto IMAP, auth ntlm user "user1@win2k" with pass 'MyPassWord' is linuxuser here options fetchall My crontab looks like: * * * * * /usr/local/bin/fetchmail -L /home/linuxuser/.fetchmaillog -t 10 -B 10 -r "INBOX,Spam/Spam - Quarantine" > /dev/null Seems to work GREAT! Thanks again. |