Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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"
  • "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.

...