[Postfixbuch-users] Postfix Newbie

erik.neuwirth at gmx.de erik.neuwirth at gmx.de
Fr Mär 10 11:22:41 CET 2006


Hallo @all,

ich "baue" mir grad den ersten Mailserver und hab da 'n kleines
Problemchen mit den Postfächern über MYSQL. Ohne MYSQL geht's.
Hab natürlich auch des aktuelle Postfixbuch, da sind aber die Konfigs
für Postfix älter 2.2.x drinnen [(oder ich hab's noch nicht gefunden
;-)) ] Meine Postfix-Version ist die = 2.2.8

Die Fehlermeldung lautet:

[10/03/2006 11:08:10] crit mail postfix/trivial-rewrite[14133]: fatal:
mysql:/etc/postfix/mailbox.mysql(0,100): table lookup problem 

Hier mal 'n Auszug der Konfig:

# postconf -m
btree
cidr
environ
hash
mysql
nis
proxy
regexp
sdbm
static
tcp
unix




# postconf -n
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
canonical_maps = hash:/etc/postfix/canonical
config_directory = /etc/postfix
delay_warning_time = 1h
disable_dns_lookups = yes
inet_interfaces = xxx.xxx.xxx.xxx
mail_owner = postfix
mydestination = $myhostname, $mydomain, localhost, localhost.$mydomain
mydomain = testdomain.de
myhostname = mail.testdomain.de
mynetworks = xxx.xxx.xxx.0/24, 127.0.0.0/8, 
myorigin = $myhostname
relay_domains = $mydestination, echte_domain.de
relayhost = [xxx.xxx.xxx.xxx]
smtp_helo_name = mail.echte_domain.de
smtpd_banner = $myhostname ESMTP
smtpd_timeout = 300
virtual_gid_maps = mysql:/etc/postfix/ids.mysql
virtual_mailbox_base = /var/spool/maildirs
virtual_mailbox_maps = mysql:/etc/postfix/mailbox.mysql
virtual_minimum_uid = 5000
virtual_uid_maps = mysql:/etc/postfix/ids.mysql


# cat mailbox.mysql
user = postfix
password = 1q2w3e4r
hosts = localhost
dbname = mailbase
query = SELECT maildir FROM mailusers WHERE account='%s' AND active = 1



Hat jemand 'n Tipp für mich?
Ich würde die Passwörter auch gerne verschlüßelt in MYSQL ablegen,
gibt's da irgendwo 'n HOW To zu? 

Danke schon mal für Eure Hilfe!

Grüße aus Bella Bavaria

Erik



Mehr Informationen über die Mailingliste Postfixbuch-users