[pfx] smtp_header_checks and opendkim

2023-11-18 Thread Danil Smirnov via Postfix-users
Hi all, I want to manipulate the headers (add and replace) of the outgoing mail before the message is signed by Opendkim. If using smtp_header_checks I see that the signature is broken - probably because Opendkim has signed the message earlier in the pipeline. The signing is configured via the

[pfx] Re: how to rewrite domain on the fly before relaying

2023-08-31 Thread Danil Smirnov via Postfix-users
Thank you, Viktor! After adding "virtual_alias_domains=domain2.tld" it works as expected. Sincerely, Danil Smirnov On Thu, Aug 31, 2023 at 9:58 AM Viktor Dukhovni via Postfix-users < postfix-users@postfix.org> wrote: > On Thu, Aug 31, 2023 at 07:53:03AM +0200, Jaroslaw Raf

[pfx] Re: how to rewrite domain on the fly before relaying

2023-08-30 Thread Danil Smirnov via Postfix-users
Hi Wietse, Thank you for your response! On Wed, Aug 30, 2023 at 8:07 PM Wietse Venema via Postfix-users < postfix-users@postfix.org> wrote: > This is one of the purposes of virtual_alias_maps. > I tried this first - I've added "@domain2.tld @domain1.tld" to my virtual_alias_maps source file

[pfx] how to rewrite domain on the fly before relaying

2023-08-30 Thread Danil Smirnov via Postfix-users
Hi, I have a Postfix server that serves domain1.tld using transport_maps, local_recipient_maps, and relay_domains parameters in order to relay all incoming emails to the local LMPT listener. Now I want to receive emails @domain2.tld in the same Postfix server and rewrite them all to domain1.tld

Re: How to send 10 messages, per second, through my relayhost?

2022-09-01 Thread Danil Smirnov
On Thu, Sep 1, 2022 at 1:27 PM Wietse Venema wrote: > There is a missing colon: the syntax is randmap:{list...} > Great! It works now. :) Thank you, Wietse. Is it possible to confirm that the approach is working in the postfix logs? They look just the same way as without

Re: How to send 10 messages, per second, through my relayhost?

2022-09-01 Thread Danil Smirnov
postfix | Sep 01 08:05:20 test postfix/trivial-rewrite[190]: warning: sender_dependent_default_transport_maps lookup failure My postfix version is version 3.6.4. Sincerely, Danil Smirnov

Re: gradual shift of traffic

2022-02-15 Thread Danil Smirnov
On Tue, Feb 15, 2022 at 3:11 PM Wietse Venema wrote: > > Can this technique be used in case of "new.example" is the Postfix > itself, > > i.e. sending without the relay? > > You asked aobut warming up a new relayhost, so I gave a solution > for doing that. > Yes, and thank you for that. > >

Re: gradual shift of traffic

2022-02-15 Thread Danil Smirnov
Hi Wietse, Thank you very much for your answer! On Mon, Feb 14, 2022 at 5:55 PM Wietse Venema wrote: > The randmap() feature comes to mind. > > Instead of "relayhost = old.example" or "relayhost = new.example" use: > > default_transport = > randmap:{smtp:old.example,

gradual shift of traffic

2022-02-14 Thread Danil Smirnov
way to redirect e.g. 10% of traffic to another relay via postfix configs? I'm also thinking about having ten hosts in the MX record (9 are for the current server and 1 is for the new one) but it looks rather ugly... Any advice, please? With my best regards, Danil Smirnov

new postfix on centos 6.5

2013-12-14 Thread Danil Smirnov
Hi dear postfix users! From the version 2.7 we've got fantastic new feature - sender_dependent_default_transport_maps which allow sending mail with source IP addresses that depend on the envelope sender. This option is very useful for defining reverse dns parameter for each ip to let mail from

Re: new postfix on centos 6.5

2013-12-14 Thread Danil Smirnov
versions for Centos??? It would be best solution... 2013/12/14 DTNX Postmaster postmas...@dtnx.net: On 14 Dec 2013, at 15:41, Danil Smirnov danil.smir...@gmail.com wrote: From the version 2.7 we've got fantastic new feature - sender_dependent_default_transport_maps which allow sending mail