1 (edited by yavuz.maslak 2015-09-21 21:11:47)

Topic: smg doesn't see alias accounts as recipient .

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: ubuntu14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):ldap
- Web server (Apache or Nginx):apache
- Manage mail accounts with iRedAdmin-Pro? 2.3.1
- Related log if you're reporting an issue:
====
I started to use iredadminpro. i have a smg symantec mail gateway. when i add an alias address into an account.
the smg is not able to see it as recipient address whereas it can see normal accounts.

how can i fix that ?

----

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

2

Re: smg doesn't see alias accounts as recipient .

Could you please try this:

*) Open file /etc/postfix/ldap/sender_login_maps.cf, find line 'query_filter =' like below:

query_filter    = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=smtp)(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s))))

*) Replace it with:

query_filter    = (&(accountStatus=active)(|(objectClass=mailUser)(objectClass=mailAlias))(|(mail=%s)(memberOfGroup=%s)(&(enabledService=shadowAddress)(shadowAddress=%s))))

Old query filter lookups mail user, new filter will lookup mail user, mailing list, mail alias accounts in one query.

Restarting Postfix service is required after this change. Please do let me know whether or not it works for you.

If it doesn't work, i wonder how SMG detects recipient address, i need your help to get related document or support from SMG.

3

Re: smg doesn't see alias accounts as recipient .

Ok i edited and restarted postfix service (service postfix restart )

i see that, Actually the SMG sees alias addresses but it does not see emailaddresses in an alias account like this attachment;

how can i fix that ?

Post's attachments

Screen Shot 2015-09-21 at 18.22.16.png
Screen Shot 2015-09-21 at 18.22.16.png 67.07 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

4

Re: smg doesn't see alias accounts as recipient .

Please show us output of command below:

postmap -q 'tatata@test.ipa.com.tr' ldap:/etc/postfix/ldap/sender_login_maps.cf

Note: please try above command with old sender_login_maps.cf and the one modified (query_filter).

5

Re: smg doesn't see alias accounts as recipient .

root@mail:~# postmap -q 'tatata@test.ipa.com.tr' ldap:/etc/postfix/ldap/sender_login_maps.cf
bbb@test.ipa.com.tr

the bbb@test...    is the user account,  tatata... is the alias.

Post's attachments

Screen Shot 2015-09-21 at 18.22.16.png
Screen Shot 2015-09-21 at 18.22.16.png 67.07 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

6

Re: smg doesn't see alias accounts as recipient .

Then it should work. So now the problem is, how does SMG detect existing accounts?

7

Re: smg doesn't see alias accounts as recipient .

ZhangHuangbin wrote:

Then it should work. So now the problem is, how does SMG detect existing accounts?

the smg detects them with a query on the attachment.

Post's attachments

Screen Shot 2015-09-22 at 19.58.10.png
Screen Shot 2015-09-22 at 19.58.10.png 20.47 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

8

Re: smg doesn't see alias accounts as recipient .

Try this:

(|(mail=%s)(shadowAddress=%s))

9

Re: smg doesn't see alias accounts as recipient .

i edited . it works.

thanks