On Fri, Mar 13, 2009 at 2:02 PM, Marcio Merlone <marcio.merl...@a1.ind.br> wrote: > Hello, >
Hi (again?), > Long time since I last deployed a postfix server, and things used to be much > simpler. :) Now I have set a Ubuntu 8.04 server to work as an > anti-spam/anti-virus gateway. Messages will be sent to amavis via > transport_maps: > > domain.tld smtp:127.0.0.1:10024 > If you use transport_maps, domain.tld can be on mydestination/relay_domains/virtual_alias_domains, the delivery method will be replace by specified on transport_maps. > and amavis will deliver the message to the final destination via smtp, > instead to this gateway server. Is this ok or bad practice? > > > Anyway, this seems to be working and the problem is that I want to refuse > mail for unknown users, so I made: > > alias_maps = hash:/etc/postfix/aliases > relay_recipient_maps = ldap:/etc/postfix/ldapusers.cf $alias_maps > relay_domains = $transport_maps > you are't using "local" LDA, so "alias_maps" no have effect. > /etc/postfix/aliases: > ti: foo, fee, bar > > ldapusers.cf points to my ldap server with my valid users, and works just > fine also. The problem is with alias_maps, wich is not recognized as valid > user, since: > > r...@jupiter:/etc/postfix# postmap -q ti hash:/etc/postfix/aliases > foo, fee, bar > r...@jupiter:/etc/postfix# > > ok, but: You need change your /etc/postfix/aliases to accept query for "u...@domain.tdl" to work on virtual_alias_maps. > > r...@jupiter:/etc/postfix# postmap -q t...@domain.tld > hash:/etc/postfix/aliases > r...@jupiter:/etc/postfix# > > This way, messages to t...@domain.tld are refused as unknown user. Any hint on > how to accomplish this? Meanwhile I'll keep searching Google, but when > searching for postfix, it comes with tons of results, will have to sort them > all. > > Thanks in advance and best regards. > > > -- > Marcio Merlone > I already explain to you about this in local postfix mailling list. -- Reinaldo de Carvalho http://korreio.sf.net http://python-cyrus.sf.net