On Feb 15, 2011, at 3:45 PM, Jeroen Geilman wrote: > On 02/15/2011 07:07 PM, Mike Loiterman wrote: >> I have two issues that I believe are connected so I'm putting them into one >> submission to the list: >> >> >> ISSUE 1 >> ==================================== >> I want to forward root's mail to a local user called mike. The user's email >> address is m...@ascendency.net and is a legitimate user on the system, but >> has a virtual mailbox. I've added that email address in /etc/aliases and >> run the /usr/bin/newaliases command. The problem I'm having is that root's >> email gets directed to m...@patton.ascendecny.net instead of >> m...@ascendency.net resulting in the following error: >> >> >> Reason: Remote SMTP server has rejected address >> Diagnostic code: smtp;554 5.7.1<m...@patton.ascendency.net>: Relay >> access denied >> >> >> >> ISSUE 2 >> ==================================== >> Messages sent to aliases that should point to legitimate email address on >> the server return the following error: >> >> Remote host said: 550 5.1.1<$aliasaddr...@ascendency.net>: Recipient >> address rejected: User unknown in relay recipient table >> >> >> >> >> I believe both of these issues are related to my configuration of >> relay_domains and/or relay_recipient_maps. Please see links below to links >> all relevant configuration files. >> >> >> >> DOCUMENTATION REVIEWED >> ==================================== >> 1. http://www.postfix.org/ADDRESS_CLASS_README.html >> 2. http://www.postfix.org/postconf.5.html#relay_recipient_maps >> >> >> >> VERSIONS >> ==================================== >> 1. FreeBSD - 8.1-RELEASE >> 2. PostFix - 2.7.2,1 >> 3. MySQL - 5.5.9 >> 4. Dovecot - 1.2.16 >> >> >> >> CONFIGURATION FILES >> ==================================== >> 1. postconf -n: http://pastebin.com/E0gMpmqf >> 2. postconf -m: http://pastebin.com/hC7waDmY >> 3. master.cf: http://pastebin.com/KcPTccCA >> 4. mysql_virtual_alias_maps.cf: http://pastebin.com/guqFiMQA >> 5. mysql_virtual_domains_maps.cf: http://pastebin.com/jV1iVEF8 >> 6. mysql_virtual_mailbox_maps.c: http://pastebin.com/UckJ2FQ9 >> 7. mysql_virtual_mailbox_limit_maps.cf: http://pastebin.com/6fkzV9eH >> 8. mysql_relay_domains_maps.c: http://pastebin.com/TL3y5KwG >> >> >> >> OTHER CONFIGURATION DETAILS (I have most of my configuration in mysql tables) >> ==================================== >> 1. Domain - ascendency.net >> 2. Server name - patton >> >> >> ------------------------------ >> Mike Loiterman >> Email: m...@ascendency.net >> >> > > The nature of the error messages indicates that you have your address classes > mixed up. > > Mydestination holds domains that will be delivered locally. > These can be, but should not trivially be, aliased away to virtual addresses > - it is much simpler to reverse the function of the domains, or use the > proper masquerading or canonicalizing maps. > > Likewise, virtual_mailbox_domains holds domains that will be delivered to the > virtual(8) delivery agent - or whatever you use as virtual_transport instead. > > Relay_domains contains domains you want to accept mail for, but which you > will always send onwards. > > > Now: > > The problem I'm having is that root's email gets directed to > m...@patton.ascendecny.net instead of m...@ascendency.net > > > How does it "get directed" ? > > Presumably, you aliased root to m...@patton.net. > > If, instead, you aliased root to "mike" - don't do that. > > You should not use unqualified addresses on the RHS of an alias, unless you > know /exactly/ what the result will be. > > http://www.postfix.org/postconf.5.html#myorigin > > > > And: > > Remote host said: 550 5.1.1<$aliasaddr...@ascendency.net>: Recipient address > rejected: User unknown in relay recipient table > > > This has nothing to do with aliasing; note that it thinks the address in > question is present in *relay_domains*. > > Make SURE that your domains occur in only one address class; specifying a > domain in multiple classes does not work. > This may not be immediately apparent (to you or to postfix) when they are > buried in mysql maps. > > (The contents of which would make this certain, instead of conjecture.) > > -- > J. >
Issue number 1 was a problem with an upstream relay. I have fixed since fixed my issue. The problem was that the upstream relay was using recipient verification caching before it even got to my server. Issue number 2 is still a problem for me. Yes, I have aliased root to m...@ascendency.net. Here is the log of what happens: http://pastebin.com/sXsyuMdH