SpamAssassin _HOSTNAME_ options for virtual domains

shadow79

Verified User
Joined
May 18, 2010
Messages
5
Hi,

I'm wondering if anyone know how to setup actual (virtual) hostname to the spamassassin report on every scanned email.

for example:

X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
xxx.example.com

Configuration option for this parameter (_HOSTNAME_) you can find on file 10_default_prefs.cf with line clear_headers.

When we have multiple ips and domains there is always main hostname of server which is very bad. If anyone know how to fix it please let me know here.

BR
Piotr
 
Update /etc/mail/spamassassin/10_local_report.cf to whatever you like.

Hi,

ok, but still it works only with one host name. What I'm trying to get is different host name for each domain (ip address) so there should be some kind of if() like on exim primary_hostname checking to get correct host name.

This is what I'm asking for.
BR
Piter
 
Back
Top