On Wed, April 14, 2010 5:01 am, Stan Hoeppner said: > Gary Smith put forth on 4/13/2010 7:07 PM:
[...] > > I know some time ago someone had mentioned for the hash lookup table > > to work correctly it needed a key pair so I would think: > > > > j...@domain.tld j...@domain.tld > > > > Which is the proper way to do this. I know I did this a long time > > ago but memories fad. > > > > My intent is to rsync the source file to the postfix box, compare it > > to the local and if different replace local and then run postmap on > > the file, on a 5 minute schedule basis. > > All you need in the table is one fully qualified email address per line > and that's it. When email arrives, Postfix checks the RCPT TO: address > against /etc/postfix/relay_recipients and if a match is found Postfix > then relays the message to the host specified in transport_maps as > accepting mail for that TLD. No, indexed maps must have a right-hand side but when used with relay_recipient_maps its contents happens to be ignored. $ echo foo > table $ postmap hash:table postmap: warning: table, line 1: expected format: key whitespace value $ postmap -q foo hash:table $ echo $? 1 -- Magnus Bäck mag...@dsek.lth.se