<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Users Alias complicated]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic713.xml" />
	<updated>2010-03-29T08:52:35Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic713-users-alias-complicated.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3258.html#p3258" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="quotebox"><cite>tech_conmet wrote:</cite><blockquote><p>Any advise for disclaimer problem reported above?</p></blockquote></div><p>In amavisd.conf, you have this:<br /></p><div class="codebox"><pre><code>@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt);

# ... SKIP OTHER SETTINGS HERE ...
     &#039;.fake.org&#039;          =&gt; &#039;fake.org&#039;,                     &lt;----- MANUALLY ADDED</code></pre></div><p>So, the file name MUST be &#039;/etc/postfix/disclaimer/fake.org<span style="color: red">.txt</span>&#039;, you missed &#039;.txt&#039;:<br /></p><div class="codebox"><pre><code>-rw-r--r-- 1 root root   60 Mar 12 14:12 fake.org         &lt;--- SO DISCLAIM TEXT EXISTS</code></pre></div></blockquote></div><p>That was a bad of mine, but still now, that I&#039;ve fixed and restarted services, still no disclaimer appended <br />from aa@fake.org (local ired) -&gt; xxxxxxxxx@yyyy.zzz (my real email address).</p><p>I&#039;m a bit perplessed about altermime in this moment...</p>]]></content>
			<author>
				<name><![CDATA[tech_conmet]]></name>
				<uri>http://www.iredmail.org/forum/user1837.html</uri>
			</author>
			<updated>2010-03-29T08:52:35Z</updated>
			<id>http://www.iredmail.org/forum/post3258.html#p3258</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3254.html#p3254" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tech_conmet wrote:</cite><blockquote><p>Any advise for disclaimer problem reported above?</p></blockquote></div><p>In amavisd.conf, you have this:<br /></p><div class="codebox"><pre><code>@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt);

# ... SKIP OTHER SETTINGS HERE ...
     &#039;.fake.org&#039;          =&gt; &#039;fake.org&#039;,                     &lt;----- MANUALLY ADDED</code></pre></div><p>So, the file name MUST be &#039;/etc/postfix/disclaimer/fake.org<span style="color: red">.txt</span>&#039;, you missed &#039;.txt&#039;:<br /></p><div class="codebox"><pre><code>-rw-r--r-- 1 root root   60 Mar 12 14:12 fake.org         &lt;--- SO DISCLAIM TEXT EXISTS</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-03-29T07:18:44Z</updated>
			<id>http://www.iredmail.org/forum/post3254.html#p3254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3253.html#p3253" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Hi, @tech_conmet.</p><p>Is this what you want? Redirect to profile page so that you can assign this new user to mail lists or aliases.</p></blockquote></div><br /><p>This could be nice enough, <br />thanks for implementation Zhang!</p><p>Any advise for disclaimer problem reported above?</p><p>C U</p>]]></content>
			<author>
				<name><![CDATA[tech_conmet]]></name>
				<uri>http://www.iredmail.org/forum/user1837.html</uri>
			</author>
			<updated>2010-03-29T07:15:51Z</updated>
			<id>http://www.iredmail.org/forum/post3253.html#p3253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3250.html#p3250" />
			<content type="html"><![CDATA[<p>Hi, @tech_conmet.</p><p>Is this what you want? Redirect to profile page so that you can assign this new user to mail lists or aliases.<br /><span class="postimg"><img src="http://iredmail.googlecode.com/hg/screenshots/iredadmin/user_profile_memberOfGroup.png" alt="http://iredmail.googlecode.com/hg/screenshots/iredadmin/user_profile_memberOfGroup.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-03-29T06:52:58Z</updated>
			<id>http://www.iredmail.org/forum/post3250.html#p3250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3044.html#p3044" />
			<content type="html"><![CDATA[<p>Any sort of idea?</p>]]></content>
			<author>
				<name><![CDATA[tech_conmet]]></name>
				<uri>http://www.iredmail.org/forum/user1837.html</uri>
			</author>
			<updated>2010-03-15T09:56:16Z</updated>
			<id>http://www.iredmail.org/forum/post3044.html#p3044</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3026.html#p3026" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="quotebox"><cite>tech_conmet wrote:</cite><blockquote><p>sent a message from aa@fake.org -&gt; aa@fake.org with no disclaim results.</p></blockquote></div><p>It won&#039;t sign disclaimer text while recipient is same as sender. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>That was i thought too, but creating another user (andrea@fake.org) and sending email each other, still get no results:</p><p>These is usefull data log:</p><p>Sent email from aa@fake.org -&gt; andrea@fake.org</p><p><strong>#### tail -f /var/log/maillog #####</strong></p><div class="codebox"><pre><code>Mar 12 14:13:10 mioserver postfix/smtpd[3217]: connect from mioserver.conmet.local[127.0.0.1]
Mar 12 14:13:10 mioserver postfix/smtpd[3217]: DA9E2198510: client=mioserver.conmet.local[127.0.0.1], sasl_method=LOGIN, sasl_username=aa@fake.org
Mar 12 14:13:10 mioserver postfix/cleanup[3221]: DA9E2198510: message-id=&lt;28c8545f5768c30544f3f0f00871ae0a@127.0.0.1&gt;
Mar 12 14:13:10 mioserver postfix/qmgr[3205]: DA9E2198510: from=&lt;aa@fake.org&gt;, size=529, nrcpt=1 (queue active)
Mar 12 14:13:10 mioserver roundcube: [12-Mar-2010 14:13:10 +0100]: User aa@fake.org [172.16.200.137]; Message for Andrea AtFakeOrg &lt;andrea@fake.org&gt;; 250: 2.0.0 Ok: queued as DA9E2198510
Mar 12 14:13:10 mioserver postfix/smtpd[3217]: disconnect from mioserver.conmet.local[127.0.0.1]
Mar 12 14:13:13 mioserver postfix/smtpd[3229]: connect from mioserver.conmet.local[127.0.0.1]
Mar 12 14:13:13 mioserver postfix/smtpd[3229]: 090B1198535: client=mioserver.conmet.local[127.0.0.1]
Mar 12 14:13:13 mioserver postfix/cleanup[3221]: 090B1198535: message-id=&lt;28c8545f5768c30544f3f0f00871ae0a@127.0.0.1&gt;
Mar 12 14:13:13 mioserver postfix/qmgr[3205]: 090B1198535: from=&lt;aa@fake.org&gt;, size=999, nrcpt=1 (queue active)
Mar 12 14:13:13 mioserver amavis[3154]: (03154-01) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] &lt;aa@fake.org&gt; -&gt; &lt;andrea@fake.org&gt;, Message-ID: &lt;28c8545f5768c30544f3f0f00871ae0a@127.0.0.1&gt;, mail_id: C+3qInBqt-w2, Hits: -0.733, size: 529, queued_as: 090B1198535, 2098 ms
Mar 12 14:13:13 mioserver postfix/smtp[3223]: DA9E2198510: to=&lt;andrea@fake.org&gt;, relay=127.0.0.1[127.0.0.1]:10024, delay=2.2, delays=0.05/0.05/0.02/2.1, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=03154-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 090B1198535)
Mar 12 14:13:13 mioserver postfix/qmgr[3205]: DA9E2198510: removed
Mar 12 14:13:13 mioserver postfix/pipe[3231]: 090B1198535: to=&lt;andrea@fake.org&gt;, relay=dovecot, delay=0.11, delays=0.02/0.01/0/0.07, dsn=2.0.0, status=sent (delivered via dovecot service)
Mar 12 14:13:13 mioserver postfix/qmgr[3205]: 090B1198535: removed</code></pre></div><p>So message is processed and sent, but no append....</p><p><strong>####### this is my amavisd.conf (cutted) ##############</strong></p><div class="codebox"><pre><code># ------------ Disclaimer Setting ---------------
# Uncomment this line to enable singing disclaimer in outgoing mails.
$defang_maps_by_ccat{+CC_CATCHALL} = [ &#039;disclaimer&#039; ];          &lt;---- MANUALLY UNCOMENTED, AS REQUIRED INTO FAQ

# Program used to signing disclaimer in outgoing mails.
$altermime = &#039;/usr/bin/altermime&#039;;

# Disclaimer in plain text formart.
@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt);

@disclaimer_options_bysender_maps = ({
    # Per-domain disclaimer setting: /etc/postfix/disclaimer/host1.iredmail.org.txt
    #&#039;host1.iredmail.org&#039; =&gt; &#039;host1.iredmail.org&#039;,

    # Sub-domain disclaimer setting: /etc/postfix/disclaimer/iredmail.org.txt
    #&#039;.iredmail.org&#039;      =&gt; &#039;iredmail.org&#039;,
     &#039;.fake.org&#039;          =&gt; &#039;fake.org&#039;,                     &lt;----- MANUALLY ADDED

    # Per-user disclaimer setting: /etc/postfix/disclaimer/boss.iredmail.org.txt
    #&#039;boss@iredmail.org&#039;  =&gt; &#039;boss.iredmail.org&#039;,

    # Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
    &#039;.&#039; =&gt; &#039;default&#039;,
},);
# ------------ End Disclaimer Setting ---------------</code></pre></div><p><strong>########## Other infos ###############</strong></p><div class="codebox"><pre><code># ls -la /etc/postfix/disclaimer/
total 24
drwxr-xr-x 2 root root 4096 Mar 12 14:12 .
drwxr-xr-x 3 root root 4096 Mar 11 16:18 ..
-rw-r--r-- 1 root root   65 Mar 11 11:24 default.txt
-rw-r--r-- 1 root root   60 Mar 12 14:12 fake.org         &lt;--- SO DISCLAIM TEXT EXISTS</code></pre></div><p><strong>############### Ldif of aa@fake.org and andrea@fake.org ####################</strong></p><div class="codebox"><pre><code># extended LDIF
#
# LDAPv3
# base &lt;&gt; with scope subtree
# filter: (mail=andrea@fake.org)
# requesting: ALL
#

# andrea@fake.org, Users, fake.org, domains, conmet.local
dn: mail=andrea@fake.org,ou=Users,domainName=fake.org,o=domains,dc=conmet,dc=l
 ocal
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
mail: andrea@fake.org
userPassword:: e1NTSEF9Wm9HS09LWlZMNnFUN0N1R2F1dWp2clBLWVYxbFNhejd2Y2t3R1E9PQ=
 =
sn: andrea
uid: andrea
storageBaseDirectory: /var/vmail/vmail01
mailMessageStore: fake.org/a/an/and/andrea-2010.03.11.16.36.01/
homeDirectory: /var/vmail/vmail01/fake.org/a/an/and/andrea-2010.03.11.16.36.01
 /
enabledService: mail
enabledService: smtp
enabledService: deliver
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
mailQuota: 104857600
cn: Andrea AtFakeOrg
accountStatus: active

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

---------------------------------------------------------------

Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base &lt;&gt; with scope subtree
# filter: (mail=aa@fake.org)
# requesting: ALL
#

# aa@fake.org, Users, fake.org, domains, conmet.local
dn: mail=aa@fake.org,ou=Users,domainName=fake.org,o=domains,dc=conmet,dc=local
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
mail: aa@fake.org
userPassword:: e1NTSEF9S2pGZ1RIUHQvOE1LNnc3d3NqMmVoQWtNaDdlNTJWNUNROXpKcGc9PQ=
 =
sn: aa
uid: aa
storageBaseDirectory: /var/vmail/vmail01
mailMessageStore: fake.org/a/aa/aaa/aa-2010.03.12.14.08.41/
homeDirectory: /var/vmail/vmail01/fake.org/a/aa/aaa/aa-2010.03.12.14.08.41/
accountStatus: active
enabledService: mail
enabledService: smtp
enabledService: deliver
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
mailQuota: 104857600
cn: AaA

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1</code></pre></div><br /><p>What I&#039;m missing? It seems all right, isn&#039;t it? </p><p>Thanks, </p><p>ConMET</p>]]></content>
			<author>
				<name><![CDATA[tech_conmet]]></name>
				<uri>http://www.iredmail.org/forum/user1837.html</uri>
			</author>
			<updated>2010-03-12T13:22:27Z</updated>
			<id>http://www.iredmail.org/forum/post3026.html#p3026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3023.html#p3023" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tech_conmet wrote:</cite><blockquote><p>sent a message from aa@fake.org -&gt; aa@fake.org with no disclaim results.</p></blockquote></div><p>It won&#039;t sign disclaimer text while recipient is same as sender. <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>2010-03-12T09:05:59Z</updated>
			<id>http://www.iredmail.org/forum/post3023.html#p3023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3021.html#p3021" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>So what you want is like this, after created user, redirect to this page, so that you can assign this new user to mail list or alias, right?<br /><span class="postimg"><img src="http://iredmail.googlecode.com/hg/screenshots/iredadmin/user_profile_memberOfGroup.png" alt="http://iredmail.googlecode.com/hg/screenshots/iredadmin/user_profile_memberOfGroup.png" /></span></p></blockquote></div><p>That could be nice <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>It is quite simple to create a user and just add few aliases (if needed) in one page, just adding an alias per line and not going from a page to another to create it I think. So, the operation should be:</p><p>1- Create Domain (admin user per domain should be created by default, like postfixAdmin does creating a postmaster user per domain on its creation. In a second time you could change its name, but it is secondary).<br />2- Create Users<br />2a - Create per-user Aliases/Forwarder, per-domain Aliases<br />3- Create a mailing list (if needed)<br />3a- Insert users into a mailing list (if needed)</p><p>A quite interesting function could be to create a SpamAssassin/Clam pannel where single users (or better, only domain admin users) could change preferences for Antivirus/Antispam like Spam Lovers or Virus Lovers or SpamAssassin detection level and so on, but I think you&#039;re already trying to implement this feature, isn&#039;t it? ;D</p><p>PS: For disclaimer issue any sort of info ?</p><p>Thanks,</p><p>ConMET</p>]]></content>
			<author>
				<name><![CDATA[tech_conmet]]></name>
				<uri>http://www.iredmail.org/forum/user1837.html</uri>
			</author>
			<updated>2010-03-12T08:41:10Z</updated>
			<id>http://www.iredmail.org/forum/post3021.html#p3021</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3019.html#p3019" />
			<content type="html"><![CDATA[<p>So what you want is like this, after created user, redirect to this page, so that you can assign this new user to mail list or alias, right?<br /><span class="postimg"><img src="http://iredmail.googlecode.com/hg/screenshots/iredadmin/user_profile_memberOfGroup.png" alt="http://iredmail.googlecode.com/hg/screenshots/iredadmin/user_profile_memberOfGroup.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-03-12T02:12:15Z</updated>
			<id>http://www.iredmail.org/forum/post3019.html#p3019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3018.html#p3018" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tech_conmet wrote:</cite><blockquote><p>PS: altermime was not present into iRedOS installation , I&#039;ve had to install it manually through &#039;yum install altermime&#039; .</p></blockquote></div><p>Yes, this is a bug in iRedMail-0.5.0, also in iRedOS-0.5.0. Fixed in iRedMail-0.5.1.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-03-12T02:06:05Z</updated>
			<id>http://www.iredmail.org/forum/post3018.html#p3018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3013.html#p3013" />
			<content type="html"><![CDATA[<p>These are my steps for creation:</p><p>- Domain xxx.yy creation<br />- User aaaa@xxx.yy creation<br />- Alias aaaa1@xxx.yy creation<br />- Adding aaaa@xxx.yy as member of aaaa1@xxx.yy alias</p><p>You&#039;ve said this is double work, so i&#039;ve done this way:</p><p>- domain xxx.yy creation<br />- Alias aaaa1@xxx.yy creation<br />- Adding aaaa@xxx.yy as member of aaaa1@xxx.yy alias</p><p>But if you do it this way no user aaaa@xxx.yy is defined, no roundcube access, this cannot be THE way I think.</p><p>Other thing, I&#039;ve enabled in amavisd.conf disclaimer, created a domain fake.org with only one user to test disclaimer. Added crontab job and modified python script as needed to connect to LDAP correctly and it works.</p><p>Uncommented:<br />$defang_maps_by_ccat{+CC_CATCHALL} = [ &#039;disclaimer&#039; ];</p><p>Added under @disclaimer_options_bysender_maps<br />&#039;.fake.org&#039;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; &#039;fake.org&#039;,</p><p>Created into /etc/postfix/disclaimer a file txt with a sample disclaim into it and named fake.org.txt with same permissions of default.txt,</p><p>restarted amavisd/dovecot/postfix </p><p>sent a message from aa@fake.org -&gt; aa@fake.org with no disclaim results.</p><p>PS: altermime was not present into iRedOS installation , I&#039;ve had to install it manually through &#039;yum install altermime&#039; .</p><p>Any suggestions?</p><p>Thanks Zhang, </p><p>ConMET</p>]]></content>
			<author>
				<name><![CDATA[tech_conmet]]></name>
				<uri>http://www.iredmail.org/forum/user1837.html</uri>
			</author>
			<updated>2010-03-11T15:56:53Z</updated>
			<id>http://www.iredmail.org/forum/post3013.html#p3013</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3007.html#p3007" />
			<content type="html"><![CDATA[<p>You don&#039;t need to create two accounts (mail user + mail alias with same email address). Create only alias account is enough.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-03-11T14:33:34Z</updated>
			<id>http://www.iredmail.org/forum/post3007.html#p3007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Users Alias complicated]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3000.html#p3000" />
			<content type="html"><![CDATA[<p>Good Morning all, </p><p>Our company thinks that user aliases is a little bit complicated, more usefull, in our opinion, to create an user and have the choice to <br />create one (or more than one) aliases for itself in just a click. </p><p>Now through iRedAdmin controll pannel you have to create user, jump into aliases, create an alias (for who is not clear) and after you&#039;ve<br />created the noone-alias you&#039;ve to bind it to its own user. It&#039;s quite more simple to ask for it in user creation we think, isn&#039;t it?</p><p>Thanks for support.</p><p>ConMET</p>]]></content>
			<author>
				<name><![CDATA[tech_conmet]]></name>
				<uri>http://www.iredmail.org/forum/user1837.html</uri>
			</author>
			<updated>2010-03-11T09:56:58Z</updated>
			<id>http://www.iredmail.org/forum/post3000.html#p3000</id>
		</entry>
</feed>
