1
how to install spamassassin on remote server
Question asked by Kamlesh Patil - 7/2/2022 at 3:29 AM
Unanswered
HI,

I want to use remote SpamAssassin on smartermail but how can I install spamassassin on a Linux machine? I am using ubuntu 20.04 and I already installed Spamassassin with the help of the following article


do I need to install postfix?

but when I check the logs in smartermail it says 

Unable to run SpamAssassin spam checks on server IP:783: System.Exception: Connecting timed out.
[2022.07.01]    at MailService.Spam.SpamAssassinClient.ExternalCheck(db_system_spam_assassin_server dbSpamAssassinServer, SpamAssassinServer sav)
[2022.07.01] 23:04:33.255 [33967] Unable to run SpamAssassin spam checks on server : No Spam Assassin servers available

2 Replies

Reply to Thread
1
Juan Lai Replied
Hello Mahesh,
   
   I assume your Spam Server is up ( you can telnet 783 port directly to check if the port is up),  and then what you need to do is allow external host(s) to access this Spam Server.
 
   You can try edit 
           /etc/default/spamassassin

And find 
         
 OPTIONS="--create-prefs --max-children 5 --helper-home-dir"

  Then add -d and -A options to allow your mail server to access this daemon.
e.q.  Assumed your mail server ip is 192.168.1.5

 OPTIONS="-d -i 0.0.0.0 -A 192.168.1.5 --create-prefs --max-children 5 --max-conn-per-child=128 --username spamd --helper-home-dir -s /var/log/spamassassin/spamd.log"

  You can man spamd to get more opitions to set.
  Hope this does help.

rds
Juan Lai 
0
Kamlesh Patil Replied
Dear Juan Lai,

Thank you very much. It's working now.

Reply to Thread