postfix startup sequence

2019-11-11 Thread Fourhundred Thecat
Hello, I am trying to understand the postfix startup sequence. I am using postfix 3.4.5 on Debian. /etc/init.d/postfix, the init script that is used to start postfix does not start master directly, but calls: /usr/sbin/postfix quiet-quick-start which in turn calls postfix-script. And than, p

Re: reject mail if dns and rdns differ

2019-11-11 Thread m3047
I (mostly) concur with what Bill Cole says (maybe I'd quibble with the "2nd clause" part). Here's a shopworn blade which is in my list of things to rewrite in Python one day: http://athena.m3047.net/pub/perl/mail-processing/realmailer.pl.txt You call it from e.g. procmail, or in other wo

Re: reject mail if dns and rdns differ

2019-11-11 Thread Bill Cole
On 11 Nov 2019, at 8:47, Matus UHLAR - fantomas wrote: On 11.11.19 14:27, ratatouille wrote: Received: from mail.namase.de (s1.bomberg.city [62.173.139.77]) I would like to reject incoming email if dns- and rdns-entries differ. Does this make sense and how could I achieve this? they do not

Re: reject mail if dns and rdns differ

2019-11-11 Thread Daniel Ryšlink
Hello! I believe you can achieve that by this restriction from "smtpd_client_restrictions" that can be included into the main.cf file: *reject_unknown_client_hostname* /(with Postfix < 2.3:// //   reject_unknown_client)// //  Reject the request when 1) the client IP address->na

Re: Problems with header checks

2019-11-11 Thread Wietse Venema
Stephan Seitz: > On Fr, Nov 08, 2019 at 03:31:05 +0100, Jaroslaw Rafa wrote: > >But in that case probably LDA is the best place to do such change. Some > >time ago I was doing something similar via procmail. > > Yes, I could do the same with procmail. But procmail will probably like > postfix us

Re: reject mail if dns and rdns differ

2019-11-11 Thread Matus UHLAR - fantomas
On 11.11.19 14:27, ratatouille wrote: Received: from mail.namase.de (s1.bomberg.city [62.173.139.77]) I would like to reject incoming email if dns- and rdns-entries differ. Does this make sense and how could I achieve this? they do not differ above. The IP 62.173.139.77, rDNS is s1.bomberg.ci

Re: Problems with header checks

2019-11-11 Thread Stephan Seitz
On Fr, Nov 08, 2019 at 03:31:05 +0100, Jaroslaw Rafa wrote: But in that case probably LDA is the best place to do such change. Some time ago I was doing something similar via procmail. Yes, I could do the same with procmail. But procmail will probably like postfix use the encoded subject, so I

reject mail if dns and rdns differ

2019-11-11 Thread ratatouille
Hello all! Received: from mail.namase.de (s1.bomberg.city [62.173.139.77]) I would like to reject incoming email if dns- and rdns-entries differ. Does this make sense and how could I achieve this? Kind regards Andreas