private/????????????????????????????????

2018-05-09 Thread Erwin van de Pol
List, I have got a really strange issue with my transport table: I use a regexp transport table, which contains about 100 entries. When sending an email to a specific address: t...@bla.blabla.com I get following error: postfix/qmgr[12390]: warning: connect to transport

Log connection time on smtpd disconnect

2018-05-09 Thread Markus Benning
Hi, i recently had to analyse slow/long held connections on postfix servers. Parsing the logs for connect/disconnect lines can take some time if you have a lot of logs. So i patched the smtpd to log the connection time with the disconnect stats: May 9 10:30:07 server01 postfix/smtpd[1234]:

Re: Patch: NULL pointer deref in pcf_check_dbms_client() with unreadable map file

2018-05-09 Thread Wietse Venema
Viktor Dukhovni: > - if ((fp = vstream_fopen(cf_file, O_RDONLY, 0)) == 0 > - && errno != EACCES) { > - msg_warn("open \"%s\" configuration \"%s\": %m", > - dp->db_type, cf_file); > + if ((fp = vstream_fopen(cf_file, O_RDONLY, 0)) == 0) { > + if

RE: Ptr DNS and domains

2018-05-09 Thread Fazzina, Angelo
Hi, I would think if you are relaying mail for multiple domains then you may not need to. I relay/handle mail for many sub domains of uconn.edu and some don’t have PTR records. If it is not a sub domain I think you should follow best practice, and my guess is yes you want DNS configured as

Re: Subject Regular expressión

2018-05-09 Thread Ghislain Adnet
hi, Warnign : no regex will work if the subject is encoded, with more and more emoji and UTF8/accents in them your success rate will be low if you do not control the subject type (plain text). regards, Ghislain.

Ptr DNS and domains

2018-05-09 Thread Tobias Koeck
Hi, if I want to use several domains on my Postfix server do every domain need a unique PTR DNS entry to an unique IP or is it enough to setup $myhostname to the main domain? smtp_helo_name = $myhostname smtpd_proxy_ehlo = $myhostname Greetings Tobias

Re: Ptr DNS and domains

2018-05-09 Thread Viktor Dukhovni
> On May 9, 2018, at 11:36 AM, Tobias Koeck wrote: > > if I want to use several domains on my Postfix server do every domain need a > unique PTR DNS entry to an unique IP or is it enough to setup $myhostname to > the main domain? 1. Though IP addresses can map to

Re: Ptr DNS and domains

2018-05-09 Thread Tobias Koeck
On Wed, May 9, 2018 at 5:59 PM, Viktor Dukhovni wrote: > > > >Publish exactly one primary name for each IP address via a single PTR > record. > Sounds great but doesn't that mean I need exactly one unique public IP for every domain? If I 'skip' the PTR records

Re: Subject Regular expressión

2018-05-09 Thread Petri Riihikallio
> i check this regex with grep, it work fine but in postfix no. > > grep -E "^Reference No: PP-[0-9][0-9][0-9]+(-[0-9]+)*.$" test.txt > > Reference No: PP-425-168-292 > > warning: header Subject: Reference No: PP-425-168-292 > > /^Subject: ^Reference No: PP-[0-9][0-9][0-9]+(-[0-9]+)*.$/

Re: Subject Regular expressión

2018-05-09 Thread Emanuel
here again :-( i need match this: Reference No: PP-425-168-292 I use this regex: ^Reference No: PP-[0-9][0-9][0-9]+(-[0-9]+)*. but not work. i check this regex with grep, it work fine but in postfix no. grep -E "^Reference No: PP-[0-9][0-9][0-9]+(-[0-9]+)*.$" test.txt Reference No:

Re: Ptr DNS and domains

2018-05-09 Thread Viktor Dukhovni
> On May 9, 2018, at 12:11 PM, Tobias Koeck wrote: > >> Publish exactly one primary name for each IP address via a single PTR record. > > Sounds great but doesn't that mean I need exactly one unique public IP for > every domain? If I 'skip' the PTR records completely

verify mail fom after authentication

2018-05-09 Thread Stanislas LEVEAU
Hi, i would like verify mail from address after authentication. I set up a ldap authentication for my users that works very well. it's ok smtp inet  n   -   n   -   -   smtpd     -o smtpd_sasl_auth_enable=yes     -o smtpd_sasl_local_domain=ac-caen.fr     -o

Re: private/????????????????????????????????

2018-05-09 Thread Viktor Dukhovni
> On May 9, 2018, at 5:26 AM, Erwin van de Pol wrote: > > I use a regexp transport table, which contains about 100 entries. Many users struggle to produce robust regular expressions, this is best avoided. > When sending an email to a specific address:

dkim appair twice

2018-05-09 Thread Maurizio Caloro
Hello Please i dont understand why me dkim result will appair twice ? DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=caloro.ch; s=mail; t=1525915627; bh=o/rYrKxw/+ndhuZDfXCm7/KqiRRQm1XdBuvSJRaf+S8=; h=From:To:Subject:Date:From;

Re: Log connection time on smtpd disconnect

2018-05-09 Thread @lbutlr
On 2018-05-09 (02:46 MDT), Markus Benning wrote: > > May 9 10:30:07 server01 postfix/smtpd[1234]: disconnect from > remotehost.example.com[1.2.3.4] ehlo=1 mail=1 rcpt=0/1 commands=2/3 > conn_time=13 > > (connection took 13 seconds) > > Would this be usefull for others

Re: Log connection time on smtpd disconnect

2018-05-09 Thread Viktor Dukhovni
> On May 9, 2018, at 11:00 PM, @lbutlr wrote: > > How much does this differ from the value in delays= ? It is unrelated. -- Viktor.

Re: dkim appair twice

2018-05-09 Thread Benny Pedersen
Maurizio Caloro skrev den 2018-05-10 04:04: Please i dont understand why me dkim result will appair twice ? this happens when opendkim does not know whats is originating mails or incomming mails the last one is resulting in forged signing # cat main.cf milter_opendkim =