ich versuche seit einigen Tagen Maildrop in Postfix mit MySQL unterstützung einzubinden, hab auch "eigendlich" alles richtig, doch maildrop bzw. Postfix will nicht. Ich durchstöber auch schon seit längerer Zeit google.de/linux ohne Erfolg...
Meine main.cf sieht folgendermaßen aus :
Code: Alles auswählen
# 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 = maggy.technik.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = technik.local, maggy.technik.local, localhost.technik.local, localhost
relayhost = smtprelay.t-online.de
mynetworks = 127.0.0.0/8 192.168.1.0/24
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
home_mailbox = Maildir/
mydestination = $myhostname, $transport_maps
content_filter = smtp-amavis:[127.0.0.1]:10024
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
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
virtual_mailbox_base = /home/vmail/mail
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual-gid.cf
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
maps_rbl_domains = relays.ordb.org,
dev.null.dk,
spews.relays.osirusoft.com,
spamhaus.relays.osirusoft.com,
opm.blitzed.org
smtpd_sasl_local_domain = $myhostname
amtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
Code: Alles auswählen
hostname localhost
socket /var/run/mysqld/mysqld.sock
port 3306
database maildb
dbuser user
dbpw pass
dbtable postfix_users
default_uidnumber 1011
default_gidnumber 1011
uid_field email
uidnumber_field uid
gidnumber_field gid
maildir_field maildir
homedirectory_field homedir
quota_field quota
# unused for now, but needs to be a valid field.
mailstatus_field postfix
where_clause "where postfix = 'y'"
Code: Alles auswählen
# Global maildrop filter file
# Uncomment this line to make maildrop default to ~/Maildir for
# delivery- this is where courier-imap (amongst others) will look.
#DEFAULT="$HOME/Maildir"
Ich benutze das Maildirformat, doch wenn ich jetzt ne mail an einen der User schicke, die in der MySQL-Datenbank enthalten sind, bekomme ich folgende Meldung und die Mail bleibt in der queue liegen...:
Code: Alles auswählen
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
69CC9C01DA8 748 Mon Nov 24 15:56:48 root@technik.local
(temporary failure. Command output: /usr/bin/maildrop: Cannot set my user or group id. )
mabu@linux.technik.local
-- 0 Kbytes in 1 Request.
Für Lösungsvorschläge wäre ich sehr dankbar, hab schon alles versucht, doch keinen Erfolg gehabt !!!
mfg Mabu