On Mon Feb 08 2016 20:24:45 Bill Cole <postfixlists-070...@billmail.scconsult.com> said: > > On 8 Feb 2016, at 17:25, @lbutlr wrote: > >> On Feb 8, 2016, at 8:26 AM, Bill Cole >> <postfixlists-070...@billmail.scconsult.com> 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 carefully. Also, if you use >>> ANY transport maps, include those. >> >> $ postconf -n > > Thank you. I'll pare down to what seems interesting to me. I'm still a bit > confused about what you're trying to achieve and how it relates to everything > you've provided, but there are things that seem particularly odd... > > [...] >> mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost, >> ns1.$mydomain, ns2.$mydomain, mail.$mydomain, www.$mydomain, >> webmail.$mydomain >> mydomain = covisp.net >> myhostname = mail.covisp.net > > OK, so the two domains of actual interest (xanmax.com & kreme.com) are not > local domains so must be either virtual alias domains, virtual mailbox > domains, relay domains, or domains you don't do delivery for (see > ADDRESS_CLASS_README.) MX records say they are both your responsibility, so > you should have some delivery/transport mapping for them both.
Xanmax is a mysql mapped domain. >> $ more header_checks.pcre >> /^X-Clacks-Overhead:/ IGNORE >> /^Content-Transfer-Encoding:/i PREPEND X-Clacks-Overhead: GNU Terry Pratchett >> ##/^Subject:/ WARN >> /^From:.*ja...@kreme.com/ REDIRECT ja...@xanmax.com > > So that handles redirection based on the From header, which is quirky and > imperfect (less charitably: probably wrong) but maybe you really need that. Yes, that is what I am trying to do. >> $ cat sender_bcc.pcre >> ##/^From:.*ja...@kreme.com/ REDIRECT ja...@xanmax.com > > Commented. Does absolutely nothing. Also: I don't THINK you can do a REDIRECT > in there, but only map to additional recipients, so that might not do what > you want if you uncommented it. I included the file even though it does nothing because it is still referenced in main.cf >> $ 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 > domains, of which xanmax.com is not one. Aha! That makes sense. I can make the expansion be a virtual domain then instead of a mysql domain. Well, there’s definite progress. A bounce is generated, but then the message is *also* redirected. 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 hash:/usr/local/etc/postfix/virtual xander+ja...@xanmax.com,kris+ja...@kreme.com,lb+ja...@kreme.com Feb 9 13:15:29 mail postfix/qmgr[35994]: 3q0Fp92vxlzJMjD: from=<t...@kreme.com>, size=599, nrcpt=2 (queue active) Feb 9 13:15:29 mail postfix/error[36025]: 3q0Fp92vxlzJMjD: to=<ja...@kreme.com>, orig_to=<l...@kreme.com>, relay=none, delay=0.12, delays=0.11/0.01/0/0.01, dsn=5.1.1, status=bounced (User unknown) Feb 9 13:15:29 mail postfix/cleanup[36022]: 3q0Fp93Y3dzJMjH: message-id=<3q0fp93y3dzj...@mail.covisp.net> Feb 9 13:15:29 mail postfix/bounce[36026]: 3q0Fp92vxlzJMjD: sender non-delivery notification: 3q0Fp93Y3dzJMjH Feb 9 13:15:29 mail postfix/qmgr[35994]: 3q0Fp92vxlzJMjD: removed Feb 9 13:15:29 mail postfix/qmgr[35994]: 3q0Fp93Y3dzJMjH: from=<>, size=2362, nrcpt=3 (queue active) Feb 9 13:15:29 mail postfix/local[36028]: 3q0Fp93Y3dzJMjH: to=<kris+ja...@covisp.net>, orig_to=<t...@kreme.com>, relay=local, delay=0.17, delays=0.01/0.03/0/0.12, dsn=2.0.0, status=sent (delivered to command: /usr/local/bin/procmail -t -a $EXTENSION) Feb 9 13:15:29 mail postfix/local[36030]: 3q0Fp93Y3dzJMjH: to=<lbutler+ja...@covisp.net>, orig_to=<t...@kreme.com>, relay=local, delay=0.19, delays=0.01/0.04/0/0.13, dsn=2.0.0, status=sent (delivered to command: /usr/local/bin/procmail -t -a $EXTENSION) Feb 9 13:15:29 mail dovecot: lda(xan...@xanmax.com): msgid=<3q0fp93y3dzj...@mail.covisp.net>: saved mail to japan Feb 9 13:15:29 mail postfix/pipe[36027]: 3q0Fp93Y3dzJMjH: to=<xander+ja...@xanmax.com>, orig_to=<t...@kreme.com>, relay=dovecot, delay=0.2, delays=0.01/0.01/0/0.18, dsn=2.0.0, status=sent (delivered via dovecot service)