1

Topic: Mail lists and Alias does not use their own Mailadress as senderaddr.

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.2
- Linux/BSD distribution name and version: centos-release-5-9.el5.centos.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? yes, iRedAdmin-Pro-LDAP / 2.3.1
- Related log if you're reporting an issue:
====

Dear Support

We have a customer who has to work with a lot of Mailinglist, because their website is some kind of electronic directory with a lot of members who needs to share Mails over that lists.

The sender address from a e-mail spread by a Mailinglist or Alias is always the original sender address.

This causes the sender not to receive his own mail, even though he himself is a member of the list.

His e-mail to the list is not accepted by his own Masilserver, either because he is the sender of the e-mail, but at the time of the dispatch he is not logged into his own mailserver(postfix-policy) or because the SPF of its own Domain does not include our Mailserver as accepted SMTP.

Is it possible to define the list-adress itself as a sender?
Are there some other Workaround can be implemented by us?

Best regards and thank you in advance

-sylonhosting

----

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

2

Re: Mail lists and Alias does not use their own Mailadress as senderaddr.

It's a known issue, that iRedMail doesn't use a true mailing list management tool (like Mailman, mlmmj) for mailing list.

We have a tutorial to integrate mlmmj mailing list management tool, you can try it on a testing machine first, if it works, do it on production server.

#############
# Installation
#

Install package "mlmmj" with yum/apt-get, etc.

#############
# Setup mlmmj
#

Append new content to file /etc/postfix/master.cf:

# ${nexthop} is '%d/%u' in transport ('mlmmj:%d/%u')
mlmmj   unix  -       n       n       -       -       pipe
    flags=ORhu user=mlmmj argv=/usr/bin/mlmmj-receive -F -L /var/spool/mlmmj/${domain}/${user}
#    flags=ORhu user=mlmmj argv=/usr/bin/mlmmj-receive -F -L /var/spool/mlmmj/${nexthop}

Update /etc/postfix/main.cf:

mlmmj_destination_recipient_limit = 1

virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/mlmmj.cf, ...
transport_maps =
    proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf,
    proxy:mysql:/etc/postfix/mysql/transport_maps_mlmmj.cf,
    proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf

Add /etc/postfix/mysql/mlmmj.cf with content like below:

user        = vmail
password    = qsescZvV03f6YUtTMN2bQTejmjatzz
hosts       = 127.0.0.1
port        = 3306
dbname      = vmail
query       = SELECT '%s' FROM alias WHERE address='%s' AND islist=1 AND active=1

Add /etc/postfix/mysql/transport_maps_mlmmj.cf with content like below:

user        = vmail
password    = qsescZvV03f6YUtTMN2bQTejmjatzz
hosts       = 127.0.0.1
port        = 3306
dbname      = vmail
query       = SELECT 'mlmmj:%d/%u' FROM alias WHERE address='%s' AND islist=1 AND active=1

############
# Create new mailing list
#

Create a new mailing list with domain.com/listname style:

mlmmj-make-ml -L 'alist' -s /var/spool/mlmmj/a.cn -c mlmmj

You can custom mailing list settings easily. for example, to use some custom mail headers, modify file /var/spool/mlmmj/b.cn/alist/control/customheaders:

X-Mailinglist: alist@b.cn
Reply-To: alist@b.cn

##############
# References
#

* Mlmmj web site: http://mlmmj.org/
* Mlmmj Postfix integration: http://mlmmj.org/docs/readme-postfix/

3

Re: Mail lists and Alias does not use their own Mailadress as senderaddr.

We have plan to integrate mlmmj in iRedMail-0.9.7 (latest stable release is 0.9.5-1, upcoming is 0.9.6).