Skip to main content

SpamAssassin to external cPanel SA servers not working.

Comments

5 comments

  • cPanelMichael
    [quote="rezman, post: 1564882">Connections from server 1 to server 2 fail. I can't even telnet 10.0.0.2 783. I check IP tables on server 2 and it's getting traffic from server 1 on port 783. It's as if SA just isn't accepting the connections. 2014-02-05 11:29:40 1WB5LV-0001gp-Os spam acl condition: warning - spamd connection to 10.0.0.2, port 783 failed: Connection refused

    Are you able to telnet to other ports on the 10.0.0.2 address? Have you tried temporarily disabling your firewall on both servers temporarily to rule that out as the cause? Thank you.
    0
  • rezman
    Thanks for a quick response. No change after turning off all firewalls. On Server 2 I'll do a tcpdump. This is the output. In this case: - cpanel1 = server 1 (sender) - cpsetup = server 2 (receiving to do the scanning) 15:10:07.079903 IP cpanel1.domain.com.32969 > cpsetup.domain.com.783: Flags , seq 847809201, win 14600, options [mss 1460,sackOK,TS val 2400965261 ecr 0,nop,wscale 7], length 0 15:10:07.079931 IP cpsetup.domain.com.783 > cpanel1.domain.com.32969: Flags [R.], seq 0, ack 847809202, win 0, length 0 15:10:07.255029 ARP, Request who-has cpsetup.domain.com tell cpanel1.domain.com, length 46 15:10:07.255040 ARP, Reply cpsetup.domain.com is-at 00:25:90:e0:16:d0 (oui Unknown), length 28
    I think I might have found the problem but I don't know where to change the settings. It looks like spamd is only listening on 127.0.0.1:783 # netstat -l -vp | grep 783 tcp 0 0 localhost.localdomain:783 *:* LISTEN 12978/spamd.pid --m
    Where might I change this at? I don't see anything in the files located in /etc/mail/spamassassin/
    0
  • cPanelMichael
    You can modify the allowed IP addresses for spamd via: "WHM Home " Email " Spamd Startup Configuration" This will populate the /etc/cpspamd.conf file. Thank you.
    0
  • rezman
    [quote="cPanelMichael, post: 1566012">You can modify the allowed IP addresses for spamd via: "WHM Home " Email " Spamd Startup Configuration" This will populate the /etc/cpspamd.conf file. Thank you.
    I've already done that part and it's showing up when I check "ps aux | grep spamd". The problem is that spamd is only listening on localhost (127.0.0.1:783) so it's not accepting connections from my other Cpanel servers. I'm trying to do some spamd load balancing between Cpanel servers.
    0
  • Dolphyn

    This thread is 12 years old, but I'm having the same problem: spamd only listens on 127.0.0.1 (as confirmed by "ss -tlnp | grep 783" or "netstat -plnt | grep 783") so the Allowed IPs configuration doesn't have any effect.

    In theory, the listening IP can be changed using --listen or --listen-ip in the command line. But "service spamd status" or "ps aux | grep spamd" shows that the command always includes "--listen=5" (whatever that means). I haven't found any way to override it in /etc/cpspamd.conf .

    Any ideas? Thanks.

    0

Please sign in to leave a comment.