I have several Cpanel servers. Out of those 2 are rather idle and one has an account with a lot of email traffic. I'm trying to set it up so that server can send some of it's SA checking to the two idle Cpanel SA servers. Here is my setup.
Server 1 = high email load server. (127.0.0.1 or 10.0.0.1 in this posting)
Server 2 = idle Cpanel w/SA running. (10.0.0.2 in this posting)
Server 1:
- I added in the exim conf for SA to use both 127.0.0.1 783 : 10.0.0.2 783
- I've opened up TCP ports 783 (in/out) in my CSF config and also added all IPs to the CSF Allow list.
Server 2:
- I've set 127.0.0.1,10.0.0.1 in Cpanel (Email > Spamd Startup Configuration > Allowed IPs)
- I've opened up TCP ports 783 (in/out) in my CSF config and also added all IPs to the CSF Allow list.
Everything going good so far. I check the spamd process on server 2.
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.
Is there something I'm missing here? Spamd runs perfect when connecting to localhost. In the past I have had my Cpanel connect to a standalone SA server I had and it worked fine. I would rather use the Cpanel SA servers that auto update.
Server 1 = high email load server. (127.0.0.1 or 10.0.0.1 in this posting)
Server 2 = idle Cpanel w/SA running. (10.0.0.2 in this posting)
Server 1:
- I added in the exim conf for SA to use both 127.0.0.1 783 : 10.0.0.2 783
- I've opened up TCP ports 783 (in/out) in my CSF config and also added all IPs to the CSF Allow list.
Server 2:
- I've set 127.0.0.1,10.0.0.1 in Cpanel (Email > Spamd Startup Configuration > Allowed IPs)
- I've opened up TCP ports 783 (in/out) in my CSF config and also added all IPs to the CSF Allow list.
Everything going good so far. I check the spamd process on server 2.
Code:
# ps aux | grep spamd
root 11892 0.0 0.1 167588 52880 ? Ss 11:47 0:01 /usr/local/cpanel/3rdparty/perl/514/bin/spamd -d --timeout-child=10 --timeout-tcp=20 --allowed-ips=127.0.0.1,10.0.0.1 --max-conn-per-child=5 --pidfile=/var/run/spamd.pid --max-children=15
Code:
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
Last edited: