PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix weist Benutzername und Passwort zurück



Kaimane
22.04.04, 02:18
Hallo Leute!

Endlich bin ich wieder ein Stück weiter. Allerdings hab ich es bis zum Ziel noch nicht geschafft. Momentan hänge ich bei Postfix fest.
Es soll so sein, dass Postfix sich die Daten aus einer MySQL-DB holt und nicht von /etc/aliases etc. Deshalb habe ich die main.cf so modifiziert, dass sie nun für den MySQL-Gebrauch tauglich ist. Zusätzlich habe ich SASL-Auth mitinstalliert, welches - so glaube ich - das ganze Problem darstellt. In der /var/log/auth.log steht dieses:
Apr 22 02:01:55 vserver11 postfix/smtpd[6363]: unable to open Berkeley db /etc/sasldb: No such file or directory
Und meine main.cf sieht folgendermaßen aus:
# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.

# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no
myhostname = mail.xxx.de

# basic settings
myorigin = xxx.de
mydomain = xxx.de
mydestination = $myhostname, localhost.$mydomain,
mynetworks = 127.0.0.0/8
relayhost =

mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +

# virtual domain and delivery settings
virtual_mailbox_limit = 10000000
virtual_mailbox_base = /home/vmail/
virtual_uid_maps = static:1008
virtual_gid_maps = static:1008
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
transport_maps = mysql:/etc/postfix/mysql-transport.cf
virtual_maps = mysql:/etc/postfix/mysql-virtual.cf

# define which email is accepted for delivery only
# alias_maps means: addresses in the MySQL aliase table
# virtual_mailbox_maps: addresses in the MySQL virtual table
# unix:passwd.byname: addresses of local users in /etc/passwd (optional)
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname

# settings for authenticated SMTP
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_relay_domains
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

message_size_limit = 10000000
Könnt ihr dort irgendeinen Fehler entdecken, warum ich mich per Outlook nicht mit dem SMTP-Server connecten kann?

Danke im Voraus!

stefaan
22.04.04, 08:28
Servus!

Du musst Postfix auch sagen, dass es gegen die MySQL-Datenbank authentifizieren soll...
Steht hier auch dabei:
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html

Grüße, Stefan

Kaimane
22.04.04, 12:03
Sorry, bin noch nicht so fit in Linux. Wo finde ich denn das, was ich brauche?
Andere Frage, ist die main.cf denn so richtig eingestellt?