Skip to main content

spamd startup configuration

Comments

5 comments

  • cPanelLauren
    Hello, My test server uses the following: /usr/local/cpanel/3rdparty/perl/528/bin/perl -T -w /usr/local/cpanel/3rdparty/bin/spamd --max-spare=1 --max-children=3 --max-children=9 --max-spare=3 --allowed-ips=127.0.0.1,::1 --pidfile=/var/run/spamd.pid --listen=5 --listen=6
    But I will say that modifying these will most likely not change the resource usage. They are nearly identical configurations. The issue most likely that the spamd process on server2 is consuming more resources because it's processing more mail than server1
    0
  • pineyscripter
    Hello, My test server uses the following: /usr/local/cpanel/3rdparty/perl/528/bin/perl -T -w /usr/local/cpanel/3rdparty/bin/spamd --max-spare=1 --max-children=3 --max-children=9 --max-spare=3 --allowed-ips=127.0.0.1,::1 --pidfile=/var/run/spamd.pid --listen=5 --listen=6
    But I will say that modifying these will most likely not change the resource usage. They are nearly identical configurations. The issue most likely that the spamd process on server2 is consuming more resources because it's processing more mail than server1

    Actually just the opposite - server 1 is processing more mail .... all of the mail being processed by both servers is via private mailing lists (mailman) - members sending out newsletters, updates to activities, etc to their membership via the mailing lists ...
    0
  • cPanelLauren
    What about inbound mail though? Unless you're scanning outbound mail it will have no effect on SpamAssassin.
    0
  • pineyscripter
    What about inbound mail though? Unless you're scanning outbound mail it will have no effect on SpamAssassin.

    Well .. that is where I get confused as to who is on first .... I don't use the mail server running on my server for any other inbound mail other than what comes to mailman - i.e. I don't create any mail accounts on the server ... so when I send a message (from my home account, e.g. gmail ) to one of the lists that I am a member on - it goes to my server - and mailman gets it and resends it out to all of the members of the list ... did spamd look at the email from me before passing it to mailman ? did it look at it before it sent it out to the email addresses in the mailing list or did it not even see it to look at it .... I do send out php created emails to members when my applications need to ( php mail command) and also get messages from the various cron jobs that the system sends me as the administrator of the server, but again these come to my home email address - not an email account on the mail server ....
    0
  • cPanelLauren
    To put this in perspective, any email that is sent to your server initially; regardless of whether or not it is a mailing list or being forwarded elsewhere is scanned by SpamAssassin. The same idea goes for outbound mail if you've enabled the scanning of this as well. You can get a feel for how many messages are being processed on your server with exim stats. For example from /var/log/mainlog
    on my server: [root@server]# eximstats /var/log/exim_mainlog |grep -9 "Grand total summary" Exim statistics from 2019-12-08 03:48:01 to 2019-12-12 17:15:28 Grand total summary ------------------- At least one address TOTAL Volume Messages Addresses Hosts Delayed Failed Received 3287KB 898 15 1 0.1% 8 0.9% Delivered 3236KB 890 890 3 Rejects 3911 28 Deliveries by transport -----------------------
    Alternatively, you can see this at WHM>>Email>>View Mail Statistics Summary Grand total summary (Back To Top)
    TOTAL Volume Messages Addresses Hosts At least one addr Delayed At least one addr Failed
    Received 3287KB 898 15 1 0.1% 8 0.9%
    Delivered 3236KB 890 890 3
    Rejects 3911 28
    0

Please sign in to leave a comment.