Re: Address rewriting v Virtual alias domains

2021-06-15 Thread Viktor Dukhovni
ewriting. The ambiguity is avoided by explicitly setting virtual_alias_domains independently of virtual_alias_maps. > So, the question is, how do I tell Postfix to disable its virtual alias > domain machinery, yet have the full power of address rewriting with > virtual(5) at my disposal? By setting an explicit list of virtual_alias_domains (empty if you like). -- Viktor.

Re: Address rewriting v Virtual alias domains

2021-06-15 Thread Wietse Venema
For practical reaons all Postfix address rewriting table lookups are case-insensitive by default(*), both for the domain and local part, regardless of what the RFCs say. (*) When creating an indexed table, the postmap command folds the input to lowercase before writing to the table, and code that

Address rewriting v Virtual alias domains

2021-06-15 Thread Mono DHS
is because, syntactically, a ⟨local-part⟩ like postmaster is indistinguishable from a ⟨domain⟩ [2], more so firstname.lastname (notice the dot). So, the question is, how do I tell Postfix to disable its virtual alias domain machinery, yet have the full power of address rewriting with virtua

Re: Address rewriting guidance

2021-02-12 Thread Matt Shields
On Fri, Feb 12, 2021 at 12:54 PM Viktor Dukhovni wrote: > On Fri, Feb 12, 2021 at 12:06:02PM -0500, Matt Shields wrote: > > I'll take a look at all the suggestions. For below, this is just an internal server(behind firewall) with no internet facing ports. We use Office365 for corporate mail, an

Re: Address rewriting guidance

2021-02-12 Thread Viktor Dukhovni
On Fri, Feb 12, 2021 at 12:06:02PM -0500, Matt Shields wrote: > 1. Rewrite the FROM address in each message > a. host1.lan has a process that sets the FROM as t...@mycompany.com, this > is okay to let relay > b. host2.lan has a script that sends as r...@host2.lan, rewrite FROM as > s

Address rewriting guidance

2021-02-12 Thread Matt Shields
ke sure only certain internal hosts can send mail. But I'm stuck on the address rewriting. I'm looking for some config examples. 1. Rewrite the FROM address in each message a. host1.lan has a process that sets the FROM as t...@mycompany.com, this is okay to let relay b. host2.lan has a s

Re: [Partially solved] Re: Address rewriting not working

2019-01-05 Thread Celejar
On Fri, 4 Jan 2019 15:20:08 -0500 Viktor Dukhovni wrote: > > On Jan 4, 2019, at 2:56 PM, Celejar wrote: > > > > And I'm using 3.1.8, where the rewriting isn't acceptable to my mail > > provider, and this feature isn't available ;) So I guess I'm stuck, > > unless I can upgrade Postfix? > > You

Re: [Partially solved] Re: Address rewriting not working

2019-01-04 Thread Celejar
On Fri, 4 Jan 2019 15:22:08 -0500 (EST) Wietse Venema wrote: > Celejar: > > On Fri, 4 Jan 2019 13:19:10 -0500 (EST) > > Wietse Venema wrote: > > > > > Celejar: > > > > Okay, by testing with swaks I've confirmed the suspicion that I broached > > > > in my previous mail: on the problematic system

Re: [Partially solved] Re: Address rewriting not working

2019-01-04 Thread Wietse Venema
Celejar: > On Fri, 4 Jan 2019 13:19:10 -0500 (EST) > Wietse Venema wrote: > > > Celejar: > > > Okay, by testing with swaks I've confirmed the suspicion that I broached > > > in my previous mail: on the problematic system, the rewrite of the email > > > header 'From: root' is to 'From: (root)', w

Re: [Partially solved] Re: Address rewriting not working

2019-01-04 Thread Viktor Dukhovni
> On Jan 4, 2019, at 2:56 PM, Celejar wrote: > > And I'm using 3.1.8, where the rewriting isn't acceptable to my mail > provider, and this feature isn't available ;) So I guess I'm stuck, > unless I can upgrade Postfix? Your other option, if possible, is to inject email into Postfix with the "Fr

Re: [Partially solved] Re: Address rewriting not working

2019-01-04 Thread Celejar
On Fri, 4 Jan 2019 13:19:10 -0500 (EST) Wietse Venema wrote: > Celejar: > > Okay, by testing with swaks I've confirmed the suspicion that I broached > > in my previous mail: on the problematic system, the rewrite of the email > > header 'From: root' is to 'From: (root)', which > > causes the mai

Re: [Partially solved] Re: Address rewriting not working

2019-01-04 Thread Wietse Venema
Celejar: > Okay, by testing with swaks I've confirmed the suspicion that I broached > in my previous mail: on the problematic system, the rewrite of the email > header 'From: root' is to 'From: (root)', which > causes the mail to be rejected by Zoho's server with '553 Relaying > disallowed as @'.

[Partially solved] Re: Address rewriting not working

2019-01-04 Thread Celejar
On Wed, 2 Jan 2019 19:58:18 -0500 Viktor Dukhovni wrote: > > On Jan 2, 2019, at 7:12 PM, Celejar wrote: > > > > I'm configuring Postfix to relay mail via a smarthost, and I need to > > rewrite the sender address in order for the smarthost to accept the > > mail (and not reject it as 'relaying')

Re: Address rewriting not working

2019-01-03 Thread Celejar
agents is also the form before generic rewriting. The output of > generic rewriting is not logged on the sending system (except perhaps > in verbose logging that should not normally be enabled). Ah, okay - thanks for clearing this up. I was following the instructions in DEBUG_README, which s

Re: Address rewriting not working

2019-01-02 Thread Viktor Dukhovni
> On Jan 2, 2019, at 7:12 PM, Celejar wrote: > > I'm configuring Postfix to relay mail via a smarthost, and I need to > rewrite the sender address in order for the smarthost to accept the > mail (and not reject it as 'relaying'). I'm using generic mapping to do > this, and it works correctly on t

Address rewriting not working

2019-01-02 Thread Celejar
Hi, I'm configuring Postfix to relay mail via a smarthost, and I need to rewrite the sender address in order for the smarthost to accept the mail (and not reject it as 'relaying'). I'm using generic mapping to do this, and it works correctly on two of my systems (Debian Sid, running Postfix 3.3.2)

RE: Outbound address rewriting

2018-04-19 Thread Kevin Miller
07357 -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of /dev/rob0 Sent: Thursday, April 19, 2018 3:10 PM To: postfix-users@postfix.org Subject: Re: Outbound address rewriting On Thu, Apr 19, 2018 at 09:47:27PM +, Kevin Miller

Re: Outbound address rewriting

2018-04-19 Thread /dev/rob0
On Thu, Apr 19, 2018 at 09:47:27PM +, Kevin Miller wrote: > Quick question: In the docs I don't see a reference to a line in > main.cf. Will postfix pick up on the existence of the table > automatically once I hash it, or do I need to add something along > the lines of: > virtual_alias_ma

Re: Outbound address rewriting

2018-04-19 Thread Tom Hendrikx
On 19-04-18 23:26, Kevin Miller wrote: > -Original Message- >> I think in this case both domains are remote, in which case the >> bounce issue may be moot. Only users authorized to send outbound >> mail can create email for the destination in question, and the >> goal is to "correct" the d

RE: Outbound address rewriting

2018-04-19 Thread Kevin Miller
> Use canonical_maps to rewrite all instances of the address > (header, envelope, sender, recipient). > Use virtual_alias_maps (not virtual_aias_domains) to rewrite > the envelope recipient only. Quick question: In the docs I don't see a reference to a line in main.cf. Will postfix pick up on

RE: Outbound address rewriting

2018-04-19 Thread Kevin Miller
-Original Message- > I think in this case both domains are remote, in which case the > bounce issue may be moot. Only users authorized to send outbound > mail can create email for the destination in question, and the > goal is to "correct" the destination domain. Right. As it stands now,

Re: Outbound address rewriting

2018-04-19 Thread Viktor Dukhovni
> On Apr 19, 2018, at 4:24 PM, Wietse Venema wrote: > > In both maps, > >@alaska.com@alaskan.com > > would do the domain translation. > > Caution: with this, Postfix will accept email for any addr...@alaska.com > including addresses that are later found to be undeliverable. If >

Re: Outbound address rewriting

2018-04-19 Thread Wietse Venema
end to > some...@alaska.com, it bounces as there is no MX host to receive > mail for that domain. I'd like my outbound smtp server to to > rewrite the to address so that u...@alaska.com becomes u...@alaskan.com. > What's the cleanest way to do so? I've been reading thr

Outbound address rewriting

2018-04-19 Thread Kevin Miller
ounces as there is no MX host to receive mail for that domain. I'd like my outbound smtp server to to rewrite the to address so that u...@alaska.com becomes u...@alaskan.com. What's the cleanest way to do so? I've been reading through the postfix address rewriting pages but

Re: Address rewriting help?

2016-09-01 Thread Noel Jones
On 8/31/2016 5:32 PM, Tom Horsley wrote: > On Wed, 31 Aug 2016 17:19:54 -0500 > Noel Jones wrote: > >> Sounds as if smtp_generic_maps may be a better fit for this than >> canonical maps. >> http://www.postfix.org/ADDRESS_REWRITING_README.html#generic > > I tried generic maps first, but that not o

Re: Address rewriting help?

2016-08-31 Thread John Stoffel
> "Tom" == Tom Horsley writes: Tom> On Wed, 31 Aug 2016 18:32:03 -0400 Tom> Tom Horsley wrote: >> I'm just reading about the pickup program and the >> receive_override_options to turn off mapping. >> I think that might work, only the mail from >> fetchmail is being locally delivered via pick

Re: Address rewriting help?

2016-08-31 Thread Tom Horsley
On Wed, 31 Aug 2016 18:32:03 -0400 Tom Horsley wrote: > I'm just reading about the pickup program and the > receive_override_options to turn off mapping. > I think that might work, only the mail from > fetchmail is being locally delivered via pickup. Nah, that didn't work either, but I think I ca

Re: Address rewriting help?

2016-08-31 Thread Tom Horsley
On Wed, 31 Aug 2016 17:19:54 -0500 Noel Jones wrote: > Sounds as if smtp_generic_maps may be a better fit for this than > canonical maps. > http://www.postfix.org/ADDRESS_REWRITING_README.html#generic I tried generic maps first, but that not only changed the sender address, but the To: address as

Re: Address rewriting help?

2016-08-31 Thread Noel Jones
On 8/31/2016 5:03 PM, Tom Horsley wrote: > I'm trying to setup a relayhost to send all my mail > through smtp.office365.com so postfix can queue it and > I don't have to stare at a "Authenticating..." dialog > box for 10 or 20 seconds. > > I actually have things mostly working. I use > this: > >

Address rewriting help?

2016-08-31 Thread Tom Horsley
I'm trying to setup a relayhost to send all my mail through smtp.office365.com so postfix can queue it and I don't have to stare at a "Authenticating..." dialog box for 10 or 20 seconds. I actually have things mostly working. I use this: sender_canonical_maps = regexp:/etc/postfix/canonical to c

Re: Conditionnal sender address rewriting

2016-08-08 Thread Noel Jones
On 8/8/2016 1:21 PM, Julien Sansonnens wrote: > Hi Postfix users, > > For some reason, I would like my sender address to be altered, > depending on the recipient domain. > It's quite simple: when I send an email to j...@myexample.com domain, > the FROM header must be changed to "mys...@myexample.c

Conditionnal sender address rewriting

2016-08-08 Thread Julien Sansonnens
Hi Postfix users, For some reason, I would like my sender address to be altered, depending on the recipient domain. It's quite simple: when I send an email to j...@myexample.com domain, the FROM header must be changed to "mys...@myexample.com" instead of mys...@myhostname.com". Here is my (non wo

Re: Address rewriting

2016-07-06 Thread Wietse Venema
Robert Fitzpatrick: > Jul 6 13:44:39 mx1 postfix/smtpd[74447]: NOQUEUE: reject: RCPT from > mail-dm3nam03on0135.outbound.protection.outlook.com[104.47.41.135]: 450 > 4.1.8 : Sender address rejected: Domain not > found; from= to= proto=ESMTP > helo= This error message has nothing to do with he

Re: Address rewriting

2016-07-06 Thread Viktor Dukhovni
5]: 450 > 4.1.8 : Sender address rejected: Domain not found; > from= to= proto=ESMTP > helo= These are *envelope* addresses and not surprising header address rewriting has no effect here. In any case address rewriting happens in cleanup(8), and smtpd(8) access control works with the ori

Re: Address rewriting

2016-07-06 Thread Robert Fitzpatrick
Wietse Venema wrote: Robert Fitzpatrick: local_header_rewrite_clients = static:all I'm looking for a way to rewrite by name from any client. My canonical maps work great for mynetworks, would like to apply the same type rewrite to any message... The above setting should enable canonical mappi

Re: Address rewriting

2016-07-06 Thread Wietse Venema
Robert Fitzpatrick: > local_header_rewrite_clients = static:all > > I'm looking for a way to rewrite by name from any client. My canonical > maps work great for mynetworks, would like to apply the same type > rewrite to any message... The above setting should enable canonical mapping for all em

Re: Address rewriting

2016-07-06 Thread Robert Fitzpatrick
Wietse Venema wrote: Robert Fitzpatrick: I have been using canonical_maps for some time to map local addresses, but that doesn't seem to work for incoming mail. The message is coming from another Postfix server with the sender specified with the hostname of the machine See http://www.postf

Re: Address rewriting

2016-07-06 Thread Robert Fitzpatrick
Wietse Venema wrote: Robert Fitzpatrick: I have been using canonical_maps for some time to map local addresses, but that doesn't seem to work for incoming mail. The message is coming from another Postfix server with the sender specified with the hostname of the machine See http://www.postf

Re: Address rewriting

2016-07-06 Thread Wietse Venema
Robert Fitzpatrick: > I have been using canonical_maps for some time to map local addresses, > but that doesn't seem to work for incoming mail. The message is coming > from another Postfix server with the sender specified with the hostname > of the machine See http://www.postfix.org/postcon

Address rewriting

2016-07-06 Thread Robert Fitzpatrick
I have been using canonical_maps for some time to map local addresses, but that doesn't seem to work for incoming mail. The message is coming from another Postfix server with the sender specified with the hostname of the machine Jul 6 08:35:34 mx1 postfix/smtpd[54573]: NOQUEUE: reject: RCP

Re: Postfix - SRS - Address rewriting

2016-06-21 Thread Wietse Venema
Pascal Maes: > Hello, > > > We are using the SRS mechanism to avoid problem with the SPF when > we forward emails to external servers. > > We have followed the documentation from postsrsd, in main.cf : Suggestion: 1) Open your preferred search engine. 2) Enter search terms: srs milter.

Postfix - SRS - Address rewriting

2016-06-21 Thread Pascal Maes
Hello, We are using the SRS mechanism to avoid problem with the SPF when we forward emails to external servers. We have followed the documentation from postsrsd, in main.cf : sender_canonical_maps = proxy:tcp:127.0.0.1:10001 sender_canonical_classes = envelope_sender recipient_canonical_maps

Re: virtual_alias_domains address rewriting?

2016-05-07 Thread Jack Bates
On 05/05/16 12:50 PM, Viktor Dukhovni wrote: On Thu, May 05, 2016 at 12:04:09PM -0700, Jack Bates wrote: Is there an address rewriting step that affects only virtual_alias_domains? No. The following achieved my desired behavior: virtual_alias_domains = nottheoilrig.com

Re: virtual_alias_domains address rewriting?

2016-05-05 Thread Viktor Dukhovni
On Thu, May 05, 2016 at 12:04:09PM -0700, Jack Bates wrote: > Is there an address rewriting step that affects only virtual_alias_domains? No. > The following achieved my desired behavior: > > virtual_alias_domains = nottheoilrig.com > virtual_alias_maps = inline:{ @n

Re: virtual_alias_domains address rewriting?

2016-05-05 Thread Wietse Venema
Jack Bates: > Is there an address rewriting step that affects only virtual_alias_domains? No, there is no address rewriting for virtual_alias_domains only (or for relay_domains, or for virtual_mailbox_domains). > I tried the following: > >virtual_alias_domains = nott

virtual_alias_domains address rewriting?

2016-05-05 Thread Jack Bates
Is there an address rewriting step that affects only virtual_alias_domains? I tried the following: virtual_alias_domains = nottheoilrig.com virtual_alias_maps = static:nottheoilrig expecting to deliver all virtual_alias_domains mail to one user, and I was surprised when ALL mail was

Re: Recipient Address rewriting and Transport

2015-08-10 Thread Viktor Dukhovni
On Mon, Aug 10, 2015 at 09:46:33PM +, Rosenbaum, Larry M. wrote: > > Then, as a best-practice, add additional transport addresses to > > each exchange user account: > > > > mail: u...@example.com > > proxyAddresses: SMTP:u...@example.com > > proxyAddresses: smtp:u...@exch.example.

RE: Recipient Address rewriting and Transport

2015-08-10 Thread Rosenbaum, Larry M.
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Viktor Dukhovni > > On Mon, Aug 10, 2015 at 08:50:22PM +, Rosenbaum, Larry M. wrote: > > > > main.cf: > > > indexed = ${default_database_type}:${config_directory}/ > > > virtual_alia

Re: Recipient Address rewriting and Transport

2015-08-10 Thread Viktor Dukhovni
On Mon, Aug 10, 2015 at 08:50:22PM +, Rosenbaum, Larry M. wrote: > > main.cf: > > indexed = ${default_database_type}:${config_directory}/ > > virtual_alias_maps = ${indexed}virtual > > transport_maps = ${indexed}transport > > > > virtual: > > u...@mail.

RE: Recipient Address rewriting and Transport

2015-08-10 Thread Rosenbaum, Larry M.
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > On Mon, Aug 10, 2015 at 07:58:56PM +, Rosenbaum, Larry M. wrote: > > > I would like to do the following: If the recipient is > > u...@mail.example.com, rewrite the address to u...@example.com and relay > > it to server exch.exam

Re: Recipient Address rewriting and Transport

2015-08-10 Thread Viktor Dukhovni
On Mon, Aug 10, 2015 at 07:58:56PM +, Rosenbaum, Larry M. wrote: > I would like to do the following: If the recipient is > u...@mail.example.com, rewrite the address to u...@example.com and relay > it to server exch.example.com. How would we do this? http://www.postfix.org/ADDRESS_REWRIT

Recipient Address rewriting and Transport

2015-08-10 Thread Rosenbaum, Larry M.
I would like to do the following: If the recipient is u...@mail.example.com, rewrite the address to u...@example.com and relay it to server exch.example.com. How would we do this? We are running Postfix 3.0.2 on RHEL6. Thanks, Larry

postfix, address rewriting and bcc maps

2014-11-06 Thread Koldo Navarro
Hello, I am setting up an email server using postfix. I use an internal domain for internal mails, and address rewriting for outgoing emails. In main.cf, the parameter smtp_generic_maps = hash:/etc/postfix/generic and a file "generic" with lines like this: user@mycompany.local

Re: Address Rewriting vs Aliasing - I need all recipients to see each other

2014-02-02 Thread Viktor Dukhovni
On Sun, Feb 02, 2014 at 09:06:03AM -0500, Charles Marcus wrote: > I want to set up an email alias for my domain, ie: > > facilit...@example.com > > That sends the email to two (or more) external addresses: > > us...@example2.com > us...@example2.com > > Currently, if I set up the alias, each r

Re: Address Rewriting vs Aliasing - I need all recipients to see each other

2014-02-02 Thread Charles Marcus
Thanks for the reply Dominik, but... On 2014-02-02 9:17 AM, Dominik George wrote: Currently, if I set up the alias, each recipient only sees themselves as the recipient, but I need all recipients to see each other, so each knows the other received it. I do not quite understand that. Normally

Re: Address Rewriting vs Aliasing - I need all recipients to see each other

2014-02-02 Thread Dominik George
Hi Charles, > Currently, if I set up the alias, each recipient only sees > themselves as the recipient, but I need all recipients to see each > other, so each knows the other received it. I do not quite understand that. Normally, when you use a simple alias, no adresses are rewritten, so the orig

Address Rewriting vs Aliasing - I need all recipients to see each other

2014-02-02 Thread Charles Marcus
added as 'To:', and the other as 'CC:', but again, not really that important, as long as they will each see the other got it. I'm guessing I need to use Address Rewriting rather than just an alias, but I'm not sure which method or how to accomplish it. Thanks, Charles

Re: Postmaster address rewriting in bounce mail header

2013-09-13 Thread Wietse Venema
robby: > Hi, > > I'm using the latest version of postfix on Debian 6. I'm using an email > application to send mailings which automatically handles bounces through a > pipe php script. I have successfully setup a mail alias for postmaster to > the pipe script. Please don't solve the wrong problem

Postmaster address rewriting in bounce mail header

2013-09-13 Thread robby
t; field in the mail header contains "postmaster". The email application requires the "To" field to be a valid email address like "postmaster@". Is it possible to change this in Postfix ? Thx Robby -- View this message in context: http://postfix.1071664.n5.nabb

Aw: Address Rewriting

2013-04-11 Thread Henning
1 Outgoing header looks liks this: from local2, to external1   Does anyone know, if I can achieve this with postfix?   E.g. with some address rewriting feature? http://www.postfix.org/ADDRESS_REWRITING_README.html I am very new to postfix, so I don't completely understand the manual here.  I

Address Rewriting

2013-04-11 Thread test test
al1   Does anyone know, if I can achieve this with postfix?   E.g. with some address rewriting feature? http://www.postfix.org/ADDRESS_REWRITING_README.html I am very new to postfix, so I don't completely understand the manual here.  I could imagine, that I need to put the mapping local<

Re: Address rewriting

2012-07-19 Thread Noel Jones
s or > would you do it another and better way? > > Thanks, > -lutzn > > Yes, virtual_alias_maps is the correct solution for general-purpose address rewriting. The domain does not need to be listed in virtual_alias_domains. In general, it's good practice to always use ad

Address rewriting

2012-07-19 Thread lutz . niederer
Hi! We do have several domains listed with mydomains. The users are the same for all domains and exist locally, means mail gets delivered locally. Aliases file is used to expand to lists of recipients. This works ok and we only have one set of files (aliases) that works for all domains. We

Re: address rewriting

2012-03-04 Thread dino muzic
Thanks Wietse! it works! dm From: Wietse Venema To: Postfix users Sent: Sunday, March 4, 2012 3:14 PM Subject: Re: address rewriting dino muzic: > 2) outside => postfix => inside server > doesn't, because generic is rewriting user1@my

Re: address rewriting

2012-03-04 Thread Wietse Venema
dino muzic: > 2) outside => postfix => inside server > doesn't, because generic is rewriting user1@mydomain.local back > to us...@mydomain.com before relaying it to inside server Postfix uses different SMTP mail delivery agents for inbound mail and outbound. If the destination is in relay_domains

Re: address rewriting

2012-03-04 Thread /dev/rob0
Please do not top-post your replies. Thank you. On Sun, Mar 04, 2012 at 05:17:30AM -0800, dino muzic wrote: > 1) inside server => postfix => outside > > works fine! > > > 2) outside => postfix => inside server What is this inside server? What is the role of Postfix supposed to be? Perhaps yo

Re: address rewriting

2012-03-04 Thread dino muzic
mail? thanks dm From: Wietse Venema To: Postfix users Sent: Saturday, March 3, 2012 3:55 PM Subject: Re: address rewriting dino muzic: > how can I do this? >1) inside server => postfix => outside: >from:user1@mydomain.local? to:us...@yahoo.com??=> POSTFI

Re: address rewriting

2012-03-03 Thread Wietse Venema
dino muzic: > how can I do this? >1) inside server => postfix => outside: >from:user1@mydomain.local? to:us...@yahoo.com??=> POSTFIX => >from:us...@mydomain.com to:us...@yahoo.com ? http://www.postfix.org/SOHO_README.html >2) outside => postfix => inside server >from:us...@yahoo.com to:us...@myd

address rewriting

2012-03-03 Thread dino muzic
how can I do this?   1) inside server => postfix => outside: from:user1@mydomain.local  to:us...@yahoo.com  => POSTFIX => from:us...@mydomain.com to:us...@yahoo.com   2) outside => postfix => inside server from:us...@yahoo.com to:us...@mydomain.com => POSTFIX => from:us...@yahoo.com  to:user1@m

Re: postfix as relay and address rewriting

2012-02-28 Thread Noel Jones
en internal lan and isp. > I have already configured postfix for outbound address rewriting : > u...@inside.com => internal <mailto:u...@inside.com => internal> > server => postfix => u...@outside.com <mailto:u...@outside.com>, > but I can't figure out how to

postfix as relay and address rewriting

2012-02-28 Thread dino muzic
hi,   have basic question to ask. how can I rewrite recipient address from "u...@outside.com to u...@inside.com"? my configuration consists of internal mail server (@inside.com) and postfix relay situated in between internal lan and isp. I have already configured postfix for outbou

Re: Many to one address rewriting, exceptions exist.

2011-09-27 Thread Wietse Venema
Randy Ramsdell: > Sep 27 12:25:42 mail1-test postfix/error[16593]: 6252A17A809: > to=, orig_to=, relay=none, > delay=25, delays=25/0/0/0.03, dsn=5.0.0, status=bounced (User unknown in > virtual alias table) You need to override the virtual_alias_domains default setting. /etc/postfix/main.cf:

Re: Many to one address rewriting, exceptions exist.

2011-09-27 Thread Randy Ramsdell
On 09/27/11 09:33, Noel Jones wrote: On 9/27/2011 8:03 AM, Randy Ramsdell wrote: /etc/postfix/virtual: #f...@example.com stays itself. f...@example.comf...@example.com #b...@example.com goes elsewhere. b...@example.comother@elsewhere /etc/postfix/virtu

Re: Many to one address rewriting, exceptions exist.

2011-09-27 Thread Noel Jones
On 9/27/2011 8:03 AM, Randy Ramsdell wrote: >>> /etc/postfix/virtual: >>>#f...@example.com stays itself. >>>f...@example.comf...@example.com >>> >>>#b...@example.com goes elsewhere. >>>b...@example.comother@elsewhere >>> >>> /etc/postfix/virtual.pcre: >>>

Re: Many to one address rewriting, exceptions exist.

2011-09-27 Thread Randy Ramsdell
chall for these has to be configured. We will also select a few "to's" where we send these off as normal. No external to our network mail we need to be routed. So far I read about transport maps and the address rewriting but don't see a way or the best way to accomplish th

Re: Many to one address rewriting, exceptions exist.

2011-09-27 Thread Wietse Venema
Noel Jones: > On 9/26/2011 3:12 PM, Wietse Venema wrote: > > Randy Ramsdell: > >> /etc/postfix/virtual: > >> #f...@example.com stays itself. > >> f...@example.com f...@example.com > >> > >> #b...@example.com goes elsewhere. > >> b...@example.com other@elsewhere > >

Re: Many to one address rewriting, exceptions exist.

2011-09-26 Thread Noel Jones
On 9/26/2011 3:12 PM, Wietse Venema wrote: > Randy Ramsdell: >> /etc/postfix/virtual: >> #f...@example.com stays itself. >> f...@example.com f...@example.com >> >> #b...@example.com goes elsewhere. >> b...@example.com other@elsewhere >> >> /etc/postfix/virtual.

Re: Many to one address rewriting, exceptions exist.

2011-09-26 Thread Wietse Venema
a single, probably, local address. > >>>>> The list of senders will be in the thousands and so using a > >>>>> catchall for these has to be configured. > >>>>> > >>>>> We will also select a few "to's" where we send

Re: Many to one address rewriting, exceptions exist.

2011-09-26 Thread Noel Jones
On 9/26/2011 2:34 PM, Randy Ramsdell wrote: > > /etc/postfix/virtual: > #f...@example.com stays itself. > f...@example.comf...@example.com OK. > > #b...@example.com goes elsewhere. > b...@example.comother@elsewhere you need an identity mapping for other@elsewhere

Re: Many to one address rewriting, exceptions exist.

2011-09-26 Thread Randy Ramsdell
f as normal. No external to our network mail we need to be routed. So far I read about transport maps and the address rewriting but don't see a way or the best way to accomplish this. Advice appreciated, Randy Ramsdell When virtual_alias_maps using two maps as suggested. virtual_alias_ma

Re: Many to one address rewriting, exceptions exist.

2011-09-26 Thread Noel Jones
;>>> >>>> We will also select a few "to's" where we send these off as normal. >>>> >>>> No external to our network mail we need to be routed. >>>> >>>> So far I read about transport maps and the address rewriting but

Re: Many to one address rewriting, exceptions exist.

2011-09-26 Thread Randy Ramsdell
and send that to a single, probably, local address. The list of senders will be in the thousands and so using a catchall for these has to be configured. We will also select a few "to's" where we send these off as normal. No external to our network mail we need to be routed. So far I r

Re: Many to one address rewriting, exceptions exist.

2011-09-26 Thread Noel Jones
here we send these off as normal. >>> >>> No external to our network mail we need to be routed. >>> >>> So far I read about transport maps and the address rewriting but >>> don't see a way or the best way to accomplish this. >>> >>>

Re: Many to one address rewriting, exceptions exist.

2011-09-26 Thread Noel Jones
a single, probably, local address. >> The list of senders will be in the thousands and so using a >> catchall for these has to be configured. >> >> We will also select a few "to's" where we send these off as normal. >> >> No external to our network

Re: Many to one address rewriting, exceptions exist.

2011-09-26 Thread Randy Ramsdell
thousands and so using a catchall for these has to be configured. We will also select a few "to's" where we send these off as normal. No external to our network mail we need to be routed. So far I read about transport maps and the address rewriting but don't see a way

Re: Many to one address rewriting, exceptions exist.

2011-09-23 Thread Wietse Venema
Randy Ramsdell: > > If you really must rewrite any domain, use regular expressions instead. > > > > /etc/postfix/main.cf: > > virtual_alias_maps = > > hash:/etc/postfix/virtual pcre:/etc/postfix/virtual.pcre > > > > /etc/postfix/virtual: > > # f...@example.com stays itself. > > f

Re: Many to one address rewriting, exceptions exist.

2011-09-23 Thread Randy Ramsdell
On 09/23/11 13:35, Randy Ramsdell wrote: Please disregard. Typo but I doubt you've seen the last issue regarding this configuration. :)

Re: Many to one address rewriting, exceptions exist.

2011-09-23 Thread Randy Ramsdell
On 09/22/11 16:33, Wietse Venema wrote: Randy Ramsdell: /etc/postfix/main.cf: virtual_alias_maps = hash:/etc/postfix/virtual /etc/postfix/virtual: # All example.com users become mails...@example.net. @example.com mails...@example.net # Except for f...@example.com,

Re: Many to one address rewriting, exceptions exist.

2011-09-22 Thread Amedeo Rinaldo
Il 22/09/2011 22:33, Wietse Venema ha scritto: .. [cut] .. /etc/postfix/virtual.pcre: # Everything else goes to the mailsink. /./mails...@example.net Wietse Similar need, to intercept specific local-part for all domains. If i'm not wrong, something l

Re: Many to one address rewriting, exceptions exist.

2011-09-22 Thread Wietse Venema
Randy Ramsdell: > > /etc/postfix/main.cf: > > virtual_alias_maps = hash:/etc/postfix/virtual > > > > /etc/postfix/virtual: > > # All example.com users become mails...@example.net. > > @example.com mails...@example.net > > > > # Except for f...@example.com, which stays itself.

Re: Many to one address rewriting, exceptions exist.

2011-09-22 Thread Randy Ramsdell
l be in the thousands and so using a catchall for these has to be configured. We will also select a few "to's" where we send these off as normal. No external to our network mail we need to be routed. So far I read about transport maps and the address rewriting but don't see a

Re: Many to one address rewriting, exceptions exist.

2011-09-22 Thread Wietse Venema
nds and so using a catchall for these has to be configured. > > We will also select a few "to's" where we send these off as normal. > > No external to our network mail we need to be routed. > > So far I read about transport maps and the address rewriting but d

Many to one address rewriting, exceptions exist.

2011-09-22 Thread Randy Ramsdell
as to be configured. We will also select a few "to's" where we send these off as normal. No external to our network mail we need to be routed. So far I read about transport maps and the address rewriting but don't see a way or the best way to accomplish this. Advice appreciated, Randy Ramsdell

Re: Address Rewriting for relayed emails

2010-12-02 Thread Victor Duchovni
On Thu, Dec 02, 2010 at 05:23:33PM +0100, Jeroen Geilman wrote: > On 12/02/2010 10:10 AM, michael.h.gr...@googlemail.com wrote: >> Thanks for the config hint. >> >> It works fine if I add an email address like this to generic >> >> laserjetscan...@domain.local notificati...@domain.com >> >> It doe

Re: Address Rewriting for relayed emails

2010-12-02 Thread Jeroen Geilman
On 12/02/2010 10:10 AM, michael.h.gr...@googlemail.com wrote: Thanks for the config hint. It works fine if I add an email address like this to generic laserjetscan...@domain.local notificati...@domain.com It does not work if I want to do the following: @domain.com notificati...@domain.com It

Re: Re: Address Rewriting for relayed emails

2010-12-02 Thread Michael . H . Grimm
the faked senders address with the valid address of the account dedicated to the ERP-System. Is this possible? I guess I have to use the Address Rewriting capabilities in Postfix. But where to start? Kind regards and many thanks in advance Michael man generic u...@domai

Re: Address Rewriting for relayed emails

2010-11-29 Thread John Adams
ot; emails Forward them to the Exchange server replacing the faked senders address with the valid address of the account dedicated to the ERP-System. Is this possible? I guess I have to use the Address Rewriting capabilities in Postfix. But where to start? Kind regards and many thanks in advance Micha

Re: Address Rewriting for relayed emails

2010-11-29 Thread Noel Jones
ot; emails Forward them to the Exchange server replacing the faked senders address with the valid address of the account dedicated to the ERP-System. Is this possible? I guess I have to use the Address Rewriting capabilities in Postfix. But where to start? Kind regards and many thanks in advance Michae

Address Rewriting for relayed emails

2010-11-29 Thread Michael . H . Grimm
faked senders address with the valid address of the account dedicated to the ERP-System. Is this possible? I guess I have to use the Address Rewriting capabilities in Postfix. But where to start? Kind regards and many thanks in advance Michael

Re: Postfix + stunnel SMTPS = address rewriting issue

2010-06-02 Thread Wietse Venema
on before the > message itself was transmitted. No transmission = no rewriting. > > Anyway, that's my story, and I'm sticking to it. Are you sticking with your subject line "Postfix + stunnel SMTPS = address rewriting issue"? All I have seen sofar is that sender-dependent SASL password lookups are working as promised. Wietse

  1   2   >