1

Topic: Add custom disclaimer

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Debian 8.10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  LDAP
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? NO
====

Hi all!
is possible select a disclaimer message based on sasl_username/from relation?
i've some shared accounts between users and works fine, also they can send mail with the shared account "from".  But i need to add a "disclaimer" warning that the mail is "on behalf of".
In amavis i can set per user disclaimer, but when the real "from" sent a mail also will be affected by the rule.

Any suggestion is welcome:
Thnaks in advance
Martin.-

----

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

2

Re: Add custom disclaimer

- What does this "shared account" working? Few users perform smtp auth as their own email address but specify the "From:" to shared account in mail message?
- Did you try to add a per-account disclaimer setting for this shared account in Amavisd config file?

@disclaimer_options_bysender_maps = ({
    # Per-domain, per-user disclaimer setting:
    # '<domain>' => /path/to/disclaimer.txt,
    # '<email>' => /path/to/disclaimer.txt,

    # Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
    '.' => 'default',
},);

3

Re: Add custom disclaimer

Hello!
This is my scenario. User1 share he's mailbox with User2. User2 use his own to authenticate, and use an alternative mail from ( User1 ) to send mails.
Also, i've a "per domain" disclaimer.

My problem is:
- User1 can send mail without any warning message
- User2 can send mail without any warning message if send mail as itself ("smtp user auth" & "mail from" are equals)
- User2 send a mail in behalf of User1, i must add a warning message.

Thanks
Martin.