[postfix-users] Versand an alias beschränken und pgsql_table
    Robert Schetterer 
    robert at schetterer.org
       
    Do Sep 18 11:20:48 CEST 2008
    
    
  
Andreas Moroder schrieb:
> Hallo Alex,
> 
>  > /etc/postfix/main.cf:
>  >      smtpd_recipient_restrictions =
>  >          check_recipient_access
>  > hash:/etc/postfix/protected_destinations
>  >          ...the usual stuff...
> 
>  >      smtpd_restriction_classes = insiders_only
>  >      insiders_only = check_sender_access hash:/etc/postfix/insiders,
>  > reject
> 
>  > /etc/postfix/protected_destinations:
>  >      all at my.domain   insiders_only
>  >      all at my.hostname insiders_only
>  >
>  > /etc/postfix/insiders:
>  >      my.domain       OK  matches my.domain and subdomains
>  >      another.domain  OK  matches another.domain and subdomains
> 
>  > Das sollte deinem Zweck entsprechen.
> 
>  > Grüße Alex
> 
> hier sehe ich aber keinen Hinweise auf pgsql_table. Werden die Regeln in 
> diesem Beispiel nicht alle aus Dateien gelesen ? Meine ursprüngliche 
> Frage betrifft aber gerade die Möglichkeit die Daten aus postgres zu lesen.
> 
> Grüße
> Andreas
> 
> _______________________________________________
> postfix-users mailing list
> postfix-users at de.postfix.org
> http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
Hallo Andreas,
die logic bleibt dieselbe, ohne die obenstehende
ueberprueft zu haben
wenn du also eine datenbank hernehmen willst muss
in deren tabelle etwas aehnliches drinnstehen
mit mysql zb etwa so
check_sender_access mysql:/etc/postfix/insiders_mysql.cf
/etc/postfix/insiders_mysql.cf
user =  datenbankuser
password =  datenbankuserpasswort
hosts =  ip der datenbank
dbname =  datenbankname
query = deine Abfrage ( SELECT address from usw )
-- 
Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
    
    
More information about the postfix-users
mailing list