{"id":3,"date":"2008-02-05T14:05:14","date_gmt":"2008-02-05T13:05:14","guid":{"rendered":"http:\/\/platyna.platinum.linux.pl\/blog\/?p=3"},"modified":"2008-11-15T14:11:56","modified_gmt":"2008-11-15T13:11:56","slug":"problems-with-sendmail-and-dovecot-lda","status":"publish","type":"post","link":"https:\/\/platyna.info\/blog\/2008\/02\/05\/problems-with-sendmail-and-dovecot-lda\/","title":{"rendered":"Problems with Sendmail and Dovecot LDA."},"content":{"rendered":"<p>According to http:\/\/wiki.dovecot.org\/LDA\/Sendmail the mailertable setup should be as follow:<br \/>\nvirtualdomain.example.com dovecot:dovecot<\/p>\n<p>It means: <\/p>\n<p>domain mailer:user<\/p>\n<p>Well, this setup seems to be incorrect, since you can deliver to username only using local mailer.<\/p>\n<p>Therefore I have used Sendmail&#8217;s feature &#8220;local_procmail&#8221; to replace default local mailer with Dovecot&#8217;s deliver:<\/p>\n<p>This is what I have configured in my sendmail.mc:<\/p>\n<p>FEATURE(`local_procmail&#8217;, `\/usr\/libexec\/dovecot\/deliver&#8217;, `deliver -d $u&#8217;, `SPhnu9&#8242;)dnl<br \/>\nMODIFY_MAILER_FLAGS(`LOCAL&#8217;, `-f&#8217;)<br \/>\nMAILER(local)dnl<\/p>\n<p>This is output of cat \/etc\/mail\/sendmail.cf | grep Mlocal:<\/p>\n<p>Mlocal,         P=\/usr\/libexec\/dovecot\/deliver, F=lsDFMAw5:\/|@qSPhnu9, S=EnvFromL\/HdrFromL, R=EnvToL\/HdrToL,<\/p>\n<p>Well, the documentation on Dovecot&#8217;s site also forgets to mention that for this to work the target hostname cannot be in Sendmail&#8217;s class w.<\/p>\n<p>The mailertable support in the documentation seems to aim to direct all the mail coming to a particular domain to mailer dovecot and user dovecot which I accomplished.<\/p>\n<p>However:<\/p>\n<p>In the dovecot.log we may see that while we are sending email to test@example.com it not performs lookup for the addressee but for user dovecot!<\/p>\n<p>dovecot: Feb 05 13:36:23 Info: auth(default): passwd-file(dovecot): lookup: user=dovecot file=\/etc\/passwd-dovecot<br \/>\ndovecot: Feb 05 13:36:23 Info: auth(default): passwd-file(dovecot): unknown user<br \/>\ndovecot: Feb 05 13:36:23 Info: auth(default): master out: NOTFOUND      1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>According to http:\/\/wiki.dovecot.org\/LDA\/Sendmail the mailertable setup should be as follow: virtualdomain.example.com dovecot:dovecot It means: domain mailer:user Well, this setup seems to be incorrect, since you can deliver to username only using local mailer. Therefore I have used Sendmail&#8217;s feature &#8220;local_procmail&#8221; to replace default local mailer with Dovecot&#8217;s deliver: This is what I have configured in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[4,3],"tags":[24,32,235,27,25,26,23],"class_list":["post-3","post","type-post","status-publish","format-standard","hentry","category-administrativia","category-english","tag-cyrus-sasl","tag-dovecot","tag-notfound","tag-passwd-like","tag-sasl","tag-saslauthd","tag-sendmail"],"_links":{"self":[{"href":"https:\/\/platyna.info\/blog\/wp-json\/wp\/v2\/posts\/3"}],"collection":[{"href":"https:\/\/platyna.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/platyna.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/platyna.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/platyna.info\/blog\/wp-json\/wp\/v2\/comments?post=3"}],"version-history":[{"count":0,"href":"https:\/\/platyna.info\/blog\/wp-json\/wp\/v2\/posts\/3\/revisions"}],"wp:attachment":[{"href":"https:\/\/platyna.info\/blog\/wp-json\/wp\/v2\/media?parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/platyna.info\/blog\/wp-json\/wp\/v2\/categories?post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/platyna.info\/blog\/wp-json\/wp\/v2\/tags?post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}