When I mean it doesn't work is that anytime I use any sort of aliases (domain 
--> domain via Zimbra's GUI) or a simple forwarder (userdne   -------> 
userexists in /etc/aliases) it never works with a milter however sending to the 
original/real addresses always works.

++++++++++++++++++++++++++++++++++++++++++++

This a an example of working NON-MILTERED TRANSACTION:

Jan 16 13:19:52 zimbra postfix/smtpd[13047]: dict_proxy_lookup: 
table=ldap:/opt/zimbra/conf/ldap-vam.cf flags=lock|fold_fix 
key=@zimbra.koala.somedomain.com -> status=0 result=@zimbra.dev.somedomain.com
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: maps_find: virtual_alias_maps: 
proxy:ldap:/opt/zimbra/conf/ldap-vam.cf(0,lock|fold_fix): 
@zimbra.koala.somedomain.com = @zimbra.dev.somedomain.com
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: mail_addr_find: 
a...@zimbra.koala.somedomain.com -> @zimbra.dev.somedomain.com


Jan 16 13:19:52 zimbra postfix/smtpd[13047]: generic_checks: 
name=reject_unlisted_recipient status=0
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: generic_checks: 
name=reject_non_fqdn_sender
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: reject_non_fqdn_address: 
agmailu...@gmail.com
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: generic_checks: 
name=reject_non_fqdn_sender status=0
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: generic_checks: 
name=reject_unknown_sender_domain
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: reject_unknown_address: 
agmailu...@gmail.com
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: ctable_locate: move existing entry 
key agmailu...@gmail.com
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: reject_unknown_mailhost: gmail.com
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: lookup gmail.com type MX flags 0
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: dns_query: gmail.com (MX): OK
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: dns_get_answer: type MX for 
gmail.com
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: last message repeated 4 times
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: generic_checks: 
name=reject_unknown_sender_domain status=0
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: generic_checks: name=permit
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: match_list_match: permit: no match
Jan 16 13:19:52 zimbra postfix/smtpd[13047]: generic_checks: name=permit 
status=1

Jan 16 13:19:52 zimbra postfix/smtpd[13047]: >>> END Recipient address 
RESTRICTIONS <<<

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

This is an example of non-WORKING MILTERED TRANSACTION


Jan 17 11:49:02 zimbra postfix/smtpd[26986]: dict_proxy_lookup: 
table=ldap:/opt/zimbra/conf/ldap-vam.cf flags=lock|fold_fix 
key=a...@zimbra.koala.somedomain.com -> status=0 
result=a...@zimbra.dev.somedomain.com
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: maps_find: virtual_alias_maps: 
proxy:ldap:/opt/zimbra/conf/ldap-vam.cf(0,lock|fold_fix): 
a...@zimbra.koala.somedomain.com = a...@zimbra.dev.somedomain.com
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: mail_addr_find: 
a...@zimbra.koala.somedomain.com -> a...@zimbra.dev.somedomain.com



Jan 17 11:49:02 zimbra postfix/smtpd[26986]: generic_checks: 
name=reject_unlisted_recipient status=0
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: generic_checks: 
name=reject_non_fqdn_sender
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: reject_non_fqdn_address: 
aho...@hotmail.com
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: generic_checks: 
name=reject_non_fqdn_sender status=0
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: generic_checks: 
name=reject_unknown_sender_domain
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: reject_unknown_address: 
aho...@hotmail.com
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: ctable_locate: move existing entry 
key aho...@hotmail.com
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: reject_unknown_mailhost: 
hotmail.com
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: lookup hotmail.com type MX flags 0
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: dns_query: hotmail.com (MX): OK
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: dns_get_answer: type MX for 
hotmail.com
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: last message repeated 4 times
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: generic_checks: 
name=reject_unknown_sender_domain status=0
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: generic_checks: name=permit
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: match_list_match: permit: no match
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: generic_checks: name=permit 
status=1

Jan 17 11:49:02 zimbra postfix/smtpd[26986]: >>> END Recipient address 
RESTRICTIONS <<<
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: report recipient to all milters 
(flags=0x0)
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: milter_macro_lookup: "i"
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: milter_macro_lookup: "{rcpt_addr}"
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: ctable_locate: move existing entry 
key a...@zimbra.koala.somedomain.com
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: milter_macro_lookup: result 
"a...@zimbra.koala.somedomain.com"
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: milter_macro_lookup: "{rcpt_host}"
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: ctable_locate: leave existing 
entry key a...@zimbra.koala.somedomain.com
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: milter_macro_lookup: result "5.1.1 
User unknown in virtual alias table"
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: milter_macro_lookup: 
"{rcpt_mailer}"
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: ctable_locate: leave existing 
entry key a...@zimbra.koala.somedomain.com
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: milter_macro_lookup: result "error"
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: milter8_rcpt_event: milter 
inet:zimbra.dev.somedomain.com:7026: rcpt <a...@zimbra.koala.somedomain.com>
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: event: SMFIC_RCPT; macros: 
{rcpt_addr}=a...@zimbra.koala.somedomain.com {rcpt_host}=5.1.1 User unknown in 
virtual alias table {rcpt_mailer}=error
Jan 17 11:49:02 zimbra postfix/smtpd[26986]: reply: SMFIR_REPLYCODE data 23 
bytes



Jan 17 11:49:02 zimbra postfix/smtpd[26986]: NOQUEUE: milter-reject: RCPT from 
mail-ie0-f175.google.com[209.85.223.175]: 550 5.1.1 User unknown; 
from=<aho...@hotmail.com> to=<a...@zimbra.koala.somedomain.com> proto=ESMTP 
helo=<mail-ie0-f175.google.com>












> Date: Fri, 18 Jan 2013 16:31:36 -0600
> From: njo...@megan.vbhcs.org
> To: postfix-users@postfix.org
> Subject: Re: Milters and Aliasing
> 
> On 1/18/2013 3:56 PM, Amir A. wrote:
> > My Problem:
> > I have a vanilla Zimbra setup that I have been trying to implement
> > either Before Queue Mail filtering or Milter Based Filtering.
> > At first I tried doing a Pre-queue setup with amavisd-new but I ran
> > into the problem where aliasing wouldn't work. 
> 
> You'll need to quantify "wouldn't work".  Give details of what
> happened vs. what you expected.
> 
> For the record, there is no underlying incompatibility between
> aliases and milters/filters.
> 
> > I tried again after
> > much testing with j-chkmail as a milter. It seems to work well
> > enough except when I use any sort of alias. 
> 
> Explain.
> 
> 
> > I thought it might be
> > somehow linked to Zimbra's use of LDAP however even an alias in
> > /etc/aliases doesn't work, it doesn't seem to get past the first
> > smtpd line
> 
> explain what you mean here.  Note that /etc/aliases only apply
> during local delivery, ie. domains listed in mydestination and
> delivered by the postfix local(8) delivery agent.
> 
> > 
> > 
> > Beginning of master.cf:
> > smtp      inet  n       -       n       -       -       smtpd -vv
> 
> Verbose logging is more likely to obscure the issue than solve it;
> remove the -vv.
> 
> No glaring errors in your config.  Without context it's impossible
> to give more advice.
> 
> 
>   -- Noel Jones
                                          

Reply via email to