Hallo,

Am 30.06.2010 18:09, schrieb Stefan:
> relay_domains = $mydestination mysql:/etc/postfix/relay_domains.cf  

was macht der Wert von $mydestination in den $relay_domains? Das passt
nicht. Entweder willst du für Empfänger dieser Domain(s) relayen oder
lokal zustellen.


> /etc/postfix/relay_domains.cf:  
> 
> user = postfix
> password = xxx
> dbname = postfix
> query = SELECT domain FROM domain WHERE domain='%s' and active = 1  
>
> [...]
> 
> Ich möchte also für alle subdomains von example.com relayen aber nicht fur
> subdomain1.example.com. Wie bilde ich das jetzt in meiner Datenbank ab?  

passe die SQL-Abfrage so an, dass sie die Subdomain nicht matcht:

SELECT domain FROM domain WHERE domain='%s' and active = 1  and domain
<> 'subdomain1.example.com'

Gruß
Christian

_______________________________________________
postfix-users mailing list
[email protected]
http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users

Antwort per Email an