Re: Having unexpected results using sender_canonical_maps

2021-11-04 Thread sruckh
On 2021-11-04 12:36, Viktor Dukhovni wrote: This is an acceptable work-around for an internal mailhub forwarding mail from sloppily/un configured internal machines. To really dot the i's and cross the t's, it should be hardened to also handle quoted address forms:

Re: Having unexpected results using sender_canonical_maps

2021-11-04 Thread sruckh
On 2021-11-04 11:20, Viktor Dukhovni wrote: # This only matches valid multi-label DNS names. What should happen # with invalid forms (e.g., , )? # if !/@other\.domain$/ /^(.*)@([a-z0-9](-*[a-z0-9]+)*)\.[a-z0-9]/ ${1}+${2}@other.domain endif This appears to do exactly

Re: Having unexpected results using sender_canonical_maps

2021-11-04 Thread sruckh
On 2021-11-04 12:17, Jaroslaw Rafa wrote: Dnia 4.11.2021 o godz. 10:52:03 sru...@gemneye.org pisze: I am trying to re-write sender email address n...@host.some.domain to be name+host@other.domain. Is this only one particular some.domain or are there different domains? Because if there's only

Re: Having unexpected results using sender_canonical_maps

2021-11-04 Thread sruckh
On 2021-11-04 11:20, Viktor Dukhovni wrote: # Presumably this is internal only, and never butchers external # envelope sender addresses. Perhaps mention why it is OK to lop # off the parent domain suffix of the original sender domain... In a typical Linux configuration where you

Re: Having unexpected results using sender_canonical_maps

2021-11-04 Thread sruckh
On 2021-11-04 11:20, Viktor Dukhovni wrote: On Thu, Nov 04, 2021 at 10:52:03AM -0700, sru...@gemneye.org wrote: In main.cf I have: sender_canonical_classes = envelope_sender sender_canonical_maps = pcre:/etc/postfix/generic-pcre In /etc/postfix/generic-pcre I have: /^(.*)@(\w+).([.\w]+)/

Re: Having unexpected results using sender_canonical_maps

2021-11-04 Thread sruckh
On 2021-11-04 11:36, Wietse Venema wrote: sru...@gemneye.org: I am trying to re-write sender email address n...@host.some.domain to be name+host@other.domain. In main.cf I have: sender_canonical_classes = envelope_sender sender_canonical_maps = pcre:/etc/postfix/generic-pcre canonical_maps

Having unexpected results using sender_canonical_maps

2021-11-04 Thread sruckh
I am trying to re-write sender email address n...@host.some.domain to be name+host@other.domain. In main.cf I have: sender_canonical_classes = envelope_sender sender_canonical_maps = pcre:/etc/postfix/generic-pcre In /etc/postfix/generic-pcre I have: /^(.*)@(\w+).([.\w]+)/

Re: Sender Address Rewrite (dyamic mapping with variables)

2021-06-11 Thread sruckh
On 2021-06-11 16:23, Viktor Dukhovni wrote: Unless stated otherwise, all Postfix features that support table lookups work with all table drivers. In a few cases there are security restrictions on the use of ${n} substitutions regexp/pcre tables, these are documented. When the documentation

Re: Sender Address Rewrite (dyamic mapping with variables)

2021-06-11 Thread sruckh
On 2021-06-11 15:12, Viktor Dukhovni wrote: I will make a bold guess that the real problem you're trying to solve dealing with mail from "root" and similar system users, where in a network of null-client hosts delivering all mail to a central mail hub, you want the sender address to clearly

Sender Address Rewrite (dyamic mapping with variables)

2021-06-11 Thread sruckh
Can I use a smtp_generic_map rewrite to do something like this?? @local.domain $user-$hostname@some.domain Where user (actual user who is sending mail) and hostname (short hostname of server) are substituted in the map? Most of the examples I looked at where doing static re-writing, and

Bounced Messages -- LDA / Dovecot / Postfix

2018-03-29 Thread sruckh
I am not totally even sure this is a Postfix issue, but since the error is presented as "postfix" and I was not able to find answer elsewhere I thought I would ask here. I recently discovered that delivery of bounced messages is not working. Of course as no messages were being delivered I

[SOLVED] relayhost GMAIL submission (port 587)

2017-10-26 Thread sruckh
On 2017-10-26 11:23, wie...@porcupine.org wrote: Viktor Dukhovni: > On Oct 26, 2017, at 12:12 PM, sru...@gemneye.org wrote: > > #relayhost = [smtp.gmail.com]:587 > #smtpd_sasl_auth_enable = yes Look closely, that line has "smtpd_..." while all the ones below have "smtp_...". Check the docs.

relayhost GMAIL submission (port 587)

2017-10-26 Thread sruckh
I have read several guides from the internet including the ones from postfix forums. It would appear that several people have configured their postfix environments to use GMAIL as a relayhost and to use port 587 for communication. Currently my relay host is setup for my ISP's email server