Re: Logging - Handling of Aliases

2021-08-19 Thread raf
On Thu, Aug 19, 2021 at 09:27:10AM -0400, Wietse Venema wrote: > raf: > > I take it that milters must work too, but they sound > > like much more effort. You need to write a whole other > > program (securely). > > No. You write little functions in a common language (python, perl, > java,

Re: Logging - Handling of Aliases

2021-08-19 Thread Wietse Venema
raf: > I take it that milters must work too, but they sound > like much more effort. You need to write a whole other > program (securely). No. You write little functions in a common language (python, perl, java, rust, haskell?, php, C) and leave the rest up to a code library. Wietse

Re: Logging - Handling of Aliases

2021-08-19 Thread raf
On Wed, Aug 18, 2021 at 12:07:07PM -0700, Ron Garret wrote: > On Aug 18, 2021, at 11:55 AM, Viktor Dukhovni > wrote: > > > If you want different processing for inbound and outbound mail, > > use separate Postfix instances configured appropriately to the > > task at hand. > > There is a

Re: Logging - Handling of Aliases

2021-08-18 Thread Viktor Dukhovni
On Wed, Aug 18, 2021 at 12:27:36PM -0700, Ron Garret wrote: > > Milters are primarily for content filtering, > > Sure, but... > > > they don't or shouldn’t affect address rewriting and message routing. > > That doesn’t make sense to me. One of the main uses of a milter is to > sequester mail

Re: Logging - Handling of Aliases

2021-08-18 Thread Ron Garret
On Aug 18, 2021, at 12:13 PM, Viktor Dukhovni wrote: >> On 18 Aug 2021, at 3:07 pm, Ron Garret wrote: >> >>> If you want different processing for inbound and outbound mail, >>> use separate Postfix instances configured appropriately to the >>> task at hand. >> >> There is a useful

Re: Logging - Handling of Aliases

2021-08-18 Thread Viktor Dukhovni
> On 18 Aug 2021, at 3:07 pm, Ron Garret wrote: > >> If you want different processing for inbound and outbound mail, >> use separate Postfix instances configured appropriately to the >> task at hand. > > There is a useful distinction to be made between mail that is injected into > the system

Re: Logging - Handling of Aliases

2021-08-18 Thread Viktor Dukhovni
> On 18 Aug 2021, at 3:01 pm, post...@ptld.com wrote: > >> A useful rubric to keep in mind is: >> * There's no such thing as outbound mail, >>all mail comes in, and then it goes out... >> Any notion of incoming or outgoing is a mental model you overlay on >> your use of the Postfix MTA, the

Re: Logging - Handling of Aliases

2021-08-18 Thread Ron Garret
On Aug 18, 2021, at 11:55 AM, Viktor Dukhovni wrote: > If you want different processing for inbound and outbound mail, > use separate Postfix instances configured appropriately to the > task at hand. There is a useful distinction to be made between mail that is injected into the system by

Re: Logging - Handling of Aliases

2021-08-18 Thread postfix
A useful rubric to keep in mind is: * There's no such thing as outbound mail, all mail comes in, and then it goes out... Any notion of incoming or outgoing is a mental model you overlay on your use of the Postfix MTA, the actual MTA is just a message switch. The expansion of virtual

Re: Logging - Handling of Aliases

2021-08-18 Thread Viktor Dukhovni
> On 18 Aug 2021, at 2:50 pm, post...@ptld.com wrote: > > It is an all or nothing situation? To not "expand" that means not having > alias lookup at all even for incoming messages? The fact i have virtual alias > lookup for incoming that means postfix will by default use that for outgoing? >

Re: Logging - Handling of Aliases

2021-08-18 Thread postfix
Don't expand the alias. I don't understand this. As far as i know, *IM* not expanding the alias. Is this a setting in postfix? Is this a default behavior? You are expanding the alias, by configuring a virtual(5) alias table entry with an expansion for the alias. To not expand the alias,

Re: Logging - Handling of Aliases

2021-08-18 Thread Viktor Dukhovni
> On 18 Aug 2021, at 2:41 pm, post...@ptld.com wrote: > >> Don't expand the alias. > > I don't understand this. As far as i know, *IM* not expanding the alias. > Is this a setting in postfix? Is this a default behavior? You are expanding the alias, by configuring a virtual(5) alias table entry

Re: Logging - Handling of Aliases

2021-08-18 Thread postfix
Is there anyway to prevent this behavior? Have the third server just send the email to who it was told to send it to, the alias address. Don't expand the alias. I don't understand this. As far as i know, *IM* not expanding the alias. Is this a setting in postfix? Is this a default behavior?

Re: Logging - Handling of Aliases

2021-08-18 Thread Wietse Venema
post...@ptld.com: > > Im confused by this situation. Two separate independent servers both > > running same version of postfix and both setup the same way with > > virtual users and alias address stored in SQL. > > Okay, i think i figured out what is going on. On the second server that > im

Re: Logging - Handling of Aliases

2021-08-18 Thread Wietse Venema
post...@ptld.com: > Im confused by this situation. Two separate independent servers both > running same version of postfix and both setup the same way with virtual > users and alias address stored in SQL. > > main.cf: > virtual_transport = lmtp:unix:private/dovecot-lmtp >

Re: Logging - Handling of Aliases

2021-08-18 Thread postfix
Im confused by this situation. Two separate independent servers both running same version of postfix and both setup the same way with virtual users and alias address stored in SQL. Okay, i think i figured out what is going on. On the second server that im sending email to, im sending from a

Logging - Handling of Aliases

2021-08-18 Thread postfix
Im confused by this situation. Two separate independent servers both running same version of postfix and both setup the same way with virtual users and alias address stored in SQL. main.cf: virtual_transport = lmtp:unix:private/dovecot-lmtp virtual_mailbox_maps =