About client sending SPAM

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
klaytonfratoni2
New user
New user
Posts: 4
Joined: 2020-06-03 19:59

About client sending SPAM

Post by klaytonfratoni2 » 2020-06-03 20:04

Good afternoon friends,

Sorry for the bad English, I had to use a translator.

I am also new to email servers. Today I have a server working well with hmailserver. However, I have been having problems with my server's reputation drop. I would like to know if it is possible to prevent any of my clients from being able to send SPAM through my server, I would like to prevent this completely, as I believe that eventually it can happen. Thank you.

User avatar
mattg
Moderator
Moderator
Posts: 20837
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: About client sending SPAM

Post by mattg » 2020-06-03 23:33

Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

klaytonfratoni2
New user
New user
Posts: 4
Joined: 2020-06-03 19:59

Re: About client sending SPAM

Post by klaytonfratoni2 » 2020-06-04 13:52

Code: Select all

2020-06-04   Hmailserver: 5.6.8-B2501

DOMAINS

   "Domain1.com" - arxxxxxxxxxxxxx.com.br         Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: True    
                   Max message size:        0   Header:    Simple  Plus addressing: False
                   Max size of accounts:    0   Body:      Simple
                                                Algorithm: SHA256  Greylisting:      True
                                                Private key: c:\dkim\Domain1.com.txt
                                                Selector:    1576868884.arconengenharia

   "Domain2.com" - bexxxx.com.br                  Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:      True

   "Domain3.com" - caxxxxxxxxxxx.adx.br           Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:      True

   "Domain4.com" - coxxxxxxx.com.br               Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:           150000   Enabled: True    
                   Max message size:    90000   Header:   Relaxed  Plus addressing: False
                   Max size of accounts: 90000   Body:     Relaxed
                                                Algorithm: SHA256  Greylisting:      True
                                                Private key: c:\dkim\dkim.Domain4.com.pem
                                                Selector:    dkim

   "Domain5.com" - dixxxxxxxxxxxxxxxxxxxxxxx.com. Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:      True

   "Domain6.com" - ezxxxxxxxxxxxxx.com.br         Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:      True

   "Domain7.com" - lcxxxxxxxxx.com.br             Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:      True

   "Domain8.com" - mixxxxxxxxxxxxxxxxxx.com       Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:      True

   "Domain9.com" - muxxxxxxxxxxxxxxxx.com.br      Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:      True

   "Domain10.com" - odxxxxxxxxxxxxx.com.br        Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:      True

   "Domain11.com" - rexxxxxxxxxx.com.br           Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: True    
                   Max message size:        0   Header:    Simple  Plus addressing: False
                   Max size of accounts:    0   Body:      Simple
                                                Algorithm: SHA256  Greylisting:      True
                                                Private key: c:\dkim\dkim-Domain11.com-privatekey.txt
                                                Selector:    1567009180.redutodaluta

   "Domain12.com" - saxxxxxxxxxxx.com             Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:      True

   "Domain13.com" - vsxxxxxxx.com                 Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:      True
-----------------------------------------------------------------------------------------------

GLOBAL RULES
-----------------------------------------------------------------------------------------------

IP RANGES

IP: 127.0.0.1 - 127.0.0.1     Priority: 15     Name: My computer

  Allow connections                         Other
     SMTP:   True                              Antispam :   True
     POP3:   True                              Antivirus:   True !! ANTIVIRUS NOT CONFIGURED !!
     IMAP:   True                              SSL/TLS:    False

  Allow Deliveries from                     Require Authentication from
     Local To Local       -  True              Local To Local       - False
     Local To External    -  True              Local To External    - False
     External To Local    -  True              External To Local    - False
     External To External -  True              External To External -  True


IP: 0.0.0.0 - 255.255.255.255     Priority: 10     Name: Internet

  Allow connections                         Other
     SMTP:   True                              Antispam :   True
     POP3:   True                              Antivirus:   True !! ANTIVIRUS NOT CONFIGURED !!
     IMAP:   True                              SSL/TLS:    False

  Allow Deliveries from                     Require Authentication from
     Local To Local       -  True              Local To Local       -  True
     Local To External    -  True              Local To External    -  True
     External To Local    -  True              External To Local    - False
     External To External -  True              External To External -  True


------------------------------------------------------
AUTOBANNED Local Addresses:
    No entries

-----------------------------------------------------------------------------------------------

AUTOBAN
  Autoban Enabled: True       Max invalid logon attempts:      5
                              Minutes Before Reset:           30  (0,50 hours, 0,02 days)
                              Minutes to Autoban:             30  (0,50 hours, 0,02 days)

There is a total of 7 auto-ban IP ranges.
-----------------------------------------------------------------------------------------------

INCOMING RELAYS
   No entries
-----------------------------------------------------------------------------------------------

MIRRORING         Disabled
-----------------------------------------------------------------------------------------------

PROTOCOLS

SMTP
GENERAL             DELIVERY                  RFC COMPLIANCE            ADVANCED
No. Connections:  0  No Retries:  4 Mins: 60   Plain Text:        False  Bind: 
                     Host: EXTERNAL.TLD        Empty sender:       True  Batch recipients:   100
Max Msg Size:204800  Relay:-                   Incorrect endings:  True  Use STARTTLS:      True
                     (none entered)            Disc. on invalid:   True  Delivered-To hdr: False
                                               Max number commands: 100  Loop limit:           5
                                                                         Recipient hosts:     15
  Routes:
     No routes defined.

POP3
  No. Connections: 0

IMAP
 GENERAL                   PUBLIC FOLDERS                    ADVANCED
  No. Connections:   0      Public folder name: #Public       IMAP sort:  True
                                                              IMAP Quota: True
                                                              IMAP Idle:  True
                                                              IMAP ACL:   True
                                                              Delim: "."
-----------------------------------------------------------------------------------------------

ANTISPAM

GENERAL                              SPAM TESTS              Score   SPAMASSASSIN
  Spam Mark:                  3       Use SPF:            True - 1    Use Spamassassin:    True
  Add X-HmailServer-Spam:     True    Check HELO host:    True - 1    Hostname:       127.0.0.1
  Add X-HmailServer-Reason:   True    Check MX records:   True - 1    Port:                 783
  Add X-HmailServer-Subject:  True    Verify DKIM:        True - 1    Use SA score: False -  10
              Subject Text: "[SPAM]"
  Spam delete threshold: 3         Maximum message size: 1024

DNSBL ENTRIES:
                  zen.spamhaus.org      Score: 3     Result: 127.0.0.2-8|127.0.0.10-11
                    bl.spamcop.net      Score: 3     Result: 127.0.0.2

SURBL ENTRIES:
                   multi.surbl.org      Score: 3

GREYLISTING:
  Greylisting:   True       Defer mins: 30       Days Unused: 1      Days Used: 36
                            Bypass SPF: True     Bypass A/MX: True

Greylist WHITELIST ENTRIES:
   No entries

Greylist DOMAINS enabled:
           Domain1.com
           Domain2.com
           Domain3.com
           Domain4.com
           Domain5.com
           Domain6.com
           Domain7.com
           Domain8.com
           Domain9.com
           Domain10.com
           Domain11.com
           Domain12.com
           Domain13.com

WHITELISTING
   No entries
-----------------------------------------------------------------------------------------------

ANTIVIRUS:  No application configured.

  Block Attachments: True
               *.bat             Batch processing file
               *.cmd             Command file for Windows NT
               *.com             Command
               *.cpl             Windows Control Panel extension
               *.csh             CSH script
               *.exe             Executable file
               *.inf             Setup file
               *.lnk             Windows link file
               *.msi             Windows Installer file
               *.msp             Windows Installer patch
               *.pif             Program Information file
               *.reg             Registration key
               *.scf             Windows Explorer command
               *.scr             Windows Screen saver
-----------------------------------------------------------------------------------------------

SSL CERTIFICATES
   No entries
-----------------------------------------------------------------------------------------------

SSL/TLS
             TLS 1.0 :   True
             TLS 1.1 :   True
             TLS 1.2 :   True
             TLS 1.3 :   True                Verify Remote SSL/TLS Certs:   True
SslCipherList  :

ECDHE-RSA-AES128-GCM-SHA256     - ECDHE-ECDSA-AES128-GCM-SHA256   - ECDHE-RSA-AES256-GCM-SHA384     
ECDHE-ECDSA-AES256-GCM-SHA384   - DHE-RSA-AES128-GCM-SHA256       - DHE-DSS-AES128-GCM-SHA256       
kEDH+AESGCM                     - ECDHE-RSA-AES128-SHA256         - ECDHE-ECDSA-AES128-SHA256       
ECDHE-RSA-AES128-SHA            - ECDHE-ECDSA-AES128-SHA          - ECDHE-RSA-AES256-SHA384         
ECDHE-ECDSA-AES256-SHA384       - ECDHE-RSA-AES256-SHA            - ECDHE-ECDSA-AES256-SHA          
DHE-RSA-AES128-SHA256           - DHE-RSA-AES128-SHA              - DHE-DSS-AES128-SHA256           
DHE-RSA-AES256-SHA256           - DHE-DSS-AES256-SHA              - DHE-RSA-AES256-SHA              
AES128-GCM-SHA256               - AES256-GCM-SHA384               - ECDHE-RSA-RC4-SHA               
ECDHE-ECDSA-RC4-SHA             - AES128                          - AES256                          
RC4-SHA                         - HIGH                            - !aNULL                          
!eNULL                          - !EXPORT                         - !DES                            
!3DES                           - !MD5                            - !PSK;                           
-----------------------------------------------------------------------------------------------

TCPIP PORTS                                         Connection Sec
               0.0.0.0         / 25    / SMTP   -   None                
               0.0.0.0         / 110   / POP3   -   None                
               0.0.0.0         / 143   / IMAP   -   None                
               0.0.0.0         / 587   / SMTP   -   None                
-----------------------------------------------------------------------------------------------

LOGGING      Logging Enabled: False

  Paths:-
    Error:    E:\hMailServer\Logs\ERROR_hmailserver_2020-06-04.log
    Event:    E:\hMailServer\Logs\hmailserver_events.log - Not present
    Awstats:  E:\hMailServer\Logs\hmailserver_awstats.log
-----------------------------------------------------------------------------------------------

SYSTEM TESTS

Database type: MSSQL Compact

IPv6 support is available in operating system.

Backup directory E:\hMailServerBackupEmails is writable.

Relative message paths are stored in the database for all messages.

-----------------------------------------------------------------------------------------------

HMAILSERVER.INI

[Directories]
Program folder:  E:\hMailServer\
Database folder: E:\hMailServer\Database
Data folder:     E:\hMailServer\Data
Log folder:      E:\hMailServer\Logs
Temp folder:     E:\hMailServer\Temp
Event folder:    E:\hMailServer\Events

[Database]
Type=              MSSQLCE
Username=           
PasswordEncryption=1
Port=              0
Server=             
Internal=          1
-----------------------------------------------------------------------------------------------

Generated by HMSSettingsDiagnostics v2.01, Hmailserver Forum.

klaytonfratoni2
New user
New user
Posts: 4
Joined: 2020-06-03 19:59

Re: About client sending SPAM

Post by klaytonfratoni2 » 2020-06-04 13:55

Due several external factors like remote MTA server, link speed etc... This test should delay some minutes! Be patient!


Please wait...

Mail relay testing
Connecting to 177.103.163.245 for relay test...
<<< 220 Bem-vindo ao servidor de e-mails da Collegare Propaganda
>>> HELO antispam-ufrj.pads.ufrj.br
<<< 250 Hello.
Relay test 1
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@antispam-ufrj.pads.ufrj.br>
<<< 250 OK
>>> RCPT TO:<relaytest@antispam-ufrj.pads.ufrj.br>
<<< 530 SMTP authentication is required.
Relay test 2
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@antispam-ufrj.pads.ufrj.br>
<<< 250 OK
>>> RCPT TO:relaytest@antispam-ufrj.pads.ufrj.br
<<< 530 SMTP authentication is required.
Relay test 3
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest>
<<< 550 The address is not valid.
Relay test 4
>>> RSET
<<< 250 OK
>>> MAIL FROM:<>
<<< 250 OK
>>> RCPT TO:<relaytest@antispam-ufrj.pads.ufrj.br>
<<< 530 SMTP authentication is required.
Relay test 5
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<relaytest@antispam-ufrj.pads.ufrj.br>
<<< 530 SMTP authentication is required.
Relay test 6
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@collegare.com.br>
<<< 250 OK
>>> RCPT TO:<relaytest@antispam-ufrj.pads.ufrj.br>
<<< 530 SMTP authentication is required.
Relay test 7
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<relaytest%antispam-ufrj.pads.ufrj.br@[177.103.163.245]>
<<< 530 SMTP authentication is required.
Relay test 8
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<relaytest%antispam-ufrj.pads.ufrj.br@collegare.com.br>
<<< 550 Unknown user
Relay test 9
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<"relaytest@antispam-ufrj.pads.ufrj.br">
<<< 550 A valid address is required.
Relay test 10
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<"relaytest%antispam-ufrj.pads.ufrj.br">
<<< 550 A valid address is required.
Relay test 11
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<relaytest@antispam-ufrj.pads.ufrj.br@[177.103.163.245]>
<<< 550 A valid address is required.
Relay test 12
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<"relaytest@antispam-ufrj.pads.ufrj.br"@[177.103.163.245]>
<<< 550 A valid address is required.
Relay test 13
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<relaytest@antispam-ufrj.pads.ufrj.br@collegare.com.br>
<<< 550 A valid address is required.
Relay test 14
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<@[177.103.163.245]:relaytest@antispam-ufrj.pads.ufrj.br>
<<< 550 A valid address is required.
Relay test 15
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<@collegare.com.br:relaytest@antispam-ufrj.pads.ufrj.br>
<<< 550 A valid address is required.
Relay test 16
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<antispam-ufrj.pads.ufrj.br!relaytest>
<<< 550 A valid address is required.
Relay test 17
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<antispam-ufrj.pads.ufrj.br!relaytest@[177.103.163.245]>
<<< 530 SMTP authentication is required.
Relay test 18
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<antispam-ufrj.pads.ufrj.br!relaytest@collegare.com.br>
<<< 550 Unknown user
Relay test 19
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<relaytest%antispam-ufrj.pads.ufrj.br@>
<<< 550 A valid address is required.
Relay test 20
>>> RSET
<<< 250 OK
>>> MAIL FROM:<spamtest@[177.103.163.245]>
<<< 250 OK
>>> RCPT TO:<relaytest@antispam-ufrj.pads.ufrj.br@>
<<< 550 A valid address is required.

>>> QUIT
<<< 221 goodbye
Relay test result
All tests performed, no relays accepted by remote host.
Copyright © 2000 Rafael Jorge Csura Szendrodi

klaytonfratoni2
New user
New user
Posts: 4
Joined: 2020-06-03 19:59

Re: About client sending SPAM

Post by klaytonfratoni2 » 2020-06-04 13:57

Is there anything that can help me improve?

In senderscore the reputation is very low

https://www.senderscore.org/report/?loo ... cated=true

User avatar
mattg
Moderator
Moderator
Posts: 20837
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: About client sending SPAM

Post by mattg » 2020-06-04 15:27

That's a marketer's test, it's likely not very 'real world' unless you send thousands of newsletters

You could add a SSL certificate (Lets Encrypt is free)
You should have an SPF record, a DKIM record and a DMARC record

You should appease gmail and Outlook365 by jumping through their hoops

and most importantly, you should not send spam (or let your users send spam)

More hints here
https://www.hmailserver.com/forum/viewt ... 21&t=32458
https://www.hmailserver.com/forum/viewt ... 21&t=29763
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
johang
Normal user
Normal user
Posts: 171
Joined: 2008-09-01 09:20

Re: About client sending SPAM

Post by johang » 2020-06-04 17:16

klaytonfratoni2 wrote:
2020-06-03 20:04
Today I have a server working well with hmailserver. I would like to know if it is possible to prevent any of my clients from being able to send SPAM through my server, I would like to prevent this completely, as I believe that eventually it can happen. Thank you.
if you want to run antispam on your users outgoing mail then you need something like assp https://sourceforge.net/projects/assp/ or mailcleaner https://www.mailcleaner.org/

assp = Anti Spam SMTP Proxy Server, multiplattform, and can be set up on same server as hmailserver ( but you have to swap ports around so hmailserver is not recieving over port 25 anymore, if you want it seamless for clients)
mailcleaner = appliance on separate linux box ( or virtual instance )

there are propabally others as well ..


if you let your users have plain text authentication, with no ssl/tls someone might steal their username passwords when they roam strange open wifi networks or if you dont https your webmail ...
but other then that ( which i got rid of myself a couple of years back ) i have had very little problems with client computers being hijacked to send spam.. so i am not worried about that .. might happen and i will have to deal with it then
( so i dont use assp or mailcleaner myself for outgoing mail )
___________________________________________________________end of the line
spam filter appliance gateway: www.mailcleaner.org

User avatar
mattg
Moderator
Moderator
Posts: 20837
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: About client sending SPAM

Post by mattg » 2020-06-05 01:12

johang wrote:
2020-06-04 17:16
i have had very little problems with client computers being hijacked to send spam.. so i am not worried about that .. might happen and i will have to deal with it then
That's happened a couple of times to me, even with really complex random passwords, and SSL connections
https://www.hmailserver.com/forum/viewt ... =8&t=30990

I now also limit the number of mail messages users can send in any 24 hour period, and I block international access to all ports except port 25. (IMAP and POP3 password guesses aren't counted for Autoban, only SMTP - and I think only port 25). Port 25 doesn't accept AUTH.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
johang
Normal user
Normal user
Posts: 171
Joined: 2008-09-01 09:20

Re: About client sending SPAM

Post by johang » 2020-06-05 08:58

mattg wrote:
2020-06-05 01:12
I now also limit the number of mail messages users can send in any 24 hour period, and I block international access to all ports except port 25. (IMAP and POP3 password guesses aren't counted for Autoban, only SMTP - and I think only port 25). Port 25 doesn't accept AUTH.

where do i limit number of mails per 24 hours ?
and do you get any notification when limit is reached ?
___________________________________________________________end of the line
spam filter appliance gateway: www.mailcleaner.org

User avatar
jimimaseye
Moderator
Moderator
Posts: 8584
Joined: 2011-09-08 17:48

Re: About client sending SPAM

Post by jimimaseye » 2020-06-05 09:17

johang wrote:
2020-06-05 08:58
mattg wrote:
2020-06-05 01:12
I now also limit the number of mail messages users can send in any 24 hour period, and I block international access to all ports except port 25. (IMAP and POP3 password guesses aren't counted for Autoban, only SMTP - and I think only port 25). Port 25 doesn't accept AUTH.

where do i limit number of mails per 24 hours ?
and do you get any notification when limit is reached ?
Probably with this: https://www.hmailserver.com/forum/viewt ... 20&t=28269
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
mattg
Moderator
Moderator
Posts: 20837
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: About client sending SPAM

Post by mattg » 2020-06-05 22:51

Sam sort of thing
Mine is a little different - but yes same concept

I write to the database for all messages sent, and check the database for sending in last 24 hours before allowing message to send. I remove old database entries more than three days old.

All rejections FROM a local account are notified to the admin of the server (me)

I can set different number of messages as a limit for each user in my script
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

palinka
Senior user
Senior user
Posts: 1942
Joined: 2017-09-12 17:57

Re: About client sending SPAM

Post by palinka » 2020-06-05 23:31

johang wrote:
2020-06-05 08:58
where do i limit number of mails per 24 hours ?
and do you get any notification when limit is reached ?
You might be interested in this outgoing limit too. I did the whole thing in powershell. It uses SMS to alert users, though. If they get locked out, how else will they communicate back? :mrgreen:

Post Reply