[Dovecot] NO: Unsupported authentication mechanism

Steve [Dovecot] Steve_dovecot at shic.co.uk
Thu Sep 15 12:38:15 EEST 2005


scorch wrote:

> you may find that perl Mail::Audit does the job for you at source -- 
> as soon as email is delivered, your .forward can call Mail::Audit 
> directly, and you can script the output. I've found this more flexible 
> and easier than procmail's satanic syntax, and better than doing it 
> after the mail is delivered.

The reason for wanting to interact via IMAP is that I want to use the 
script to report emails which have been manually verified as spam... so 
any strategy at mail delivery time is not going to meet my 
requirements.  I wanted to use Ruby and Net::IMAP for two reasons... (1) 
I've been looking for an excuse to write something in Ruby... and (2) 
Ruby's standard library Net::IMAP supports add_response_handler() - 
which looks as if it will allow me to neatly implement a process driven 
by other IMAP clients moving messages into a "special" IMAP folder 
without any need to do polling.  I'm in the early stages of 
investigation...

> Ruby script: : anyway, to your original issue, whats not working? this 
> script works fine for my dovecot server, from localhost. Can you post 
> your dovecot.conf, output of ifconfig -A (so we can see whether you 
> have local or remote connections) and the results from setting

I'm not sure why you want ifconfig - anyway - here it is:
--
eth0      Link encap:Ethernet  HWaddr 00:50:BA:A1:56:3F
          inet addr:10.0.1.1  Bcast:10.0.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15093541 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12362960 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3757158178 (3583.1 Mb)  TX bytes:572907848 (546.3 Mb)
          Interrupt:3 Base address:0xdc00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3478338 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3478338 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1234264260 (1177.0 Mb)  TX bytes:1234264260 (1177.0 Mb)
--
Here's my /etc/dovecot.conf (comment lines removed for brevity)
--
login = imap
login_process_per_connection = no
login_processes_count = 1
login_max_logging_users = 16
login = pop3
max_mail_processes = 16
default_mail_env = maildir:%h/.maildir
auth = default
auth_mechanisms = plain
auth_userdb = passwd
auth_passdb = pam
auth_user = root
--

> imap_listen = *
> auth_verbose = yes
> #log_path =
> #info_log_path =

I doubt that it is due to not-listening as I get a "NO" response back 
over IMAP (accoring to the Ruby Docs) - so I must have established a TCP 
connection to the dovecot IMAP server.  I'll have a play with 
auth_verbose and the logging functions...

> FWIW on my OpenBSD 3.7, I get info like this:
>    Sep 14 20:03:11 scorch imap-login: Aborted login [10.0.0.50]
> in /var/maillog

All my imap messages seem to go into /var/log/messages (on Gentoo Linux) 
- but the only failure messages I get are like this:

Sep 14 16:33:31 gifu imap-login: Login: sjh [127.0.0.1]
Sep 14 16:46:09 gifu imap-login: Disconnected: Inactivity [127.0.0.1]

> I recommend to STFW & read these:
>    
> http://wiki.dovecot.org/moin.cgi/QuestionsAndAnswers#head-4bf6d2af17ff018327373d128ee25bbd5a86d053 
>
>    
> http://wiki.dovecot.org/moin.cgi/QuestionsAndAnswers#head-42ea38790508b748ca584981b9c339fcd0140704 
>

Will do - any specific explanaitons as to what's wrong for me are still 
welcome :-)




More information about the dovecot mailing list