THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- You will substitute {user} and {group} for the user and group specificed in your /etc/amavis/amavisd.conf file.
The variables are: $daemon_user = 'amavis'; $daemon_group = 'amavis';
- "razor-client"
- "razor-admin -home={amavis-home}/.razor -create"
- "razor-admin -home={amavis-home}/.razor -discover"
- "razor-admin -home=/var/lib/amavis/.razor -register -user postmaster@yourdomain.org" # Note I have filled in the directory here as an example. Substitute yours.
- "cd /var/lib/amavis"
- "chown {user}:{group} .razor"
- "chown amavis:amavis .razor/*" # Note I have filled in the user and group here as an example. Substitute yours.
EXPLANATION:
- IF Amavisd-new daemon runs as the user/group "amavis" and /etc/passwd has "/var/lib/amavis" as it's home directory (which you should do when using adduser)
THEN the environment variable HOME will equal "/var/lib/amavis" when Amavisd launches SpamAssassin and also when SpamAssassin then launches Razor.
- SO, since SpamAssassin is looking for its configuration/home in /var/lib/amavis/.spamassasin and Razor is looking for its home in /var/lib/amavis/.spamassassinrazor, everything thing is wonderful.
...