1

Topic: Email alias in IredMail

Hi, it's possible to create a email alias with this version (IRedMail)?
TKS

----

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

2

Re: Email alias in IredMail

Of course. May i know which backend you're running? OpenLDAP or MySQL?

For OpenLDAP backend, here's tutorial used to create mail alias with phpLDAPadmin: http://iredmail.org/wiki/index.php?titl … pLDAPadmin

For MySQL backend, you can create new alias with MySQL command line manually:

$ mysql -uroot -p
mysql> USE vmail;
mysql> INSERT INTO alias (address, goto, domain) values ('orig@domain.ltd', 'user01@gmail.com,user02@hotmail.com', 'domain.ltd');

You can also create mail alias with iRedAdmin-Pro, screenshots for your reference:
http://screenshots.iredmail.googlecode.com/hg/iredadmin/alias_create.png
http://screenshots.iredmail.googlecode.com/hg/iredadmin/alias_profile_general.png

3

Re: Email alias in IredMail

ZhangHuangbin wrote:

Of course. May i know which backend you're running? OpenLDAP or MySQL?

MYSQL

For MySQL backend, you can create new alias with MySQL command line manually:

$ mysql -uroot -p
mysql> USE vmail;
mysql> INSERT INTO alias (address, goto, domain) values ('orig@domain.ltd', 'user01@gmail.com,user02@hotmail.com', 'domain.ltd');

Ok, I added manually in mysql fields in the table alias, but the email does not arrive and returns the message "Undelivered Mail Returned to Sender"....

This is the mail system at host *********

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

****** : user unknown

Any ideas?

4

Re: Email alias in IredMail

ideas?

5

Re: Email alias in IredMail

gigi2683 wrote:

Ok, I added manually in mysql fields in the table alias, but the email does not arrive and returns the message "Undelivered Mail Returned to Sender"....

Could you please show us how you add it? What's the SQL command?
What's the output with below command (replace 'alias@domain.ltd' with the email address of alias account you created):

# postmap -q 'alias@domain.ltd' mysql:/etc/postfix/mysql/virtual_alias_maps.cf

6

Re: Email alias in IredMail

ZhangHuangbin wrote:

Could you please show us how you add it? What's the SQL command?

The command is the same as previously posted

mysql -u root -p
mysql> USE vmail;
mysql> INSERT INTO alias (address, goto, domain) values ('name.surname@domain.it, 'my_user@gmail.com, 'domain.it');
ZhangHuangbin wrote:

What's the output with below command (replace 'alias@domain.ltd' with the email address of alias account you created):

# postmap -q 'alias@domain.ltd' mysql:/etc/postfix/mysql/virtual_alias_maps.cf

postmap command output is the forward email address (my_user@gmail.com)

7

Re: Email alias in IredMail

Postmap returns correct alias members, so SQL command should be fine.
Still no idea why it doesn't work for you. Sorry. sad

8

Re: Email alias in IredMail

I solved the problem by deleting the directive in main.cf
#receive_override_options = no_address_mappings
receive_override_options =

but what is correct?

9

Re: Email alias in IredMail

What's the output of below command? Did you also have an user account "alias@domain.ltd"?

# postmap -q 'alias@domain.ltd' mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf

Ideally, "receive_override_options = no_address_mappings" is required.

10

Re: Email alias in IredMail

The output is the real email address, I don't have a user account "alias@domain.ltd".
If you don't take off that directive comes back to me the email with errors above

11

Re: Email alias in IredMail

gigi2683 wrote:

The output is the real email address

Sorry, do you mean output of below command returns "alias@domain.ltd"?

# postmap -q 'alias@domain.ltd' mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf

Please paste the output directly, it's better for troubleshooting.

12

Re: Email alias in IredMail

It means that the output of the command is name@gmail.com (my real email address) so it's right