Re: Local address rewrite problem with postfix configuration and sender dependent relayhosts - ISP

2021-09-09 Thread raf
On Thu, Sep 09, 2021 at 09:44:35AM +0200, TTM wrote: > raf wrote: > >> main.cf > >> - > >> [...] > >> receive_override_options = no_address_mappings > > > >I could be wrong, but I don't think you want the above setting. > >Yo

Re: Local address rewrite problem with postfix configuration and sender dependent relayhosts - ISP

2021-09-09 Thread TTM
raf wrote: >> main.cf >> - >> [...] >> receive_override_options = no_address_mappings > >I could be wrong, but I don't think you want the above setting. >You have canonical address maps and virtual alias maps, and >this setting

Re: Local address rewrite problem with postfix configuration and sender dependent relayhosts - ISP

2021-09-08 Thread raf
On Wed, Sep 08, 2021 at 03:33:05PM +0200, fo...@gmx.de wrote: > Hello together, > I have "Ubuntu 20.04.3 LTS" on a raspberry pi 4, and I'm trying to config > postfix to rewrite local-addresses and use then sender-dependent relayhosts. > > Postfix is mail_version = 3.4.13 and i have a dynamic IP.

Re: Local address rewrite problem with postfix configuration and sender dependent relayhosts - ISP

2021-09-08 Thread TTM
Bernardo: >You canonical map has: > >Local_User_A@local.homenet us...@gmx.de >Local_User_B@local.homenet us...@gmail.com > >but according to the log your "from" is "ttm@ttmsacer.homenet". > >Your map doesn't contain/match anything related to "ttmsacer.homenet" (it only >has entries for "local.hom

Re: Local address rewrite problem with postfix configuration and sender dependent relayhosts - ISP

2021-09-08 Thread Bernardo Reino
On Wed, 8 Sep 2021, TTM wrote: Wietse: Without further information I can't say what mistake you made. Maybe you're looking at an old message that is already in the queue. What would be needed? After each test, I clear thee queue with "postsuper -d ALL". I'm wondering why postfix tries to del

Re: Local address rewrite problem with postfix configuration and sender dependent relayhosts - ISP

2021-09-08 Thread TTM
Wietse: >Without further information I can't say what mistake you made. Maybe >you're looking at an old message that is already in the queue. What would be needed? After each test, I clear thee queue with "postsuper -d ALL". I'm wondering why postfix tries to deliver the message directly to the r

Re: Local address rewrite problem with postfix configuration and sender dependent relayhosts - ISP

2021-09-08 Thread Wietse Venema
TTM: > > Wietse: > >The Postfix cleanup daemon applies canonical mapping before it > >writes a message to a queue file. > > Ok, I misunderstood this note in the postfix docu: > "Note: $sender_canonical_maps is processed before $canonical_maps. " > > > Ok, but can I achieve it by setting in main

Re: Local address rewrite problem with postfix configuration and sender dependent relayhosts - ISP

2021-09-08 Thread TTM
Wietse: >The Postfix cleanup daemon applies canonical mapping before it >writes a message to a queue file. Ok, I misunderstood this note in the postfix docu: "Note: $sender_canonical_maps is processed before $canonical_maps. " Ok, but can I achieve it by setting in main.cf: ---

Re: Local address rewrite problem with postfix configuration and sender dependent relayhosts - ISP

2021-09-08 Thread Wietse Venema
fo...@gmx.de: > For point 1) an 2) i have a file sender_canonical created: > - > Local_User_A@local.homenet us...@gmx.de > Local_User_B@local.homenet us...@gmail.com > ---

Local address rewrite problem with postfix configuration and sender dependent relayhosts - ISP

2021-09-08 Thread forTT
Hello together, I have "Ubuntu 20.04.3 LTS" on a raspberry pi 4, and I'm trying to config postfix to rewrite local-addresses and use then sender-dependent relayhosts. Postfix is mail_version = 3.4.13 and i have a dynamic IP. The setup looks /should be like this: 1) local user sends email to po

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 say

Re: Sender Address Rewrite (dyamic mapping with variables)

2021-06-11 Thread Viktor Dukhovni
On Fri, Jun 11, 2021 at 04:11:14PM -0700, sru...@gemneye.org wrote: > 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 d

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 refl

Re: Sender Address Rewrite (dyamic mapping with variables)

2021-06-11 Thread Viktor Dukhovni
On Fri, Jun 11, 2021 at 02:47:40PM -0700, sru...@gemneye.org wrote: > Can I use a smtp_generic_map rewrite to do something like this?? > > @local.domain $user-$hostname@some.domain I will make a bold guess that the real problem you're trying to solve dealing with mail from "root" and simila

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

Re: Address rewrite and DKIM (was: sender rewrite for specific receiver domain)

2021-02-02 Thread Gerben Wierda
Thank you. Interesting possibilities & tech. I’m going to think this over, i.e. I think it will be easier in my case to create a special mail user for this in dovecot (drop the alias/rewrite-outgoing apporach and use an extra mail account for these messages). But reading about multi instance po

Re: Address rewrite and DKIM (was: sender rewrite for specific receiver domain)

2021-02-01 Thread Viktor Dukhovni
On Mon, Feb 01, 2021 at 10:21:32PM +0100, Gerben Wierda wrote: > What I suspect here is that DKIM is the problem. As trivial-rewrite > changes the message, the DKIM signature is no longer valid. @gmail.com > reports the fail (spf is OK) but delivers anyway. Office365 is more > strict it seems. In

Address rewrite and DKIM (was: sender rewrite for specific receiver domain)

2021-02-01 Thread Gerben Wierda
What I am trying to do is create a ‘reverse alias’ (next to an alias). The alias must be used when mail is sent to a specific domain. > On 1 Feb 2021, at 17:59, Gerben Wierda wrote: > > master.cf gets: > > mycanon unix - - y - - smtp > -o smtp_generic_m

address rewrite

2015-11-09 Thread Paul A
I have a situation where an email from Comcast alert services is getting rejected, as the email comes in to my postfix server it gets forward to my phone and the service provider looks up SPF for my domain and rejects the email as it should. I wanted to rewrite the address to remove the @comcast.co

Re : Address rewrite from one IP

2013-12-05 Thread POSTFIX MAIL
Hello, not tested ... and as far as I remember 1/ use a mix of smtpd_client_restrictions" and "FILTER" to redirect trafic from 10.11.12.13 to a local smtpd/port (for smtpd/27) 10.11.12.13 FILTER smtp:[127.0.0.1]:27 2/ define a new local cleanup service on smtpd/27 something like that: 12

Re: Address rewrite from one IP

2013-12-05 Thread Viktor Dukhovni
On Thu, Dec 05, 2013 at 04:45:48PM +0100, Troels Hansen wrote: > canonical_maps = regexp:/etc/postfix/recipientmap > > and recipientmap contains the following: > /^(.*)_(.*)@domain\.dk$/ ${1}.${2}@domain.com > > This works, however it should only be done from mails originating > from the br

Address rewrite from one IP

2013-12-05 Thread Troels Hansen
Hi, I have a problem with address rewriting. The mail originates from a broken, cannot be changed, mail system that sends out mails to the wrong receiver: Ex: Mail send to: firstname_lastn...@domain.dk Should have been send to: firstname.lastn...@domain.com I have solved this with a canonical ma

Re: Address Rewrite Problem

2011-04-11 Thread DTNX/NGMX Postmaster
On 9 apr 2011, at 18:54, Nasser Heidari wrote: > We have an Exchange for our local Emails and Exchange uses Postfix as > Smarthost. > Address Rewriting is Working properly for Emails from Exchange to > Outside network, but For Emails from Exchange to Postfix Virtually > hosted Domains or Postfix

Re: Address Rewrite Problem

2011-04-11 Thread Victor Duchovni
On Mon, Apr 11, 2011 at 07:07:49AM -0500, Noel Jones wrote: > On 4/10/2011 11:55 PM, Nasser Heidari wrote: >> Anyone has any idea ? >> >> Thanks for Your answer, Here is my postconf -n output: >> >> > > Please don't top-post. > > Please show us "postconf -n" output and non-comment entries from mas

Re: Address Rewrite Problem

2011-04-11 Thread Noel Jones
On 4/10/2011 11:55 PM, Nasser Heidari wrote: Anyone has any idea ? Thanks for Your answer, Here is my postconf -n output: Please don't top-post. Please show us "postconf -n" output and non-comment entries from master.cf, along with logging demonstrating the problem. -- Noel Jones

RE: Address Rewrite Problem

2011-04-10 Thread Nasser Heidari
> -Original Message- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On > Behalf Of Noel Jones > Sent: Sunday, April 10, 2011 01:12 > To: postfix-users@postfix.org > Subject: Re: Address Rewrite Problem > > On 4/9/2011 11:54 AM, Nass

RE: Address Rewrite Problem

2011-04-09 Thread Nasser Heidari
age- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On > Behalf Of Noel Jones > Sent: Sunday, April 10, 2011 01:12 > To: postfix-users@postfix.org > Subject: Re: Address Rewrite Problem > > On 4/9/2011 11:54 AM, Nasser Heidari wrote: > > H

Re: Address Rewrite Problem

2011-04-09 Thread Noel Jones
On 4/9/2011 11:54 AM, Nasser Heidari wrote: Hi, We have Running Postfix with Virtual Domains. I need some address rewriting for Incoming and Outgoing Emails and using Canonical Maps we have done this task: Unfortunately you don't give us much info to go on here. --- main.cf config: sender_c

Address Rewrite Problem

2011-04-09 Thread Nasser Heidari
Hi, We have Running Postfix with Virtual Domains. I need some address rewriting for Incoming and Outgoing Emails and using Canonical Maps we have done this task: --- main.cf config: sender_canonical_maps = hash:/etc/postfix/canonical-sender recipient_canonical_maps = hash:/etc/postfix/canonical-r

Address Rewrite Problem

2011-04-08 Thread Nasser Heidari
Hi, We have Running Postfix with Virtual Domains. I need some address rewriting for Incoming and Outgoing Emails and using Canonical Maps we have done this task: --- main.cf config: sender_canonical_maps = hash:/etc/postfix/canonical-sender recipient_canonical_maps = hash:/etc/postfix/canonical-r

address rewrite on postfix (inbound message)

2010-11-17 Thread ahmad riza h nst
hi all, i am new to postfix and dovecot and this is my first ever setup. i have a problem with address rewrite on local/lmtp when using unix account as an alias from virtual user. when an email from outside deliver to virtual user on local server (t...@test.net) then it rewrite to unix_acco

Re: Conditional Sender Address rewrite (based on Receivers Address)

2009-12-14 Thread Stefan Foerster
* Tobias : > I have two email adresses: a...@domain.tld and b...@domain.tld > Only a...@domain.tld is registred with several mailinglists. But the user > b...@domain.tld is the one I want to use. Try subscribing twice and disable mail delivery for one account. All Mailman based mailing lists shoul

Re: Conditional Sender Address rewrite (based on Receivers Address)

2009-12-14 Thread Noel Jones
On 12/14/2009 7:44 AM, Tobias wrote: I have two email adresses: a...@domain.tld and b...@domain.tld Only a...@domain.tld is registred with several mailinglists. But the user b...@domain.tld is the one I want to use. So I need to find a way to rewrite the sender address (b...@domain.tld) to a...@d

Conditional Sender Address rewrite (based on Receivers Address)

2009-12-14 Thread Tobias
I have two email adresses: a...@domain.tld and b...@domain.tld Only a...@domain.tld is registred with several mailinglists. But the user b...@domain.tld is the one I want to use. So I need to find a way to rewrite the sender address (b...@domain.tld) to a...@domain.tld BUT only in case the receiver

Re: Recipient address rewrite at delivery , after content filter

2009-08-10 Thread mouss
Ovidiu Bivolaru a écrit : > Hello everyone, > > I've Postfix setup as a gateway machine (using content_filter, > relay_domains and transport_maps). I would like to receive messages for > "domain.com", process them with content filter using recipients > @domain.com, then at delivery time convert re

Re: Address Rewrite After Content Filter

2009-08-06 Thread Michael Katz
Ralf Hildebrandt wrote: * Michael Katz : Is there a way to rewrite an address after content filtering? Yes. It's even documented in tha amavis install document Since we make a product that is an alternative to amavis we don't check this much, but we will. :-) Thank you, Mike

Recipient address rewrite at delivery , after content filter

2009-08-06 Thread Ovidiu Bivolaru
Hello everyone, I've Postfix setup as a gateway machine (using content_filter, relay_domains and transport_maps). I would like to receive messages for "domain.com", process them with content filter using recipients @domain.com, then at delivery time convert recipient addresses to g.domain.com

Re: Address Rewrite After Content Filter

2009-08-06 Thread Ralf Hildebrandt
* Michael Katz : > Is there a way to rewrite an address after content filtering? Yes. It's even documented in tha amavis install document -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203

Address Rewrite After Content Filter

2009-08-06 Thread Michael Katz
Is there a way to rewrite an address after content filtering? Thank You, -- Michael Katz Mailspect 271 North Ave Suite 1210 New Rochelle, NY 10801 http://www.mailspect.com http://www.raeinternet.com Main +1-914-712-9050 Direct +1-914-712- Mobile +1-914-525-2903 Fax +1-914-206-9609 Skype: mi

RE: Sender address rewrite

2009-05-28 Thread Matt Ausmus
e got something." -HARTLEY'S FIRST LAW -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema Sent: Thursday, May 28, 2009 12:41 PM To: Postfix users Subject: Re: Sender address rewrite Matt Ausmus: > > I'm us

Re: Sender address rewrite

2009-05-28 Thread Wietse Venema
Matt Ausmus: > > I'm using postfix 2.3.3 on some Centos 5.x boxes strictly to send mail > > for alerting purposes. I've got relaying setup to go to our main smtp > > server which is running FreeBSD 6.x and postfix. What I'm trying to do > > is for the outgoing messages to show the hostn...@chapma

RE: Sender address rewrite

2009-05-28 Thread Matt Ausmus
2009 6:00 PM To: Postfix users Subject: Re: Sender address rewrite Ausmus, Matt: > Hello all, > > This is my first post. > > I'm using postfix 2.3.3 on some Centos 5.x boxes strictly to send mail > for alerting purposes. I've got relaying setup to go to our main smtp &

Re: Sender address rewrite

2009-05-27 Thread Wietse Venema
Ausmus, Matt: > Hello all, > > This is my first post. > > I'm using postfix 2.3.3 on some Centos 5.x boxes strictly to send mail > for alerting purposes. I've got relaying setup to go to our main smtp > server which is running FreeBSD 6.x and postfix. What I'm trying to do > is for the outgoing m

Sender address rewrite

2009-05-27 Thread Ausmus, Matt
Hello all, This is my first post. I'm using postfix 2.3.3 on some Centos 5.x boxes strictly to send mail for alerting purposes. I've got relaying setup to go to our main smtp server which is running FreeBSD 6.x and postfix. What I'm trying to do is for the outgoing messages to show the ho

Re: Address rewrite while relaying

2008-11-24 Thread Wietse Venema
George Vilches: > > On Nov 24, 2008, at 8:24 PM, Wietse Venema wrote: > > > George Vilches: > >> Is there something else in Postfix I can do that could force the > >> address resolution to be fully resolved before relaying? > > > > Yes. Do not use wild-card rewriting rules (@xxx -> @yyy) and list

Re: Address rewrite while relaying

2008-11-24 Thread George Vilches
On Nov 24, 2008, at 8:24 PM, Wietse Venema wrote: George Vilches: Is there something else in Postfix I can do that could force the address resolution to be fully resolved before relaying? Yes. Do not use wild-card rewriting rules (@xxx -> @yyy) and list all valid recipients in appropriate ta

Re: Address rewrite while relaying

2008-11-24 Thread Wietse Venema
George Vilches: > Is there something else in Postfix I can do that could force the > address resolution to be fully resolved before relaying? Yes. Do not use wild-card rewriting rules (@xxx -> @yyy) and list all valid recipients in appropriate tables. - List recipients in virtual_alias_maps for

Re: Address rewrite while relaying

2008-11-24 Thread George Vilches
On Nov 24, 2008, at 7:50 PM, mouss wrote: *snip* So far, so good. Now, we try: [EMAIL PROTECTED] = relays internally like the others above. How can I prevent this from happening? [EMAIL PROTECTED]/org does not have a valid virtual resolution, and does not exist in relay_recipient_maps, and

Re: Address rewrite while relaying

2008-11-24 Thread mouss
George Vilches a écrit : > > Okay, I've updated my example to consider this, although the outcome is > the same. > > cat /etc/postfix/virtual.cf: > > [EMAIL PROTECTED] [EMAIL PROTECTED] > [EMAIL PROTECTED][EMAIL PROTECTED] > [EMAIL PROTECTED][EMAIL PROTECTED] > [EMAIL PRO

Re: Address rewrite while relaying

2008-11-24 Thread George Vilches
On Nov 24, 2008, at 1:32 PM, Noel Jones wrote: This document should be helpful: http://www.postfix.org/SOHO_README.html I reviewed this document carefully, but it didn't seem to quite cover my use case. Given that, here's what our current virtual tables look like (the last entry was cha

Re: Address rewrite while relaying

2008-11-24 Thread Noel Jones
George Vilches wrote: The question: Is it possible to have a domain do address rewriting and relaying in some combination? The network structure is as follows: All mail goes to a single border gateway server, which is the one that all of the following will talk about. From this gateway, mail

Re: Address rewrite while relaying

2008-11-24 Thread Victor Duchovni
On Mon, Nov 24, 2008 at 01:21:37PM -0500, George Vilches wrote: > The question: Is it possible to have a domain do address rewriting and > relaying in some combination? http://www.postfix.org/ADDRESS_REWRITING_README.html > 1) The e-mail address arriving must be a real user (i.e. all addre

Address rewrite while relaying

2008-11-24 Thread George Vilches
The question: Is it possible to have a domain do address rewriting and relaying in some combination? The network structure is as follows: All mail goes to a single border gateway server, which is the one that all of the following will talk about. From this gateway, mail then passes to a s