1

Topic: outgoing email as alias address

How can I allow the users to set their outgoing email address to one of their alias addresses? I have a fresh install of RedMail-0.6.1 and iRedAdmin-Pro-1.3.0.

2

Re: outgoing email as alias address

Do you try 'sender bcc'?

It will bcc all outgoing mails from somebody to another email address.

3

Re: outgoing email as alias address

I want for a user to be able to use their primary username or any of their mail aliases as their email address and it not be rejected.

4

Re: outgoing email as alias address

Not fully understand what you mean.

I guess you need to remove 'reject_sender_login_mismatch' option in postfix main.cf.

5

Re: outgoing email as alias address

I changed the query_filter line in the file ldap_sender_login_maps.cf
from:

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

to:

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

And now users can only send email as their address or one of their aliases.

6

Re: outgoing email as alias address

I commited your change to iRedMail. Thanks for your good idea.

But i did a small change (Add 'enabledService=shadowaddress'):

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

Commit log:
http://code.google.com/p/iredmail/sourc … 766e0cecf2