1

Topic: Postfix+Amavisd+Roundcube Whitelist addressbooks.

I am looking for a way to tell amavis/postfix to whitelist all address book addresses of users.
We have 400+ users. What i want to achieve is, when a user adds and email address to their address book amavis/postfix would white list it automatically.

This would be a great integration if not added already.

Thanks in advanced.

----

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

2

Re: Postfix+Amavisd+Roundcube Whitelist addressbooks.

You can dump all address books from Roundcube database every hour, then whitelist them in Amavisd and/or Postfix.

- Assume you dump address book to file /etc/whitelists.amavisd, one email address per line.
- Assume dumping to another file /etc/postfix/whitelists.postfix, file format is 'user@domain.ltd OK'.

In amavisd.conf:

read_hash(\%whitelist_sender, '/etc/whitelists.amavisd');

In Postfix config file 'main.cf':

smtpd_sender_restrictions =
    check_sender_access hash:/etc/postfix/whitelists.postfix,
    [...SKIP OTHERS...]

3

Re: Postfix+Amavisd+Roundcube Whitelist addressbooks.

example I want to create whilelist as user*@domain.com or user???@domain.com. Is it ok?

4

Re: Postfix+Amavisd+Roundcube Whitelist addressbooks.

minhneo wrote:

example I want to create whilelist as user*@domain.com or user???@domain.com. Is it ok?

Reference:
http://www.postfix.org/postconf.5.html# … der_access
http://www.postfix.org/access.5.html