Re: Copy mail from specific email address to specific email address to other accounts

2016-02-10 Thread @lbutlr
On Feb 9, 2016, at 10:02 PM, Bill Cole wrote: > 1. Remove the REDIRECT from your header_checks.pcre file > > 2. In sender_bcc.pcre add a line like this (using the actual SMTP envelope > used by the trip coordinator inside the //): > >

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-09 Thread @lbutlr
On Mon Feb 08 2016 20:24:45 Bill Cole said: > > On 8 Feb 2016, at 17:25, @lbutlr wrote: > >> On Feb 8, 2016, at 8:26 AM, Bill Cole >> wrote: >>> However, there's still something missing in what you've

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-09 Thread Viktor Dukhovni
On Tue, Feb 09, 2016 at 01:23:13PM -0700, @lbutlr wrote: > >> $ grep japan /usr/local/etc/postfix/virtual > >> ja...@xanmax.com > >> xander+ja...@xanmax.com,kris+ja...@kreme.com,lb+ja...@kreme.com > > > > Never gets used, because that file is for mapping addresses in virtual > > alias

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-09 Thread @lbutlr
On Tue Feb 09 2016 13:27:24 Viktor Dukhovni said: > > On Tue, Feb 09, 2016 at 01:23:13PM -0700, @lbutlr wrote: > $ grep japan /usr/local/etc/postfix/virtual ja...@xanmax.com xander+ja...@xanmax.com,kris+ja...@kreme.com,lb+ja...@kreme.com

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-09 Thread Bill Cole
On 9 Feb 2016, at 15:23, @lbutlr wrote: On Mon Feb 08 2016 20:24:45 Bill Cole said: [...] Never gets used, because that file is for mapping addresses in virtual alias domains, of which xanmax.com is not one. Aha! That makes sense. Yeah, I

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-09 Thread @lbutlr
On Tue Feb 09 2016 13:23:13 @lbutlr <@lbutlr> said: > > virtual:t...@kreme.com > xander+ja...@xanmax.com,kris+ja...@kreme.com,lb+ja...@kreme.com > header_checks.pcre:/^From:.*t...@kreme.com/ REDIRECT ja...@kreme.com > > $ postmap -q t...@kreme.com

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-09 Thread @lbutlr
On Tue Feb 09 2016 14:46:15 Bill Cole said: > > both in its ultimate purpose Purpose is my son’s email is in a mysql domain, and he is getting emails for a trip to Japan later this year. We need to forward all those mails from the trip

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-09 Thread Bill Cole
Perhaps against my better judgment... On 9 Feb 2016, at 17:12, @lbutlr wrote: On Tue Feb 09 2016 14:46:15 Bill Cole said: both in its ultimate purpose Purpose is my son’s email is in a mysql domain, and he is getting emails for a trip to Japan

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-08 Thread Bill Cole
On 8 Feb 2016, at 17:25, @lbutlr wrote: On Feb 8, 2016, at 8:26 AM, Bill Cole wrote: However, there's still something missing in what you've provided: "postconf -n" output. All of it. Preferably unmunged, but if you absolutely must obfuscate

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-08 Thread Viktor Dukhovni
> On Feb 8, 2016, at 10:24 PM, Bill Cole > wrote: > >> $ grep japan /usr/local/etc/postfix/virtual >> ja...@xanmax.com >> xander+ja...@xanmax.com,kris+ja...@kreme.com,lb+ja...@kreme.com > > Never gets used, because that file is for mapping

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-08 Thread Bill Cole
On 8 Feb 2016, at 0:25, LuKreme wrote: On Feb 7, 2016, at 14:12, Wietse Venema wrote: Viktor Dukhovni: On Feb 7, 2016, at 3:16 PM, @lbutlr wrote: /usr/local/etc/postfix which has a symlink at /etc/psotfix and That is unlikely. [...] No, it is

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-08 Thread @lbutlr
On Feb 8, 2016, at 8:26 AM, Bill Cole wrote: > However, there's still something missing in what you've provided: "postconf > -n" output. All of it. Preferably unmunged, but if you absolutely must > obfuscate details, do so programmatically and

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-07 Thread @lbutlr
On Sun Feb 07 2016 12:15:14 Wietse Venema said: > > @lbutlr: >> /usr/local/etc/postfix which has a symlink at /etc/psotfix and > > That is unlikely. $ ls -lsd /etc/postfix 0 lrwxr-xr-x 1 root wheel 22 Jul 20 2015 /etc/postfix ->

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-07 Thread Viktor Dukhovni
> On Feb 7, 2016, at 3:16 PM, @lbutlr wrote: > >> That is unlikely. > > $ ls -lsd /etc/postfix > 0 lrwxr-xr-x 1 root wheel 22 Jul 20 2015 /etc/postfix -> > /usr/local/etc/postfix In that case s/unlikely/unwise/ or perhaps "unlikely to be

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-07 Thread Wietse Venema
Viktor Dukhovni: > > > On Feb 7, 2016, at 3:16 PM, @lbutlr wrote: > > /usr/local/etc/postfix which has a symlink at /etc/psotfix and > > > >> That is unlikely. > > > > $ ls -lsd /etc/postfix > > 0 lrwxr-xr-x 1 root wheel 22 Jul 20 2015 /etc/postfix -> > >

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-07 Thread @lbutlr
On Sun Feb 07 2016 10:06:37 Wietse Venema said: > > @lbutlr: >> On Feb 6, 2016, at 5:33 PM, Wietse Venema wrote: >>> @lbutlr: # postmap -q ja...@example.com hash:/etc/postfix/virtual

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-07 Thread Wietse Venema
@lbutlr: > On Feb 6, 2016, at 5:33 PM, Wietse Venema wrote: > > @lbutlr: > >> # postmap -q ja...@example.com hash:/etc/postfix/virtual > >> john+ja...@example.com,kreme+ja...@kreme.com,fred+ja...@kreme.com > >> > >> The address I am redirecting to is getting sent to

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-07 Thread Wietse Venema
@lbutlr: > /usr/local/etc/postfix which has a symlink at /etc/psotfix and That is unlikely. > postmap -q -q ja...@example.com hash:/usr/local/etc/postfix/virtual returns > exactly the same results. And that is simply not possible. Perhaps someone else has time to debug made-up and incomplete

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-07 Thread LuKreme
On Feb 7, 2016, at 14:12, Wietse Venema wrote: > Viktor Dukhovni: >> >>> On Feb 7, 2016, at 3:16 PM, @lbutlr wrote: >>> /usr/local/etc/postfix which has a symlink at /etc/psotfix and >>> That is unlikely. >>> >>> $ ls -lsd /etc/postfix

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-06 Thread @lbutlr
On Fri Feb 05 2016 17:47:50 Wietse Venema said: > > Not with things that are built into Postfix. Probably with > a policy daemon (postfwd?) or external content filter. OK, how about if we look at it this way. Is it possible to redirect an email to an address based

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-06 Thread Wietse Venema
@lbutlr: > On Fri Feb 05 2016 17:47:50 Wietse Venema said: > > > > Not with things that are built into Postfix. Probably with > > a policy daemon (postfwd?) or external content filter. > > OK, how about if we look at it this way. > > Is it possible to redirect an

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-06 Thread @lbutlr
On Sat Feb 06 2016 16:46:37 Wietse Venema said: > > Use sender_bcc_maps if all you really want is to add an extra address. Oh. I didn’t know about that. But there seems to be an underlying issue. Here is the log with minimal munging for using either header_checks or

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-06 Thread Wietse Venema
@lbutlr: > # postmap -q ja...@example.com hash:/etc/postfix/virtual > john+ja...@example.com,kreme+ja...@kreme.com,fred+ja...@kreme.com > > The address I am redirecting to is getting sent to dovecot without > hitting virtual. You haven't shown that Postfix is configured to use that table.

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-05 Thread @lbutlr
Anyone? On Feb 2, 2016, at 7:42 PM, @lbutlr wrote: > > … > > Would it work to put something like this in headerchecks.pcre: > > /To:.*u...@example.com && From:.*remoteu...@example.net/ REDIRECT > u...@example.com, localu...@example.com -- There's nothing to do, so you

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-05 Thread Wietse Venema
@lbutlr: > Anyone? > > On Feb 2, 2016, at 7:42 PM, @lbutlr wrote: > > > > ? > > > > Would it work to put something like this in headerchecks.pcre: > > > > /To:.*u...@example.com && From:.*remoteu...@example.net/ REDIRECT > > u...@example.com, localu...@example.com > Not

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-05 Thread Wietse Venema
@lbutlr: > On Fri Feb 05 2016 12:51:06 Wietse Venema said: > > > > @lbutlr: > >> Would it work to put something like this in headerchecks.pcre: > >> > >> /To:.*u...@example.com && From:.*remoteu...@example.net/ REDIRECT > >> u...@example.com, localu...@example.com > >

Re: Copy mail from specific email address to specific email address to other accounts

2016-02-05 Thread @lbutlr
On Fri Feb 05 2016 12:51:06 Wietse Venema said: > > @lbutlr: >> Would it work to put something like this in headerchecks.pcre: >> >> /To:.*u...@example.com && From:.*remoteu...@example.net/ REDIRECT >> u...@example.com, localu...@example.com > > > Not if you use

Copy mail from specific email address to specific email address to other accounts

2016-02-02 Thread @lbutlr
I have a u...@example.com account that I want to bcc emails from remote u...@example.net (and only remoteuser@ewxamplenet) to another account (localu...@example.com) Only emails that match the sender address would be copied or bcd or whatever to the localuser account. I thought postfix would