Re: sender address verification

2021-08-26 Thread postfix
Verify(8) wont attempt to retry timeouts until the address_verify_negative_refresh_time has lapsed? Correct? Anyway around this so timeouts would be re-tried on each delivery attempt? Or would I have to disable the negative database? Is there a difference between a timeout vs a successful rcpt

Re: sender address verification

2021-08-26 Thread Wietse Venema
post...@ptld.com: > Are there any tools for the address verification database? To see what > addresses are in the positive/negative sides or manage them? > > When an attempt to verify an address times out because the sender mail > server didn't respond, its logged as: > 450 4.1.7 Sender address

Re: Error appended to bounce.cf

2021-08-26 Thread Pau Amma
On 2021-08-26 14:43, Wietse Venema wrote: post...@ptld.com: How can i get postfix to use line breaks and format closer to how other servers do it? Sorry, Postfix does not support ASCII art. Seriously, only nerds care about multiline server responses. *delurks* Another reason to avoid

sender address verification

2021-08-26 Thread postfix
Are there any tools for the address verification database? To see what addresses are in the positive/negative sides or manage them? When an attempt to verify an address times out because the sender mail server didn't respond, its logged as: 450 4.1.7 Sender address rejected: unverified

Re: Send Delay Warning only to postmaster

2021-08-26 Thread Matt Corallo
> On Aug 26, 2021, at 13:29, Viktor Dukhovni wrote: > > On Thu, Aug 26, 2021 at 01:16:25PM -0700, Matt Corallo wrote: > >> I’m not particularly worried about congestion on this server, but maybe >> delay is the wrong warning to focus on - I’d like postmaster notifications >> for some

Re: Send Delay Warning only to postmaster

2021-08-26 Thread Viktor Dukhovni
On Thu, Aug 26, 2021 at 04:29:27PM -0400, Viktor Dukhovni wrote: > You can start with something like: > > $ postqueue -j | > jq --argjson now "$(date +%s)" ' > ($now - .arrival_time) as $delay | > select (.queue_name == "deferred" and $delay > 300) | >

Re: Send Delay Warning only to postmaster

2021-08-26 Thread Viktor Dukhovni
On Thu, Aug 26, 2021 at 01:16:25PM -0700, Matt Corallo wrote: > I’m not particularly worried about congestion on this server, but maybe delay > is the wrong warning to focus on - I’d like postmaster notifications for some > temporary bounces, as they can indicate IP reputation rate-limits,

Re: Send Delay Warning only to postmaster

2021-08-26 Thread Matt Corallo
> On Aug 26, 2021, at 13:09, Viktor Dukhovni wrote: > >  >> On 26 Aug 2021, at 4:02 pm, Matt Corallo wrote: >> I’d like to set an aggressive warning delay but only warn postmaster, not >> the sender. It appears delay_warning_time is used for both sender-warnings >> and notify_classes, so

Re: Send Delay Warning only to postmaster

2021-08-26 Thread Viktor Dukhovni
> On 26 Aug 2021, at 4:02 pm, Matt Corallo wrote: > > I’d like to set an aggressive warning delay but only warn postmaster, not the > sender. It appears delay_warning_time is used for both sender-warnings and > notify_classes, so there doesn’t appear to be a way to do this. The delay_warning

Send Delay Warning only to postmaster

2021-08-26 Thread Matt Corallo
I’d like to set an aggressive warning delay but only warn postmaster, not the sender. It appears delay_warning_time is used for both sender-warnings and notify_classes, so there doesn’t appear to be a way to do this.

Re: Validating FROM address against users

2021-08-26 Thread postfix
[ May I ask you to capitalise your "I"s? That is, aside from inadvertent typos or honest mistakes, stick to standard US or UK (pick one) English orthography? ] I'm sorry, it's just my personal twist using little i's. If my suicide note has capital I's you know I didn't write it :) Out

Re: Validating FROM address against users

2021-08-26 Thread Viktor Dukhovni
On Thu, Aug 26, 2021 at 01:33:46PM -0400, post...@ptld.com wrote: > Something else strange, i have been trying to replicate this situation > using a dummy server to send my server a message with From: and To: > using the same invalid address. This time i got two reject messages in > the logs:

Re: Validating FROM address against users

2021-08-26 Thread Viktor Dukhovni
On Thu, Aug 26, 2021 at 12:57:14PM -0400, post...@ptld.com wrote: > NOQUEUE: reject: RCPT from unknown[196.188.245.169]: 550 5.1.0 > : Sender address rejected: User unknown in virtual > mailbox table; from= to= proto=ESMTP > helo=<[196.188.245.169]> The built-in defaults are:

Re: Validating FROM address against users

2021-08-26 Thread postfix
Something else strange, i have been trying to replicate this situation using a dummy server to send my server a message with From: and To: using the same invalid address. This time i got two reject messages in the logs: NOQUEUE: reject: RCPT from example2.com[IP]: 550 5.1.0 : Sender address

Validating FROM address against users

2021-08-26 Thread postfix
I observed a strange (to me) behavior and id like a better understanding of what is happening. I have smtpd_reject_unlisted_recipient = no I do not have reject_unlisted_recipient in any of the smtpd_*_restrictions I have a milter that checks the rcpt address against SQL and returns a custom

Re: Error appended to bounce.cf

2021-08-26 Thread Viktor Dukhovni
On Thu, Aug 26, 2021 at 11:22:51AM -0400, post...@ptld.com wrote: > And only nerds program mail servers from scratch and only nerds run > mail servers. So here we are, and i care. I care because this is > something that NON-nerds interact with and I do like to consider user > friendliness.

Re: Error appended to bounce.cf

2021-08-26 Thread Matus UHLAR - fantomas
On 26.08.21 10:16, post...@ptld.com wrote: At the end of the message body in bounce.cf postfix appends the error received from the mail server. It is not using line breaks \n like i expect it would. POSTFIX: : host smtp.example.com[IP] said: 550-5.5.1 Address

Re: Error appended to bounce.cf

2021-08-26 Thread postfix
And i forgot... Sorry, Postfix does not support ASCII art. Seriously, only nerds care about multiline server responses. I want to challenge this assertion. Postfix regularly artificially adds line breaks and even truncates responses based on an arbitrary length picked by the programmer.

Re: Error appended to bounce.cf

2021-08-26 Thread postfix
: 550: 5.5.1 Address u...@example.com does not exist 5.5.1 This is the text returned from main.cf:smtpd_reject_footer That does not match the server response. What do you mean does not match server response? Are you talking about "Address %s does not exist"? It is the response im

Re: Error appended to bounce.cf

2021-08-26 Thread Wietse Venema
post...@ptld.com: > At the end of the message body in bounce.cf postfix appends the error > received from the mail server. It is not using line breaks \n like i > expect it would. > > POSTFIX: > > : host smtp.example.com[IP] said: 550-5.5.1 Address >

Error appended to bounce.cf

2021-08-26 Thread postfix
At the end of the message body in bounce.cf postfix appends the error received from the mail server. It is not using line breaks \n like i expect it would. POSTFIX: : host smtp.example.com[IP] said: 550-5.5.1 Address u...@example.com does not exist 550 5.5.1 This is

Re: I have successfully configured SSL/TLS for Postfix SMTP outgoing mail server for a customer in Singapore on 25 Aug 2021 Wed

2021-08-26 Thread Turritopsis Dohrnii Teo En Ming
Noted with thanks On Thu, 26 Aug 2021 at 00:53, Gerald Galster wrote: > > > > Add the following firewall rules to /etc/sysconfig/iptables. This is > > to open ports for services/daemons listening on TCP ports 25, 465, and > > 587. > > /etc/sysconfig/iptables sounds like RHEL/CentOS, on Debian it

Re: I have successfully configured SSL/TLS for Postfix SMTP outgoing mail server for a customer in Singapore on 25 Aug 2021 Wed

2021-08-26 Thread Turritopsis Dohrnii Teo En Ming
Noted with thanks On Wed, 25 Aug 2021 at 23:21, Viktor Dukhovni wrote: > > On Wed, Aug 25, 2021 at 10:56:20PM +0800, Turritopsis Dohrnii Teo En Ming > wrote: > > > smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache > > smtp_tls_session_cache_database =

postmap:mysql + haproxy

2021-08-26 Thread natan
Hi I have one question. I use in postfix map like: sender_bcc_maps = proxy:mysql:/etc/postfix/mysql_sender_bcc_maps_user.cf My scenario server mysql is galera (3 nodes +haproxy) like: -nod1 -nod2 -nod3 balance roundrobin - works fine but when I set state to DRAIN (node 3) connections exists

Re: Mail spool issues with Postfix

2021-08-26 Thread raf
On Thu, Aug 26, 2021 at 05:11:10AM +, Rahul Kissoon wrote: > Thanks for the clarification. Though hmm, I'm still unsure as to why Postfix > is still storing emails in /var/mail then. On the local delivery server, the > domain matched $mydestination and mailbox_transport is configured to use

Re: automatic config reload

2021-08-26 Thread Zsombor B
Hi Wietse, Thanks for the explanation, now it's clear. Zsombor On 2021.08.25 03:54, Wietse Venema wrote: > Zsombor B: > > Hi All, > > > > > > We had a mail service outage caused by a storage issue (the volume > > with the custom config files went down) and postfix kept looking > > for