{"id":159,"date":"2004-06-10T15:43:04","date_gmt":"2004-06-10T14:43:04","guid":{"rendered":"http:\/\/wp.devco.net\/?p=159"},"modified":"2009-10-09T17:23:55","modified_gmt":"2009-10-09T16:23:55","slug":"smtp_auth_with_exim_and_courier_authdaemon","status":"publish","type":"post","link":"https:\/\/www.devco.net\/archives\/2004\/06\/10\/smtp_auth_with_exim_and_courier_authdaemon.php","title":{"rendered":"SMTP Auth with Exim and Courier authdaemon"},"content":{"rendered":"

UPDATE:<\/B> There is now an Official Exim FAQ Entry<\/a> for this, You should use this for best results as the method below does not work on all versions of authdaemon. If you were having issues with Debian and the solution below, look at the comments section for an update from Debian.
\nI have been meaning to get SMTP AUTH going on my server for a while, there are a few samples I saw that was looking very nasty for getting authdaemon and exim to talk to each other. Eventually Leon got one of my machines to work in a way that I quite liked, this is my current setup in exim 4. All it requires is that the user that exim runs as can read and write to the courier authdaemon socket.<\/p>\n

\n
\n# Unix clients\nplain:\ndriver = plaintext\npublic_name = PLAIN\nserver_condition = \\\n${if eq {${readsocket{\/usr\/local\/var\/authdaemon\/socket}\\\n{AUTH ${strlen:exim\\nlogin\\n$2\\n$3\\n}\\nexim\\nlogin\\n$2\\n$3\\n}}}{FAIL\\n} {no}{yes}}\nserver_set_id = $2\n# Windows clients\nlogin:\ndriver = plaintext\npublic_name = LOGIN\nserver_prompts = Username:: : Password::\nserver_condition = ${if eq {${readsocket{\/usr\/local\/var\/authdaemon\/socket} \\\n{AUTH ${strlen:exim\\nlogin\\n$1\\n$2\\n}\\nexim\\nlogin\\n$1\\n$2\\n}}}{FAIL\\n} {no}{yes}}\nserver_set_id = $1\n<\/pre>\n<\/blockquote>\n

Very nice and simple, now I can SMTP auth against my SQL and PAM based auth that is in use on my machines. Works well with Outlook and Evolution.<\/p>\n","protected":false},"excerpt":{"rendered":"

UPDATE: There is now an Official Exim FAQ Entry for this, You should use this for best results as the method below does not work on all versions of authdaemon. If you were having issues with Debian and the solution below, look at the comments section for an update from Debian. I have been meaning […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[30,33],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/159"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":1,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":819,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/159\/revisions\/819"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}