Unsupported dictionary type: mysql

Bonjour,

j’ai installé postfix ainsi que roundcube, j’ai créer une adresse courriel via postfix, j’arrive bien a me connecter a round cube avec les identifiants crées sur postfix mais je n’arrive pas a envoyer de mail ou du moins ils ne partent pas et je n’en recoit pas.

j’ai testé d’en envoyer un via le terminal :

et quand je regarde mes logs j’ai une erreur bizarre.

mysql_virtual_alias_maps.cf

[quote]
hosts = localhost
user = postfix
password = ********
dbname = postfix
query = SELECT goto FROM alias WHERE address=’%s’ AND active = 1[/quote]
merci

edit

j’ai vu sur un forum anglais quelqu’un qui avais un problème similaire au mien mais sur une autre distri et apparemment
il s’agissait que postfix n’etais pas compilé avec mysql .

root@cluster:~# postconf -m btree cidr environ fail hash internal proxy regexp sdbm static tcp texthash unix

merci de me le confirmer

As-tu installé le paquet postfix-mysql ?

oui tout est installé mais en faite je croit savoir mais suis pas sur, en faite j’avais supprimé sans faire expres le repertoire postfix dans
/usr/share/postfix/ je les reinstallé mais je pense qu’il ne c’est pas compilé correctement ce qui me fou la pagaille.

je vient de passer deux jours a mettre en place ce serveur avec tout les modules que j’avais besoins, il ne me restais plus que la partie webamail et j’ai déconné, pas trop envie de tout recommencer alors je cherche une solution pour remédier a ce problème, j’ai beau chercher sur le net mais je trouve pas trop de solution.

j’ai revérifié tout mes paramétres de postfix et ca ma l’air correct, voici les fichiers principaux de postfix.

main.cf

[quote]biff = no
disable_vrfy_command = yes
smtpd_helo_required = yes
append_dot_mydomain = no
mydestination = cluster.nexoop.com, localhost.nexoop.com, localhost
mydomain = nexoop.com
myhostname = cluster.nexoop.com
relayhost =
inet_interfaces = all

smtpd_sender_restrictions =
permit_mynetworks,
reject_unknown_sender_domain,
warn_if_reject reject_unverified_sender

smtpd_recipient_restrictions =
permit_mynetworks,
reject_unauth_destination,
reject_unknown_recipient_domain,
reject_non_fqdn_recipient

smtpd_client_restrictions =
reject_unknown_client,
permit_mynetworks

mynetworks = 127.0.0.0/8 94.23.217.87

#readme_directory =
inet_protocols = all
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
virtual_mailbox_base = /home/cluster

virtual_transport = dovecot

virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains.cf

smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unauth_pipelining,
reject_invalid_hostname

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
myorigin = /etc/mailname
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 101200000
recipient_delimiter =
[/quote]

master.cf

[quote]#

Postfix master process configuration file. For details on the format

of the file, see the master(5) manual page (command: “man 5 master”).

Do not forget to execute “postfix reload” after editing this file.

==========================================================================

service type private unpriv chroot wakeup maxproc command + args

(yes) (yes) (yes) (never) (100)

==========================================================================

smtp inet n - n - - smtpd
#smtp inet n - - - 1 postscreen
#smtpd pass - - - - - smtpd
#dnsblog unix - - - - 0 dnsblog
#tlsproxy unix - - - - 0 tlsproxy
#submission inet n - - - - smtpd

-o syslog_name=postfix/submission

-o smtpd_tls_security_level=encrypt

-o smtpd_sasl_auth_enable=yes

-o smtpd_client_restrictions=permit_sasl_authenticated,reject

-o milter_macro_daemon_name=ORIGINATING

#smtps inet n - - - - smtpd

-o syslog_name=postfix/smtps

-o smtpd_tls_wrappermode=yes

-o smtpd_sasl_auth_enable=yes

-o smtpd_client_restrictions=permit_sasl_authenticated,reject

-o milter_macro_daemon_name=ORIGINATING

#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp

-o smtp_helo_timeout=5 -o smtp_connect_timeout=5

showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache

====================================================================

Interfaces to non-Postfix software. Be sure to examine the manual

pages of the non-Postfix software to find out what options it wants.

Many of the following services use the Postfix pipe(8) delivery

agent. See the pipe(8) man page for information about ${recipient}

and other message envelope options.

====================================================================

maildrop. See the Postfix MAILDROP_README file for details.

Also specify in main.cf: maildrop_destination_recipient_limit=1

maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}

====================================================================

Recent Cyrus versions can use the existing “lmtp” master.cf entry.

Specify in cyrus.conf:

lmtp cmd=“lmtpd -a” listen=“localhost:lmtp” proto=tcp4

Specify in main.cf one or more of the following:

mailbox_transport = lmtp:inet:localhost

virtual_transport = lmtp:inet:localhost

====================================================================

Cyrus 2.1.5 (Amos Gouaux)

Also specify in main.cf: cyrus_destination_recipient_limit=1

#cyrus unix - n n - - pipe

user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}

====================================================================

Old example of delivery via Cyrus.

#old-cyrus unix - n n - - pipe

flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}

====================================================================

See the Postfix UUCP_README file for configuration details.

uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)

Other external delivery methods.

ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
[/quote]

authmysqlrc

[quote]MYSQL_SERVER localhost

MYSQL_USERNAME postfix

MYSQL_PASSWORD ********

MYSQL_PORT 0

MYSQL_OPT 0

MYSQL_DATABASE postfix

MYSQL_USER_TABLE mailbox

MYSQL_CRYPT_PWFIELD password

MYSQL_UID_FIELD 2000

MYSQL_GID_FIELD 2000

MYSQL_LOGIN_FIELD postfix

MYSQL_HOME_FIELD “/var/spool/vmail/”

MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(maildir,’@’,-1),’/’,SUBSTRING_INDEX(maildir,’@’,1),’/’)

MYSQL_QUOTA_FIELD quota[/quote]

mysql_virtual_alias_maps.cf

[quote]hosts = 127.0.0.1
user = postfix
password = ********
dbname = postfix
query = SELECT goto FROM alias WHERE address=’%s’ AND active = 1[/quote]
après je revue plusieurs tuto d’installe et je pense que ma config est correct

l’erreur dans les logs :

[quote]Jul 9 20:21:24 cluster postfix/pickup[7744]: D59189800B0: uid=0 from=
Jul 9 20:21:24 cluster postfix/cleanup[10162]: D59189800B0: message-id=20120709182124.D59189800B0@cluster.nexoop.com
Jul 9 20:21:24 cluster postfix/proxymap[9978]: warning: mysql:/etc/postfix/mysql_virtual_alias_maps.cf is unavailable. unsupported dictionary type: mysql
Jul 9 20:21:24 cluster postfix/cleanup[10162]: warning: proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf lookup error for "contact@nexoop.com"
Jul 9 20:21:24 cluster postfix/cleanup[10162]: warning: D59189800B0: virtual_alias_maps map lookup problem for contact@nexoop.com – deferring delivery[/quote]

merci

[b]edit

j’ai trouvé ce lien qui parle de mon probleme : generation-nt.com/previsuali … 38201.html

en faite il me manque un fichier, quelqu’un l’aurait il ?
j’ai :

[quote]root@cluster:~# postconf -m
btree
cidr
environ
fail
hash
internal
proxy
regexp
sdbm
static
tcp
texthash
unix [/quote]

je devrais avoir :

[quote]btree
cidr
environ
hash
internal
mysql
nis
proxy
regexp
sdbm
static
tcp
unix[/quote]
merci[/b]

config : debian 6 squeeze 64

bon problème resolu, j’ai desinstaller tout postif et postfi-mysql avec remove et purge j’ai reinstallé et c’est ok, une erreur de config quand j’ai reinstallé postfix je n’avais pas supprimé ma config donc gros bordel, maintenant c’est ok. merci a ceux qui on pris le temps de me répondre.

Coche verte!!!

Comme je le demandais aussi ici: sub-process-usr-bin-dpkg-returned-an-error-code-1-t39535.html#p398921

Et tant qu’on y est: ***** À LIRE AVANT DE POSTER *****

Merci.