1

Topic: Users Alias complicated

Good Morning all,

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
create one (or more than one) aliases for itself in just a click.

Now through iRedAdmin controll pannel you have to create user, jump into aliases, create an alias (for who is not clear) and after you've
created the noone-alias you've to bind it to its own user. It's quite more simple to ask for it in user creation we think, isn't it?

Thanks for support.

ConMET

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Users Alias complicated

You don't need to create two accounts (mail user + mail alias with same email address). Create only alias account is enough.

3

Re: Users Alias complicated

These are my steps for creation:

- Domain xxx.yy creation
- User aaaa@xxx.yy creation
- Alias aaaa1@xxx.yy creation
- Adding aaaa@xxx.yy as member of aaaa1@xxx.yy alias

You've said this is double work, so i've done this way:

- domain xxx.yy creation
- Alias aaaa1@xxx.yy creation
- Adding aaaa@xxx.yy as member of aaaa1@xxx.yy alias

But if you do it this way no user aaaa@xxx.yy is defined, no roundcube access, this cannot be THE way I think.

Other thing, I'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.

Uncommented:
$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];

Added under @disclaimer_options_bysender_maps
'.fake.org'          => 'fake.org',

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,

restarted amavisd/dovecot/postfix

sent a message from aa@fake.org -> aa@fake.org with no disclaim results.

PS: altermime was not present into iRedOS installation , I've had to install it manually through 'yum install altermime' .

Any suggestions?

Thanks Zhang,

ConMET

4

Re: Users Alias complicated

tech_conmet wrote:

PS: altermime was not present into iRedOS installation , I've had to install it manually through 'yum install altermime' .

Yes, this is a bug in iRedMail-0.5.0, also in iRedOS-0.5.0. Fixed in iRedMail-0.5.1.

5

Re: Users Alias complicated

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?
http://iredmail.googlecode.com/hg/screenshots/iredadmin/user_profile_memberOfGroup.png

6

Re: Users Alias complicated

ZhangHuangbin wrote:

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?
http://iredmail.googlecode.com/hg/screenshots/iredadmin/user_profile_memberOfGroup.png

That could be nice smile

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:

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).
2- Create Users
2a - Create per-user Aliases/Forwarder, per-domain Aliases
3- Create a mailing list (if needed)
3a- Insert users into a mailing list (if needed)

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're already trying to implement this feature, isn't it? ;D

PS: For disclaimer issue any sort of info ?

Thanks,

ConMET

7

Re: Users Alias complicated

tech_conmet wrote:

sent a message from aa@fake.org -> aa@fake.org with no disclaim results.

It won't sign disclaimer text while recipient is same as sender. smile

8 (edited by tech_conmet 2010-03-12 21:24:25)

Re: Users Alias complicated

ZhangHuangbin wrote:
tech_conmet wrote:

sent a message from aa@fake.org -> aa@fake.org with no disclaim results.

It won't sign disclaimer text while recipient is same as sender. smile

That was i thought too, but creating another user (andrea@fake.org) and sending email each other, still get no results:

These is usefull data log:

Sent email from aa@fake.org -> andrea@fake.org

#### tail -f /var/log/maillog #####

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=<28c8545f5768c30544f3f0f00871ae0a@127.0.0.1>
Mar 12 14:13:10 mioserver postfix/qmgr[3205]: DA9E2198510: from=<aa@fake.org>, 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 <andrea@fake.org>; 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=<28c8545f5768c30544f3f0f00871ae0a@127.0.0.1>
Mar 12 14:13:13 mioserver postfix/qmgr[3205]: 090B1198535: from=<aa@fake.org>, 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] <aa@fake.org> -> <andrea@fake.org>, Message-ID: <28c8545f5768c30544f3f0f00871ae0a@127.0.0.1>, 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=<andrea@fake.org>, 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=<andrea@fake.org>, 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

So message is processed and sent, but no append....

####### this is my amavisd.conf (cutted) ##############

# ------------ Disclaimer Setting ---------------
# Uncomment this line to enable singing disclaimer in outgoing mails.
$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];          <---- MANUALLY UNCOMENTED, AS REQUIRED INTO FAQ

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

# 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
    #'host1.iredmail.org' => 'host1.iredmail.org',

    # Sub-domain disclaimer setting: /etc/postfix/disclaimer/iredmail.org.txt
    #'.iredmail.org'      => 'iredmail.org',
     '.fake.org'          => 'fake.org',                     <----- MANUALLY ADDED

    # Per-user disclaimer setting: /etc/postfix/disclaimer/boss.iredmail.org.txt
    #'boss@iredmail.org'  => 'boss.iredmail.org',

    # Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
    '.' => 'default',
},);
# ------------ End Disclaimer Setting ---------------

########## Other infos ###############

# 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         <--- SO DISCLAIM TEXT EXISTS

############### Ldif of aa@fake.org and andrea@fake.org ####################

# extended LDIF
#
# LDAPv3
# base <> 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 <> 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

What I'm missing? It seems all right, isn't it?

Thanks,

ConMET

9

Re: Users Alias complicated

Any sort of idea?

10

Re: Users Alias complicated

Hi, @tech_conmet.

Is this what you want? Redirect to profile page so that you can assign this new user to mail lists or aliases.
http://iredmail.googlecode.com/hg/screenshots/iredadmin/user_profile_memberOfGroup.png

11

Re: Users Alias complicated

ZhangHuangbin wrote:

Hi, @tech_conmet.

Is this what you want? Redirect to profile page so that you can assign this new user to mail lists or aliases.


This could be nice enough,
thanks for implementation Zhang!

Any advise for disclaimer problem reported above?

C U

12

Re: Users Alias complicated

tech_conmet wrote:

Any advise for disclaimer problem reported above?

In amavisd.conf, you have this:

@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt);

# ... SKIP OTHER SETTINGS HERE ...
     '.fake.org'          => 'fake.org',                     <----- MANUALLY ADDED

So, the file name MUST be '/etc/postfix/disclaimer/fake.org.txt', you missed '.txt':

-rw-r--r-- 1 root root   60 Mar 12 14:12 fake.org         <--- SO DISCLAIM TEXT EXISTS

13

Re: Users Alias complicated

ZhangHuangbin wrote:
tech_conmet wrote:

Any advise for disclaimer problem reported above?

In amavisd.conf, you have this:

@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt);

# ... SKIP OTHER SETTINGS HERE ...
     '.fake.org'          => 'fake.org',                     <----- MANUALLY ADDED

So, the file name MUST be '/etc/postfix/disclaimer/fake.org.txt', you missed '.txt':

-rw-r--r-- 1 root root   60 Mar 12 14:12 fake.org         <--- SO DISCLAIM TEXT EXISTS

That was a bad of mine, but still now, that I've fixed and restarted services, still no disclaimer appended
from aa@fake.org (local ired) -> xxxxxxxxx@yyyy.zzz (my real email address).

I'm a bit perplessed about altermime in this moment...