Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
dae06b6d
Commit
dae06b6d
authored
4 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
More log message updates.
Putting IP addresses first.
parent
2fcdf31c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/mailsrvr.c
+8
-8
8 additions, 8 deletions
src/sbbs3/mailsrvr.c
with
8 additions
and
8 deletions
src/sbbs3/mailsrvr.c
+
8
−
8
View file @
dae06b6d
...
...
@@ -3102,7 +3102,7 @@ static void smtp_thread(void* arg)
ulong
banned
=
loginBanned
(
&
scfg
,
startup
->
login_attempt_list
,
socket
,
host_name
,
startup
->
login_attempt
,
&
attempted
);
if
(
banned
)
{
char
ban_duration
[
128
];
lprintf
(
LOG_NOTICE
,
"%04d %s !TEMPORARY BAN
of %s
(%lu login attempts, last: %s) - remaining: %s"
lprintf
(
LOG_NOTICE
,
"%04d %s
[%s]
!TEMPORARY BAN (%lu login attempts, last: %s) - remaining: %s"
,
socket
,
client
.
protocol
,
host_ip
,
attempted
.
count
-
attempted
.
dupes
,
attempted
.
user
,
seconds_to_str
(
banned
,
ban_duration
));
mail_close_socket
(
&
socket
,
&
session
);
thread_down
();
...
...
@@ -3141,8 +3141,8 @@ static void smtp_thread(void* arg)
/* SPAM Filters (mail-abuse.org) */
dnsbl_result
.
s_addr
=
dns_blacklisted
(
socket
,
client
.
protocol
,
&
smtp
.
client_addr
,
host_name
,
dnsbl
,
dnsbl_ip
);
if
(
dnsbl_result
.
s_addr
)
{
lprintf
(
LOG_NOTICE
,
"%04d %s BLACKLISTED SERVER on %s: %s
[%s]
= %s"
,
socket
,
client
.
protocol
,
dnsbl
,
host_name
,
dnsbl_ip
,
inet_ntoa
(
dnsbl_result
));
lprintf
(
LOG_NOTICE
,
"%04d %s
[%s]
BLACKLISTED SERVER on %s: %s = %s"
,
socket
,
client
.
protocol
,
dnsbl_ip
,
dnsbl
,
host_name
,
inet_ntoa
(
dnsbl_result
));
if
(
startup
->
options
&
MAIL_OPT_DNSBL_REFUSE
)
{
SAFEPRINTF2
(
str
,
"Listed on %s as %s"
,
dnsbl
,
inet_ntoa
(
dnsbl_result
));
spamlog
(
&
scfg
,
(
char
*
)
client
.
protocol
,
"SESSION REFUSED"
,
str
,
host_name
,
dnsbl_ip
,
NULL
,
NULL
);
...
...
@@ -3723,7 +3723,7 @@ static void smtp_thread(void* arg)
length
=
filelength
(
fileno
(
msgtxt
))
-
ftell
(
msgtxt
);
if
(
startup
->
max_msg_size
&&
length
>
startup
->
max_msg_size
)
{
lprintf
(
LOG_WARNING
,
"%04d %s %s !Message size (%lu) from %s to %s exceeds maximum: %u bytes"
lprintf
(
LOG_WARNING
,
"%04d %s %s !Message size (%lu) from %s to
<
%s
>
exceeds maximum: %u bytes"
,
socket
,
client
.
protocol
,
client_id
,
length
,
sender_info
,
rcpt_addr
,
startup
->
max_msg_size
);
sockprintf
(
socket
,
client
.
protocol
,
session
,
"552 Message size (%lu) exceeds maximum: %u bytes"
,
length
,
startup
->
max_msg_size
);
...
...
@@ -3850,11 +3850,11 @@ static void smtp_thread(void* arg)
if
(
is_spam
||
((
startup
->
options
&
MAIL_OPT_DNSBL_IGNORE
)
&&
(
dnsbl_recvhdr
||
dnsbl_result
.
s_addr
)))
{
free
(
msgbuf
);
if
(
is_spam
)
lprintf
(
LOG_NOTICE
,
"%04d %s %s !IGNORED SPAM MESSAGE from %s to %s (%lu total)"
lprintf
(
LOG_NOTICE
,
"%04d %s %s !IGNORED SPAM MESSAGE from %s to
<
%s
>
(%lu total)"
,
socket
,
client
.
protocol
,
client_id
,
sender_info
,
rcpt_addr
,
++
stats
.
msgs_ignored
);
else
{
SAFEPRINTF2
(
str
,
"Listed on %s as %s"
,
dnsbl
,
inet_ntoa
(
dnsbl_result
));
lprintf
(
LOG_NOTICE
,
"%04d %s %s !IGNORED MAIL from %s to %s from server: %s (%lu total)"
lprintf
(
LOG_NOTICE
,
"%04d %s %s !IGNORED MAIL from %s to
<
%s
>
from server: %s (%lu total)"
,
socket
,
client
.
protocol
,
client_id
,
sender_info
,
rcpt_addr
,
str
,
++
stats
.
msgs_ignored
);
spamlog
(
&
scfg
,
(
char
*
)
client
.
protocol
,
"IGNORED"
,
str
,
host_name
,
dnsbl_ip
,
rcpt_addr
,
reverse_path
);
...
...
@@ -6334,8 +6334,8 @@ void DLLCALL mail_server(void* arg)
if
(
connections
-
logins
>=
(
int
)
startup
->
max_concurrent_connections
&&
!
is_host_exempt
(
&
scfg
,
host_ip
,
/* host_name */
NULL
))
{
lprintf
(
LOG_NOTICE
,
"%04d %s !Maximum concurrent connections without login (%u) exceeded
by host: %s
(%lu total)"
,
client_socket
,
servprot
,
startup
->
max_concurrent_connections
,
host_ip
,
++
stats
.
connections_exceeded
);
lprintf
(
LOG_NOTICE
,
"%04d %s
[%s]
!Maximum concurrent connections without login (%u) exceeded (%lu total)"
,
client_socket
,
servprot
,
host_ip
,
startup
->
max_concurrent_connections
,
++
stats
.
connections_exceeded
);
sockprintf
(
client_socket
,
servprot
,
session
,
is_smtp
?
smtp_error
:
pop_error
,
"Maximum connections exceeded"
);
mail_close_socket
(
&
client_socket
,
&
session
);
continue
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment