On Sun, 2011-04-17 at 17:59:35 +0200, Reindl Harald wrote: > >> everybody on this machine should can use the machines ip-addr as > >> smtp-relay but only with domains listed on our main-server > > > > You could use check_sender_access to enforce specific sender domains. > > this was one of my thougts after lot of "googleing" > but it seems i am too stoopid to realize how to use it > > i have the table "dbma_mta" where the allowed omains are listed in > the column "mydestination" and no idea how to use this for > "check_sender_access" > > one of my guesses would be > query = select 'OK' from dbma_mta where mydestination='%d';
To accomplish your goal (as far as I understand it), instead of returning OK for known domains, the query should return REJECT when a sender domain is *not* in mydestination. > but since this is a production system and since some hours i have a > big luck that everytime i tries something no messages are sent because > of sunday :-) I can empathize with that. :) -- Sahil Tandon <sa...@freebsd.org>