So I've set this up,

Inbound email's follow the

@sa_username_maps

but outbound emails do not. The username still gets listed as amavis.

Phil


On 02/06/2018 07:24, Dusan Obradovic wrote:

On May 31, 2018, at 06:43, Philip <[email protected]> wrote:

Afternoon list,

I've got spamassassin set up to read from a MYSQL database.  It's working 
nicely but it's not sending 'amavis' across as the user not the email address 
(as the username) of the virtual user.  I was wondering if this is the intended 
result while using amavis or is there a way to pass the username as the email 
address.

Phil



Short version:

  Example:
     @sa_userconf_maps = (
       { '[email protected]' =>
           '/etc/mail/spamassassin/special_user_config',
         '.example.org' => 'sql:',
       }
     );

@sa_username_maps = (
       { '[email protected]' => 'user1',
         '[email protected]' => 'user2',
         '.example.com'      => 'user_ex',
       }
     );




Reply via email to