<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic111.xml" />
	<updated>2009-07-26T11:34:13Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic111-solved-dkim-permissions-error-and-not-signing-in-authenticated-users.html</id>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post740.html#p740" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Works for me here. Debian Lenny</p></blockquote></div><p>I have already checked in the postfix and the amavis configuration, but I have lost myself... <img src="http://www.iredmail.org/forum/img/smilies/hmm.png" width="15" height="15" alt="hmm" /><br />Where exactly should the equivalence of the local mail and the mail coming from the authenticated users be set?</p><p>Correct me if I&#039;m wrong. The signing is done by Amavis, which based on the rules in /etc/amavis/conf.d/50-user<br />signs the outgoing messages.<br />My line is as follows:<br /></p><div class="codebox"><pre><code>@dkim_signature_options_bysender_maps = ( {
    # ------------------------------------
    # For domain: domain.tld.
    # ------------------------------------
    # &#039;d&#039; defaults to a domain of an author/sender address,
    # &#039;s&#039; defaults to whatever selector is offered by a matching key 

    &#039;postmaster@domain.tld&#039;    =&gt; { d =&gt; &quot;domain.tld&quot;, a =&gt; &#039;rsa-sha256&#039;, ttl =&gt;  7*24*3600 },
    #&quot;spam-reporter@domain.tld&quot;    =&gt; { d =&gt; &quot;domain.tld&quot;, a =&gt; &#039;rsa-sha256&#039;, ttl =&gt;  7*24*3600 },

    # explicit &#039;d&#039; forces a third-party signature on foreign (hosted) domains
    &quot;domain.tld&quot;  =&gt; { d =&gt; &quot;domain.tld&quot;, a =&gt; &#039;rsa-sha256&#039;, ttl =&gt; 10*24*3600 },
    #&quot;host1.domain.tld&quot;  =&gt; { d =&gt; &quot;host1.domain.tld&quot;, a =&gt; &#039;rsa-sha256&#039;, ttl =&gt; 10*24*3600 },
    #&quot;host2.domain.tld&quot;  =&gt; { d =&gt; &quot;host2.domain.tld&quot;, a =&gt; &#039;rsa-sha256&#039;, ttl =&gt; 10*24*3600 },
    # ---- End domain: domain.tld ----

    # catchall defaults
    &#039;.&#039; =&gt; { a =&gt; &#039;rsa-sha256&#039;, c =&gt; &#039;relaxed/simple&#039;, ttl =&gt; 30*24*3600 },
} );
$enable_dkim_verification = 1;  # enable DKIM signatures verification
$enable_dkim_signing = 1;    # load DKIM signing code, keys defined by dkim_key</code></pre></div><p>Is the catchall line wrong?<br />Thank you for your help.</p>]]></content>
			<author>
				<name><![CDATA[cvelbar]]></name>
				<uri>http://www.iredmail.org/forum/user145.html</uri>
			</author>
			<updated>2009-07-26T11:34:13Z</updated>
			<id>http://www.iredmail.org/forum/post740.html#p740</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post736.html#p736" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>cvelbar wrote:</cite><blockquote><p>The emails are DKIM signed only when sent from localhost and not for the authenticated users.</p></blockquote></div><p>Works for me here. Debian Lenny</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-07-26T08:03:17Z</updated>
			<id>http://www.iredmail.org/forum/post736.html#p736</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post728.html#p728" />
			<content type="html"><![CDATA[<p>Checked now on Debian Lenny and still a no go...<br />I commented the line</p><div class="codebox"><pre><code># forward_method =&gt; &#039;smtp:[127.0.0.1]:10027&#039;,</code></pre></div><p>and restarted amavisd-new and also rebooted the machine.</p><p>The emails are DKIM signed only when sent from localhost and not for the authenticated users.</p><p>Any clue on what else to check?</p>]]></content>
			<author>
				<name><![CDATA[cvelbar]]></name>
				<uri>http://www.iredmail.org/forum/user145.html</uri>
			</author>
			<updated>2009-07-23T10:55:04Z</updated>
			<id>http://www.iredmail.org/forum/post728.html#p728</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post629.html#p629" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>webstudio wrote:</cite><blockquote><p>The problem was with the default configuration in amavisd.conf, in the original config a line in ORIGINATING pilicy bank was uncommented and was not valid for the config used in iredmail:</p><p>$policy_bank{&#039;ORIGINATING&#039;} = {<br />&nbsp; ...<br />&nbsp; #forward_method =&gt; &#039;smtp:[127.0.0.1]:10027&#039;,&nbsp; &nbsp;&lt;==== this line has to be commented for signing messages that are sended thought authenticated user<br />&nbsp; ...</p></blockquote></div><p>Fixed:<br /><a href="http://code.google.com/p/iredmail/source/detail?r=509ce3d1119f9da072a6a2441ebbe85e34d05294">http://code.google.com/p/iredmail/sourc … 5e34d05294</a></p><p>Thanks for your report. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-07-11T11:46:50Z</updated>
			<id>http://www.iredmail.org/forum/post629.html#p629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post604.html#p604" />
			<content type="html"><![CDATA[<p>I have test iredmail in openvz vps, the DKIM always have problem.</p><p>but when I run iredmail in vmware and have no problem. </p><br /><p>so Ｉbelieve this is vps bug.</p>]]></content>
			<author>
				<name><![CDATA[shake]]></name>
				<uri>http://www.iredmail.org/forum/user3.html</uri>
			</author>
			<updated>2009-07-08T01:50:42Z</updated>
			<id>http://www.iredmail.org/forum/post604.html#p604</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post602.html#p602" />
			<content type="html"><![CDATA[<p>The problem was with the default configuration in amavisd.conf, in the original config a line in ORIGINATING pilicy bank was uncommented and was not valid for the config used in iredmail:</p><p>$policy_bank{&#039;ORIGINATING&#039;} = {&nbsp; # mail supposedly originating from our users<br />&nbsp; originating =&gt; 1,&nbsp; # declare that mail was submitted by our smtp client<br />&nbsp; allow_disclaimers =&gt; 1,&nbsp; # enables disclaimer insertion if available<br />&nbsp; # notify administrator of locally originating malware<br />&nbsp; virus_admin_maps =&gt; [&quot;root\@$mydomain&quot;],<br />&nbsp; spam_admin_maps&nbsp; =&gt; [&quot;root\@$mydomain&quot;],<br />&nbsp; warnbadhsender&nbsp; &nbsp;=&gt; 1,<br />&nbsp; # forward to a smtpd service providing DKIM signing service<br />&nbsp; #forward_method =&gt; &#039;smtp:[127.0.0.1]:10027&#039;,&nbsp; &nbsp;&lt;==== this line has to be commented for signing messages that are sended thought authenticated user<br />&nbsp; # force MTA conversion to 7-bit (e.g. before DKIM signing)<br />&nbsp; smtpd_discard_ehlo_keywords =&gt; [&#039;8BITMIME&#039;],<br />&nbsp; bypass_banned_checks_maps =&gt; [1],&nbsp; # allow sending any file names and types<br />&nbsp; terminate_dsn_on_notify_success =&gt; 0,&nbsp; # don&#039;t remove NOTIFY=SUCCESS option<br />};</p><br /><p>I dont know if this is a bug in iredmail or is an effect of installing it in VPSs, the other problems with the default permission of the DKIM key has been reproduced&nbsp; in several isntallations of iredmail in another VPSs.</p>]]></content>
			<author>
				<name><![CDATA[webstudio]]></name>
				<uri>http://www.iredmail.org/forum/user105.html</uri>
			</author>
			<updated>2009-07-07T20:14:51Z</updated>
			<id>http://www.iredmail.org/forum/post602.html#p602</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post575.html#p575" />
			<content type="html"><![CDATA[<p>Please try to debug it yourself:</p><div class="codebox"><pre><code># File: /etc/amavisd.conf
$log_level = 5;
$sa_debug = 1;</code></pre></div><p>Restart amavisd service, and monitor /var/log/maillog, try to find out the root case and resolv it.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-07-06T16:01:48Z</updated>
			<id>http://www.iredmail.org/forum/post575.html#p575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post574.html#p574" />
			<content type="html"><![CDATA[<p>Hi again, I know that the DNS is not properly configured. But the main question is why if I send a message from localhost with telnet it is signed and if I send it from an authenticated user using a MUA the messege is not signed. It seems a postfix/amavis config error.</p><br /><p>PD: The DNS is not configured because it is a preproduction system, we are proving the system and need all messages signed beeing from local host or from an authenticated user.</p><p>Regards in advance.</p>]]></content>
			<author>
				<name><![CDATA[webstudio]]></name>
				<uri>http://www.iredmail.org/forum/user105.html</uri>
			</author>
			<updated>2009-07-06T14:59:51Z</updated>
			<id>http://www.iredmail.org/forum/post574.html#p574</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post571.html#p571" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>webstudio wrote:</cite><blockquote><p>These are the outputs:</p><p># amavisd testkeys<br />TESTING#1: dkim._domainkey.***** =&gt; invalid (public key: not available)</p></blockquote></div><p>can not find the pbulic key in your dns.<br />you can check your dns setting.</p>]]></content>
			<author>
				<name><![CDATA[shake]]></name>
				<uri>http://www.iredmail.org/forum/user3.html</uri>
			</author>
			<updated>2009-07-05T10:33:17Z</updated>
			<id>http://www.iredmail.org/forum/post571.html#p571</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post570.html#p570" />
			<content type="html"><![CDATA[<p>These are the outputs:</p><p># amavisd testkeys<br />TESTING#1: dkim._domainkey.***** =&gt; invalid (public key: not available)</p><p>(At this moment the DNS public key is not configured, so this error seems normal)</p><p># amavisd showkeys<br />; key#1, domain *****, /var/lib/dkim/*****.pem<br />dkim._*****.&nbsp; &nbsp; 3600 TXT (<br />&nbsp; &quot;v=DKIM1; p=&quot;<br />&nbsp; &quot;MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVtPefvZuLQd9aw2WEe8j5FX4n&quot;<br />&nbsp; &quot;WkPMY8IXjCvQgcOVY/3xJ/dv4K/1xLjR8r1XOmf2jSwxWzHr7acpY5CRnDVQeoHF&quot;<br />&nbsp; &quot;a1s9gYFrkxyFYeqN0UdnpfPVOjiVnu0IuZan3UjC77dYosvdRM1tx8NH51FZNRHF&quot;<br />&nbsp; &quot;RiJ+VFkp8ygkNvnrAwIDAQAB&quot;)</p>]]></content>
			<author>
				<name><![CDATA[webstudio]]></name>
				<uri>http://www.iredmail.org/forum/user105.html</uri>
			</author>
			<updated>2009-07-04T16:34:15Z</updated>
			<id>http://www.iredmail.org/forum/post570.html#p570</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post569.html#p569" />
			<content type="html"><![CDATA[<p>Please post the output of below command:<br /></p><div class="codebox"><pre><code># amavisd testkeys
# amavisd showkeys</code></pre></div><p>It seems there are some issues in Amavisd while you deploy iRedMail on VPS (OpenVZ), but no issues in real hardware.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-07-04T08:26:55Z</updated>
			<id>http://www.iredmail.org/forum/post569.html#p569</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[SOLVED] DKIM permissions error and not signing in authenticated users]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post568.html#p568" />
			<content type="html"><![CDATA[<p>Hi, I&#039;ve installed iRedMail in several VPS and after installation and rebbot amavis is dwon with this error:<br /># service amavisd restart<br />Shutting down Mail Virus Scanner (amavisd):&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [FAILED]<br />Starting Mail Virus Scanner (amavisd): Error in config file &quot;/etc/amavisd.conf&quot;: Can&#039;t open PEM file /var/lib/dkim/########.pem: Permission denied at /usr/sbin/amavisd line 551.</p><p>after givin permission to the file amavis starts correctly. Is this a bug in installation?</p><p>The other problem is signing mails, if I send a mail using a mail client with an authenticated account the message is not DKIM signed, but if Isend the message from localhost without authenticating the message is signed, how can I change the behaviour for signing all messages??</p><p>These are the message headers the first with an authenticated user using a mail client the second sent from localhost usin telnet to the 25 port:</p><p>Delivered-to: *****<br />Recibido: by ***** with SMTP id t15cs26868wet; Fri, 3 Jul 2009 08:54:24 -0700 (PDT)<br />Recibido: by ***** with SMTP id k8mr1394605bkq.117.1246636464213; Fri, 03 Jul 2009 08:54:24 -0700 (PDT)<br />Return-path: &lt;info@*****&gt;<br />Recibido: from ***** ([*****]) by ***** with ESMTP id 2si400038bwz.21.2009.07.03.08.54.21; Fri, 03 Jul 2009 08:54:21 -0700 (PDT)<br />Received-spf: neutral (*****: **** is neither permitted nor denied by best guess record for domain of info@*****) client-ip=*****;<br />Authentication-results: *****; spf=neutral (*****: ***** is neither permitted nor denied by best guess record for domain of info@*****) smtp.mail=info@*****<br />Recibido: from localhost (***** [*****]) by ***** (iRedMail) with ESMTP id 360B81AE8E56 for &lt;*****&gt;; Fri,&nbsp; 3 Jul 2009 15:54:21 +0000 (UTC)<br />X-virus-scanned: amavisd-new at *****<br />Recibido: from ***** ([127.0.0.1]) by localhost (**** [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20v66WS6s6jW for &lt;****&gt;; Fri,&nbsp; 3 Jul 2009 17:54:21 +0200 (CEST)<br />Recibido: from [192.168.0.120] (***** [*****]) by ***** (iRedMail) with ESMTPSA id 2E0F01AE8E50 for &lt;*****&gt;; Fri,&nbsp; 3 Jul 2009 17:47:59 +0200 (CEST)</p><br /><p>Delivered-to: *****<br />Recibido: by ***** with SMTP id t15cs26460wet; Fri, 3 Jul 2009 08:42:28 -0700 (PDT)<br />Recibido: by ***** with SMTP id e15mr223982ebo.90.1246635748455; Fri, 03 Jul 2009 08:42:28 -0700 (PDT)<br />Return-path: &lt;info@*****&gt;<br />Recibido: from ***** ([*****]) by ***** with ESMTP id 6si6822199ewy.6.2009.07.03.08.42.26; Fri, 03 Jul 2009 08:42:26 -0700 (PDT)<br />Received-spf: neutral (*****: ***** is neither permitted nor denied by best guess record for domain of info@*****) client-ip=*****;<br />Authentication-results: *****; spf=neutral (*****: ***** is neither permitted nor denied by best guess record for domain of info@*****) smtp.mail=info@*****; dkim=neutral (no key) header.i=@*****<br />Recibido: from localhost (***** [127.0.0.1]) by ***** (iRedMail) with ESMTP id 7C838BC8004 for &lt;*****&gt;; Fri,&nbsp; 3 Jul 2009 15:42:26 +0000 (UTC)<br />Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d= *****; h=to:from:date:message-id:subject: x-virus-scanned; s=dkim; t=1246635746; x=1247499746; bh=frcCV1k9 oG9oKj3dpUqdJg1PxRT2RSN/XKdLCPjaYaY=; b=tljmcyx8OWi9HoTyMRYa+y0Z 9pGBArLoO/oi3GvUW3iOCXLONs07xbldVj1Z4rxC/bIVfEETEAEYVCER8mp4jThM Mn0q4Rnnim9PdMx5FvgEYCeU2Jf53pXg+/tPVYvEhqG6qB0bDTOh1k0G5xSR7Fed PPjG+E8KbcRqjfTLGNs=<br />X-virus-scanned: amavisd-new at ****<br />X-amavis-alert: BAD HEADER SECTION, MIME error: error: unexpected end of header<br />Recibido: from ***** ([127.0.0.1]) by localhost (***** [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UDzqD70eFF-Q for &lt;*****&gt;; Fri,&nbsp; 3 Jul 2009 17:42:26 +0200 (CEST)<br />Recibido: from ***** (***** [127.0.0.1]) by ***** (iRedMail) with ESMTP id A4FC0BC8002 for &lt;*****&gt;; Fri,&nbsp; 3 Jul 2009 15:42:06 +0000 (UTC)</p>]]></content>
			<author>
				<name><![CDATA[webstudio]]></name>
				<uri>http://www.iredmail.org/forum/user105.html</uri>
			</author>
			<updated>2009-07-03T17:05:18Z</updated>
			<id>http://www.iredmail.org/forum/post568.html#p568</id>
		</entry>
</feed>
