[pfx] Re: Strengthen email system security

2024-05-24 Thread Matus UHLAR - fantomas via Postfix-users
Zen includes the "PBL" component, which consists largely of residential and mobile consumer IPs. On 24/05/24 02:12, Matus UHLAR - fantomas via Postfix-users wrote: Yes, but these are (usually) not considered valid clients, these should use submission/submissions(smtps) ports where reject_rbl_

[pfx] Re: Strengthen email system security

2024-05-24 Thread Allen Coates via Postfix-users
On 23/05/2024 14:45, Bill Cole via Postfix-users wrote: is rumored to have said: Don't accept mail from home networks. For example, use "reject_dbl_client zen.spamhaus.org".  For this you must use your own DNS resolver, not the DNSresolver from your ISP. On 23.05.24 07:00, Northwind via Pos

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Allen Coates via Postfix-users
On 24/05/2024 03:15, Peter via Postfix-users wrote: No you definately should disable auth on port 25 regardless.  It is possible for postscreen to pass a connection to smtpd and smtpd can *then* offer auth. To answer your original question, you can just set   -o smtpd_sasl_auth_enable=no in m

[pfx] Re: SASL reject force disconnect

2024-05-24 Thread Matus UHLAR - fantomas via Postfix-users
On 23.05.24 21:03, John Hill via Postfix-users wrote: I use Fail2Ban to block the failed IP. The script writes it into the nftables table immediately. I think this keeps Postfix waiting and times out, not a big deal. Is there a cli that my bash script could force disconnect the ip from Postfi

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Matus UHLAR - fantomas via Postfix-users
On 24/05/2024 03:15, Peter via Postfix-users wrote: No you definately should disable auth on port 25 regardless.  It is possible for postscreen to pass a connection to smtpd and smtpd can *then* offer auth. To answer your original question, you can just set   -o smtpd_sasl_auth_enable=no in m

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Benny Pedersen via Postfix-users
Allen Coates via Postfix-users skrev den 2024-05-24 11:51: Many moons ago I was told to put "smtpd_sasl_auth_enable=no"  in main.cf, blocking the function everywhere, and then put "-o smtpd_sasl_auth_enable=yes" in the submission stanza(s) in master.cf, expressly enabling it *just* there. th

[pfx] rspamd bugs ?

2024-05-24 Thread Benny Pedersen via Postfix-users
Authentication-Results list.sys4.de; dkim=pass header.d=junc.eu; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=junc.eu policy.dmarc=reject where comes REJECT from ? ___ Postfix-users mailing list -- postfix-us

[pfx] Re: SASL reject force disconnect

2024-05-24 Thread John Hill via Postfix-users
What command do you use to reset the connection? On 5/24/24 6:18 AM, Matus UHLAR - fantomas via Postfix-users wrote: On 23.05.24 21:03, John Hill via Postfix-users wrote: I use Fail2Ban to block the failed IP. The script writes it into the nftables table immediately. I think this keeps Postfi

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Northwind via Postfix-users
so, in main.cf: smtpd_sasl_auth_enable=no then in master.cf: submission inet n - y - - smtpd -o smtpd_sasl_auth_enable=yes Am I right? does this disable sasl_auth for port 25, but still authorize users on port 587/465? Thanks a lot. Many moons ago I was tol

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Benny Pedersen via Postfix-users
Northwind via Postfix-users skrev den 2024-05-24 14:17: so, in main.cf: smtpd_sasl_auth_enable=no comment this out in main.cf, it already default no then in master.cf: submission inet n - y - - smtpd -o smtpd_sasl_auth_enable=yes Am I right? yes does this

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Northwind via Postfix-users
root@mx:/etc/postfix# vi main.cf root@mx:/etc/postfix# vi master.cf root@mx:/etc/postfix# service postfix restart i have comment out this line in main.cf: #smtpd_sasl_auth_enable = yes And enable this in master.cf: submission inet n - y - - smtpd -o smtpd_sasl_aut

[pfx] how does smtpd know the connection is a submission request, or a MX request?

2024-05-24 Thread Northwind via Postfix-users
my guess, submission clients were using ehlo, and a mx client uses helo command. so postfix differ them based on this command? regards. ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@post

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Benny Pedersen via Postfix-users
Northwind via Postfix-users skrev den 2024-05-24 14:37: and restarted postfix. now I think it should be working. telnet localhost 25 ehlo localhost if you see AUTH in ehlo results it not done yet no AUTH results take another beer :) ___ Postfix-us

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Northwind via Postfix-users
ehlo localhost.localdomain 250-mx.domain.xyz 250-PIPELINING 250-SIZE 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-DSN 250 CHUNKING no AUTH was there. so it should be working. :) if you see AUTH in ehlo results it not done yet _

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Stephan Seitz via Postfix-users
Am Fr, Mai 24, 2024 at 20:48:16 +0800 schrieb Northwind via Postfix-users: ehlo localhost.localdomain 250-mx.domain.xyz 250-PIPELINING 250-SIZE 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-DSN 250 CHUNKING no AUTH was there. so it should be working. :) Carefull, if y

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Benny Pedersen via Postfix-users
Stephan Seitz via Postfix-users skrev den 2024-05-24 15:01: Carefull, if you have „smtpd_tls_auth_only = yes” (I think), then you’ll see AUTH after STARTTLS… port 25 must not be tls only if its needed use another port for tls only ___ Postfix-use

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Erwan David via Postfix-users
Le 24/05/2024 à 14:17, Northwind via Postfix-users a écrit : so, in main.cf: smtpd_sasl_auth_enable=no then in master.cf: submission inet n   -   y   -   -   smtpd   -o smtpd_sasl_auth_enable=yes Am I right? does this disable sasl_auth for port 25, but still authorize use

[pfx] Re: SASL reject force disconnect

2024-05-24 Thread Matus UHLAR - fantomas via Postfix-users
On 24.05.24 07:36, John Hill via Postfix-users wrote: What command do you use to reset the connection? no command, just rule in OUTPUT chain: 1710 649K REJECT 6-- * * 0.0.0.0/00.0.0.0/0 tcp spt:25 match-set block-smtp dst reject-with icmp-port-unre

[pfx] Re: how does smtpd know the connection is a submission request, or a MX request?

2024-05-24 Thread Matus UHLAR - fantomas via Postfix-users
On 24.05.24 20:41, Northwind via Postfix-users wrote: my guess, submission clients were using ehlo, and a mx client uses helo command. so postfix differ them based on this command? EHLO is the extended HELO, supports SMTP extensions. Mail clients just like servers may use either, but nowadays

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Northwind via Postfix-users
Thank you so much. This is really important. > > Le 24/05/2024 à 14:17, Northwind via Postfix-users a écrit : > > > > > so, in main.cf: > > > > smtpd_sasl_auth_enable=no > > > > then in master.cf: > > > > submission inet n   -   y   -   -   smtpd > > > >   -o smtp

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Matus UHLAR - fantomas via Postfix-users
Stephan Seitz via Postfix-users skrev den 2024-05-24 15:01: Carefull, if you have „smtpd_tls_auth_only = yes” (I think), then you’ll see AUTH after STARTTLS… On 24.05.24 15:12, Benny Pedersen via Postfix-users wrote: port 25 must not be tls only if its needed use another port for tls only t

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Stephan Seitz via Postfix-users
Am Fr, Mai 24, 2024 at 15:12:31 +0200 schrieb Benny Pedersen via Postfix-users: Stephan Seitz via Postfix-users skrev den 2024-05-24 15:01: Carefull, if you have „smtpd_tls_auth_only = yes” (I think), then you’ll see AUTH after STARTTLS… port 25 must not be tls only I didn’t say that, but you

[pfx] Re: Strengthen email system security

2024-05-24 Thread Bill Cole via Postfix-users
On 2024-05-23 at 20:12:09 UTC-0400 (Fri, 24 May 2024 12:12:09 +1200) Peter via Postfix-users is rumored to have said: On 24/05/24 01:42, Bill Cole via Postfix-users wrote: [...] It is also helpful as a matter of system design to decouple user email addresses from their login usernames. For ex

[pfx] Re: rspamd bugs ?

2024-05-24 Thread Phil Stracchino via Postfix-users
On 5/24/24 06:51, Benny Pedersen via Postfix-users wrote: Authentication-Results list.sys4.de; dkim=pass header.d=junc.eu; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=junc.eu policy.dmarc=reject where comes REJECT from ? You might consider asking th

[pfx] Re: SASL reject force disconnect

2024-05-24 Thread John Hill via Postfix-users
On 5/24/24 9:33 AM, Matus UHLAR - fantomas via Postfix-users wrote: On 24.05.24 07:36, John Hill via Postfix-users wrote: What command do you use to reset the connection? no command, just rule in OUTPUT chain:  1710  649K REJECT 6    --  *  * 0.0.0.0/0    0.0.0.0/0  

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Northwind via Postfix-users
just to clarify, submissions is not required to set for enabling sasl_auth on port 465/587. i have tested it, no need to set a separated submissions. my postfix version: version 3.4.13 thanks submissions inet n   -   y   -   -   smtpd __

[pfx] Re: Strengthen email system security

2024-05-24 Thread Peter via Postfix-users
On 24/05/24 21:32, Matus UHLAR - fantomas via Postfix-users wrote: On 24.05.24 12:00, Peter via Postfix-users wrote: And the OP is referring to SASL AUTH attacks which are for submission, not MX connections. But some of those log lines mention postfix/smtpd, which means they happen on port 25

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Peter via Postfix-users
On 25/05/24 00:17, Northwind via Postfix-users wrote: so, in main.cf: smtpd_sasl_auth_enable=no Yes, although the setting is redundant here since it defaults to no anyways it's fine to explicitly state it if you want. then in master.cf: submission inet n   -   y   -   -

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Peter via Postfix-users
On 25/05/24 00:29, Benny Pedersen via Postfix-users wrote: Northwind via Postfix-users skrev den 2024-05-24 14:17: so, in main.cf: smtpd_sasl_auth_enable=no comment this out in main.cf, it already default no It's fine to have it, it's simply redundant. Peter ___

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Peter via Postfix-users
On 25/05/24 00:43, Benny Pedersen via Postfix-users wrote: Northwind via Postfix-users skrev den 2024-05-24 14:37: and restarted postfix. now I think it should be working. telnet localhost 25 ehlo localhost if you see AUTH in ehlo results it not done yet no AUTH results take another beer :)

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Peter via Postfix-users
On 25/05/24 01:12, Benny Pedersen via Postfix-users wrote: Stephan Seitz via Postfix-users skrev den 2024-05-24 15:01: Carefull, if you have „smtpd_tls_auth_only = yes” (I think), then you’ll see AUTH after STARTTLS… port 25 must not be tls only Since authentication should never be done on

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Peter via Postfix-users
On 25/05/24 09:50, Northwind via Postfix-users wrote: just to clarify, submissions is not required to set for enabling sasl_auth on port 465/587. i have tested it, no need to set a separated submissions. Incorrect. submission is *only* port 587, submissions is port 465. my postfix version

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Peter via Postfix-users
On 25/05/24 01:37, Matus UHLAR - fantomas via Postfix-users wrote: He mentioned that on postfix with "smtpd_tls_auth_only=yes" (the default) authentication is only available when TLS is active The default is no, but it is very common to have it set to yes. Peter __

[pfx] Re: disable authentication on port 25

2024-05-24 Thread Northwind via Postfix-users
yes I am using smtps as service name indeed. and smtps has -o smtpd_sasl_auth_enable=yes enabled. Thanks peter. On postfix 3.4 submissions was actually called smtps so you want to enable it in the smtps section (there won't be a submissions entry in your master.cf unless you added it). _