1

Topic: log email sent to alias

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:
====

In the Pro Panel I can't seem to view the emails sent to user alias.

For example: I have one domain (test.com) and one alias in that domain (alias@test.com pointing to an external domain alias@gmail.com).

If I send an email to alias@test.com I receive it in alias@gmail.com as it's so supposed to. But in the Pro panel's Received and Sent emails lists there isn't any reference to that email going through the server.

Any way to solve this or am I doing something wrong?

----

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

2

Re: log email sent to alias

Postfix expands the alias address to final recipients before injecting into Amavisd, so no log in iRedAdmin-Pro (actually, no log in Amavisd SQL database).

This can be disabled by 'no_address_mappings' in Postfix main.cf. Use it on your own:
http://www.postfix.org/postconf.5.html# … de_options

3

Re: log email sent to alias

I read the info you gave me and made some changes in the postfix/amavis config.

In the main.cf file I commented the line

content_filter = smtp-amavis:[127.0.0.1]:10024

In the master.cf I changed the following

port 25 configuration

smtp      inet  n       -       -       -       -       smtpd
    -o content_filter=smtp-amavis:[127.0.0.1]:10024
    -o receive_override_options=no_address_mappings

port 587 configuration

submission inet n       -       n       -       -       smtpd
  -o content_filter=smtp-amavis:[127.0.0.1]:10024
  -o receive_override_options=no_address_mappings

and the inet 127.0.0.1:10025

127.0.0.1:10025 inet n  -   -   -   -  smtpd
 -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks

After all this the emails sent to the alias started to be loged in amavis as I intended.

Looking at it do you see any setbacks?

4

Re: log email sent to alias

Why not add 'receive_override_options=no_address_mappings' in main.cf directly?