virtual von Postfix in MySQL
Posted: 2004-01-15 11:22
Hallo
Ich versuche die virtual von Postfix in MySQL abzulegen. Bis jetzt läuft alles über hash einwandfrei.
MySQL ist in Postfix einkompiliert:
postconf -m
static
sdbm
pcre
nis
regexp
environ
proxy
mysql
btree
unix
hash
Ich habe in main.cf dies geändert
virtual_maps = mysql:/etc/postfix/virtual.mysql
#virtual_maps = hash:/etc/postfix/virtual
Inhalt von virtual.mysql :
host=localhost
user=xxx
pasword=xxx
dbname=mailbase
table=virtual
where_field=email
select_field=postfach
Den User xxx habe ich bei mysql erstellt und die Rechte erteilt.
In die Tebelle virtual habe ich beide Einträge wie in der virtual stehen eingegeben.
Die Fehlermeldung die ich bekomme wenn ich Mail in das eigene Account senden will:
Jan 15 11:03:01 postfix/trivial-rewrite[851]: warning: connect to mysql server localhost: Access denied for user: 'xxx@localhost' (Using password: NO)
Jan 15 11:03:01 postfix/trivial-rewrite[851]: fatal: mysql:/etc/postfix/virtual.mysql: table lookup problem
Jan 15 11:03:02 smtpd[848]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Jan 15 11:03:02 smtpd[848]: warning: resolve_clnt_query: bad read: Success
Jan 15 11:03:02 postfix/master[440]: warning: process /usr/lib/postfix/trivial-rewrite pid 851 exit status 1
Was habe ich falsch gemacht bzw. vergessen ???
Danke im vorraus
Gruß Raphael
Ich versuche die virtual von Postfix in MySQL abzulegen. Bis jetzt läuft alles über hash einwandfrei.
MySQL ist in Postfix einkompiliert:
postconf -m
static
sdbm
pcre
nis
regexp
environ
proxy
mysql
btree
unix
hash
Ich habe in main.cf dies geändert
virtual_maps = mysql:/etc/postfix/virtual.mysql
#virtual_maps = hash:/etc/postfix/virtual
Inhalt von virtual.mysql :
host=localhost
user=xxx
pasword=xxx
dbname=mailbase
table=virtual
where_field=email
select_field=postfach
Den User xxx habe ich bei mysql erstellt und die Rechte erteilt.
In die Tebelle virtual habe ich beide Einträge wie in der virtual stehen eingegeben.
Die Fehlermeldung die ich bekomme wenn ich Mail in das eigene Account senden will:
Jan 15 11:03:01 postfix/trivial-rewrite[851]: warning: connect to mysql server localhost: Access denied for user: 'xxx@localhost' (Using password: NO)
Jan 15 11:03:01 postfix/trivial-rewrite[851]: fatal: mysql:/etc/postfix/virtual.mysql: table lookup problem
Jan 15 11:03:02 smtpd[848]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Jan 15 11:03:02 smtpd[848]: warning: resolve_clnt_query: bad read: Success
Jan 15 11:03:02 postfix/master[440]: warning: process /usr/lib/postfix/trivial-rewrite pid 851 exit status 1
Was habe ich falsch gemacht bzw. vergessen ???
Danke im vorraus
Gruß Raphael