<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — amavis disable local user verification OR create proper LDAP query]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic4028.xml" />
	<updated>2012-10-20T14:06:08Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic4028-amavis-disable-local-user-verification-or-create-proper-ldap-query.html</id>
		<entry>
			<title type="html"><![CDATA[Re: amavis disable local user verification OR create proper LDAP query]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18728.html#p18728" />
			<content type="html"><![CDATA[<p>Those are default settings in iRedMail, not sure why your original settings were incorrect after iRedMail installation.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-10-20T14:06:08Z</updated>
			<id>http://www.iredmail.org/forum/post18728.html#p18728</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: amavis disable local user verification OR create proper LDAP query]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18701.html#p18701" />
			<content type="html"><![CDATA[<p>Since no one responded, I&#039;ve digged forums, wiki and 1000 other places and found solution of that problem.<br />I&#039;m posting it to help others with the same problem:</p><p>modify /etc/dovecot/dovecot-ldap.conf</p><p>and change filters to:</p><p>user_filter&nbsp; &nbsp; &nbsp;= (&amp;(objectClass=mailUser)(|(mail=%u)(&amp;(enabledService=shadowaddress)(shadowAddress=%u)))(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc))<br />pass_filter&nbsp; &nbsp; &nbsp;= (&amp;(objectClass=mailUser)(|(mail=%u)(&amp;(enabledService=shadowaddress)(shadowAddress=%u)))(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc))</p><p>Problem solved</p>]]></content>
			<author>
				<name><![CDATA[mateooo]]></name>
				<uri>http://www.iredmail.org/forum/user32080.html</uri>
			</author>
			<updated>2012-10-19T09:31:12Z</updated>
			<id>http://www.iredmail.org/forum/post18701.html#p18701</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: amavis disable local user verification OR create proper LDAP query]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18685.html#p18685" />
			<content type="html"><![CDATA[<p>Any suggestions how to fix it?</p>]]></content>
			<author>
				<name><![CDATA[mateooo]]></name>
				<uri>http://www.iredmail.org/forum/user32080.html</uri>
			</author>
			<updated>2012-10-18T08:50:07Z</updated>
			<id>http://www.iredmail.org/forum/post18685.html#p18685</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: amavis disable local user verification OR create proper LDAP query]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18675.html#p18675" />
			<content type="html"><![CDATA[<p>You are right, I enabled dovecot logs and after sending e-mail to alias there is:</p><p>Oct 17 09:28:26 auth(default): Info: new auth connection: pid=1331<br />Oct 17 09:28:26 auth(default): Info: new auth connection: pid=1340<br />Oct 17 09:28:26 auth(default): Info: master in: USER&nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp;alias@voipexchange.eu service=deliver<br />Oct 17 09:28:26 auth(default): Info: ldap(alias@voipexchange.eu): user search: base=o=domains,dc=netcentrica,dc=pl scope=subtree filter=(&amp;(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(mail=alias@voipexchange.eu)(&amp;(enabledService=shadowaddress)(shadowAddress=alias@voipexchange.eu)))) fields=mail,homeDirectory,mailMessageStore,mailQuota<br />Oct 17 09:28:26 auth(default): Info: ldap(alias@voipexchange.eu): Unknown user<br />Oct 17 09:28:26 auth(default): Info: master out: NOTFOUND&nbsp; &nbsp; &nbsp; &nbsp;1</p><p>When sending to existing account it&#039;s OK:</p><p>Oct 17 09:29:43 auth(default): Info: client out: OK&nbsp; &nbsp; &nbsp;1&nbsp; &nbsp; &nbsp; &nbsp;user=existing.user@voipexchange.eu<br />Oct 17 09:29:43 auth(default): Info: master in: REQUEST 1&nbsp; &nbsp; &nbsp; &nbsp;1201&nbsp; &nbsp; 1</p><p>How to modify LDAP query in dovecot so it will match aliases and catch-all addresses?</p>]]></content>
			<author>
				<name><![CDATA[mateooo]]></name>
				<uri>http://www.iredmail.org/forum/user32080.html</uri>
			</author>
			<updated>2012-10-17T07:38:25Z</updated>
			<id>http://www.iredmail.org/forum/post18675.html#p18675</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: amavis disable local user verification OR create proper LDAP query]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18672.html#p18672" />
			<content type="html"><![CDATA[<p>Mails scanned by SpamAssassin + ClamAV (both invoked by Amavisd) will be re-injected into Postfix queue (by Amavisd, of course), and Postfix will invoke proper transport to deliver them, in this stage, the transport is usually set to &quot;dovecot&quot; which defined in /etc/postfix/master.cf. Transport &quot;dovecot&quot; executes Dovecot MDA (mail deliver agent) program to deliver emails.</p><p>That&#039;s why i asked for Dovecot logs.</p><p>I suggest turning on debug mode in Dovecot, then try sending a testing email again and paste related log in Dovecot log files.<br />Reference:</p><p>- How to turn on debug mode in Dovecot<br />&nbsp; <a href="http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Turn.On.Debug.Mode.In.Dovecot">http://www.iredmail.org/wiki/index.php? … In.Dovecot</a></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-10-16T23:55:49Z</updated>
			<id>http://www.iredmail.org/forum/post18672.html#p18672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: amavis disable local user verification OR create proper LDAP query]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18666.html#p18666" />
			<content type="html"><![CDATA[<p>I&#039;m bit confused about your request for dovecot logs. As far as I know it&#039;s IMAP server. IMAP in my case works perfectly OK.</p><p>The problem is at SMTP server, in this case postfix</p><p>Mails are rejected by postfix after LDAP lookup done by amavis</p>]]></content>
			<author>
				<name><![CDATA[mateooo]]></name>
				<uri>http://www.iredmail.org/forum/user32080.html</uri>
			</author>
			<updated>2012-10-16T15:55:25Z</updated>
			<id>http://www.iredmail.org/forum/post18666.html#p18666</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: amavis disable local user verification OR create proper LDAP query]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18659.html#p18659" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>mateooo wrote:</cite><blockquote><p>mails set to aliases and catch-all are bounced with user unknown, &quot;Undelivered Mail Returned to Sender&quot;</p></blockquote></div><p>This is caused by Dovecot, not Amavisd. Could you please paste me related log in /var/log/dovecot.log and/or /var/log/sieve.log to help troubleshoot.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-10-16T14:45:24Z</updated>
			<id>http://www.iredmail.org/forum/post18659.html#p18659</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: amavis disable local user verification OR create proper LDAP query]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18657.html#p18657" />
			<content type="html"><![CDATA[<p>Status before enabling amavis:<br />all mails sent to aliases were delivered with no problems</p><p>Status after enabling amavis:<br />mails sent to real users are still delivered OK<br />mails set to aliases and catch-all are bounced with user unknown, &quot;Undelivered Mail Returned to Sender&quot;</p>]]></content>
			<author>
				<name><![CDATA[mateooo]]></name>
				<uri>http://www.iredmail.org/forum/user32080.html</uri>
			</author>
			<updated>2012-10-16T14:42:08Z</updated>
			<id>http://www.iredmail.org/forum/post18657.html#p18657</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: amavis disable local user verification OR create proper LDAP query]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18652.html#p18652" />
			<content type="html"><![CDATA[<p>Sorry, what does your &quot;stops working&quot; exactly mean?</p><p>The LDAP query configured in Amavisd doesn&#039;t query mail alias account at all, and we didn&#039;t add Amavisd required LDAP objectclass to mail alias account, too. So you cannot simply update LDAP query filter to make it work.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-10-16T14:23:12Z</updated>
			<id>http://www.iredmail.org/forum/post18652.html#p18652</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[amavis disable local user verification OR create proper LDAP query]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18638.html#p18638" />
			<content type="html"><![CDATA[<p>==== Required information ====<br />- iRedMail version: 0.8.3<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP<br />- Linux/BSD distribution name and version: Debian Squeeze 64-bit<br />- Related log if you&#039;re reporting an issue: <br />==== </p><p>I use Open source edition and manually added aliases and catch-all e-mails for my domains.<br />Everything works OK when amavis is off.</p><p>When I enable amavis aliases and catch-all stops working.<br />The problem is probably in LDAP query in amavis config file, it matches only email accounts not aliases.</p><p>I think that there are two possible solutions:</p><p>1. To correct LDAP query so it will match aliases - help needed. Query format is a bit unclear for me. Anybody has proper one?</p><p>2. To disable local recipient verification at amavis level and let postfix do it later. I tried this with setting $enable_ldap to 0 and commenting out LDAP query string but with no success.</p><p>I will appreciate your help and suggestions how to fix it</p>]]></content>
			<author>
				<name><![CDATA[mateooo]]></name>
				<uri>http://www.iredmail.org/forum/user32080.html</uri>
			</author>
			<updated>2012-10-15T20:39:46Z</updated>
			<id>http://www.iredmail.org/forum/post18638.html#p18638</id>
		</entry>
</feed>
