Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 22/04/2008, à 13:24

nuxia

[postfix] problème d'envoi de mail

Bonjour !
J’ai installé un serveur de messagerie constitué principalement de « Postfix, LDAP, Courier » sur Debian. Apparemment tout semble être bien configuré, j’ai créé un utilisateur test  avec lequel j’ai déjà exécuté postmap pour vérifer que postfix communique bien avec LDAP, et courierauthtest pour vérifier si POP3 et IMAP sont opérationnels, tout s’est bien passé.

Et le problème c’est que, lorsque j’essaie d’envoyer un mail, avec la commande : mail test@univ-antsiranana.mg je trouve tout ceci dans le log :

Apr 22 13:43:13 localhost postfix/smtpd[21424]: disconnect from localhost.localdomain[127.0.0.1]
Apr 22 13:43:41 localhost postfix/qmgr[21211]: warning: connect to transport amavis : No such file or directory
Apr 22 13:44:41 localhost postfix/qmgr[21211]: warning: connect to transport amavis : No such file or directory
Apr 22 13:45:41 localhost postfix/qmgr[21211]: warning: connect to transport amavis : No such file or directory
Apr 22 13:46:41 localhost postfix/qmgr[21211]: warning: connect to transport amavis : No such file or directory
Apr 22 13:46:55 localhost postfix/pickup[21210]: BADB22075A7: uid=0 from=<root>
Apr 22 13:46:55 localhost postfix/cleanup[21691]: BADB22075A7: message-id=<20080422104655.BADB22075A7@firewall.univ-antsiranana.mg>
Apr 22 13:46:55 localhost postfix/qmgr[21211]: BADB22075A7: from=<root@univ-antsiranana.mg>, size=334, nrcpt=1 (queue active)
Apr 22 13:46:55 localhost postfix/smtp[21693]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Apr 22 13:46:55 localhost postfix/smtp[21693]: BADB22075A7: to=<test@univ-antsiranana.mg>, relay=none, delay=0, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)

Voici le résultat de la commande postconf –n :

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
home_mailbox = Maildir/
inet_interfaces = all
luser_relay = 
mailbox_size_limit = 0
mydestination = firewall.univ-antsiranana.mg, localhost.univ-antsiranana.mg, localhost
myhostname = firewall.univ-antsiranana.mg
mynetworks = 127.0.0.O/8 192.168.0.O/24
myorigin = univ-antsiranana.mg
recipient_delimiter = +
relayhost = 
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/proxy-cert.pem
smtpd_tls_key_file = /etc/postfix/proxy-key.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
virtual_gid_maps = static:1006
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
virtual_minimum_uid = 100
virtual_uid_maps = static:1006

Et enfin voici le contenu de master.cf :

smtp      inet  n       -       n       -       -       smtpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
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
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil

maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
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 -d -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}

amavis    unix  -       -       n       -       2       smtp
	 	-o smtp_data_done_timeout=1200
		-o disable_dns_lookups=yes

127.0.0.1:10025 inet 	n 	-	n 	-  	- 	smtpd

	 	-o content_filter=
		-o local_recipient_maps=
		-o relay_recipient_maps=
		-o smtpd_restriction_classes=
		-o smtpd_client_restrictions=
		-o smtpd_helo_restrictions=
		-o smtpd_sender_restrictions=
		-o smtpd_recipient_restrictions=permit_mynetworks,reject
		-o mynetworks=127.0.0.0/8
		-o strict_rfc821_envelopes=yes

Pouvez vous m’aider? Ça fait longtemps que je suis calée.
Merci d’avance

Hors ligne

#2 Le 22/04/2008, à 13:28

toniotonio

Re : [postfix] problème d'envoi de mail

c'est amavisd qui ne tourne pas


Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#3 Le 22/04/2008, à 15:39

nuxia

Re : [postfix] problème d'envoi de mail

Merci de m'avoir déjà répondu.
J'ai essayé de redémarrer amavis, et juste après, j'ai recueilli ceci de log:

Apr 22 14:55:30 localhost amavis[24338]: Found $unarj      at /usr/bin/arj
Apr 22 14:55:30 localhost amavis[24338]: Found $uncompress at /bin/uncompress
Apr 22 14:55:30 localhost amavis[24338]: No $unfreeze,     not using it
Apr 22 14:55:30 localhost amavis[24338]: No $unrar,        not using it
Apr 22 14:55:30 localhost amavis[24338]: Found $zoo        at /usr/bin/zoo
Apr 22 14:55:30 localhost amavis[24338]: Found $cpio       at /bin/cpio
Apr 22 14:55:30 localhost amavis[24338]: Using internal av scanner code for (primary) Clam Antivirus-clamd
Apr 22 14:55:30 localhost amavis[24338]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan
Apr 22 14:55:30 localhost amavis[24338]: TROUBLE in pre_loop_hook: QUARANTINEDIR directory not writable: /var/lib/amavis/virusmails at /usr/sbin/amavisd-new line 5060.
Apr 22 14:55:41 localhost postfix/qmgr[21211]: warning: connect to transport amavis : No such file or directory

Et lorsque j'ai essayé de voir la ligne 5060 de /usr/sbin/amavisd-new, et j'ai vu ceci :
elsif (-d _ && !-w _) { die "QUARANTINEDIR directory not writable: $name" }

Dois-je reconfigurer amavis ou ... ? et comment?
Merci

Hors ligne

#4 Le 22/04/2008, à 15:44

nuxia

Re : [postfix] problème d'envoi de mail

Merci de m'avoir déjà répondu.
J'ai essayé de redémarrer amavis, et juste après, j'ai recueilli ceci de log:

Apr 22 14:55:30 localhost amavis[24338]: Found $unarj      at /usr/bin/arj
Apr 22 14:55:30 localhost amavis[24338]: Found $uncompress at /bin/uncompress
Apr 22 14:55:30 localhost amavis[24338]: No $unfreeze,     not using it
Apr 22 14:55:30 localhost amavis[24338]: No $unrar,        not using it
Apr 22 14:55:30 localhost amavis[24338]: Found $zoo        at /usr/bin/zoo
Apr 22 14:55:30 localhost amavis[24338]: Found $cpio       at /bin/cpio
Apr 22 14:55:30 localhost amavis[24338]: Using internal av scanner code for (primary) Clam Antivirus-clamd
Apr 22 14:55:30 localhost amavis[24338]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan
Apr 22 14:55:30 localhost amavis[24338]: TROUBLE in pre_loop_hook: QUARANTINEDIR directory not writable: /var/lib/amavis/virusmails at /usr/sbin/amavisd-new line 5060.
Apr 22 14:55:41 localhost postfix/qmgr[21211]: warning: connect to transport amavis : No such file or directory

Et lorsque j'ai essayé de voir la ligne 5060 de /usr/sbin/amavisd-new, et j'ai vu ceci :
elsif (-d _ && !-w _) { die "QUARANTINEDIR directory not writable: $name" }

Dois-je reconfigurer amavis ou ... ? et comment?
Merci

Hors ligne

#5 Le 22/04/2008, à 15:47

nuxia

Re : [postfix] problème d'envoi de mail

Merci de m'avoir déjà répondu.
J'ai essayé de redémarrer amavis, et juste après, j'ai recueilli ceci de log:

Apr 22 14:55:30 localhost amavis[24338]: Found $unarj      at /usr/bin/arj
Apr 22 14:55:30 localhost amavis[24338]: Found $uncompress at /bin/uncompress
Apr 22 14:55:30 localhost amavis[24338]: No $unfreeze,     not using it
Apr 22 14:55:30 localhost amavis[24338]: No $unrar,        not using it
Apr 22 14:55:30 localhost amavis[24338]: Found $zoo        at /usr/bin/zoo
Apr 22 14:55:30 localhost amavis[24338]: Found $cpio       at /bin/cpio
Apr 22 14:55:30 localhost amavis[24338]: Using internal av scanner code for (primary) Clam Antivirus-clamd
Apr 22 14:55:30 localhost amavis[24338]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan
Apr 22 14:55:30 localhost amavis[24338]: TROUBLE in pre_loop_hook: QUARANTINEDIR directory not writable: /var/lib/amavis/virusmails at /usr/sbin/amavisd-new line 5060.
Apr 22 14:55:41 localhost postfix/qmgr[21211]: warning: connect to transport amavis : No such file or directory

Et lorsque j'ai essayé de voir la ligne 5060 de /usr/sbin/amavisd-new, et j'ai vu ceci :
elsif (-d _ && !-w _) { die "QUARANTINEDIR directory not writable: $name" }

Dois-je reconfigurer amavis ou ... ? et comment?
Merci

Hors ligne

#6 Le 22/04/2008, à 16:13

toniotonio

Re : [postfix] problème d'envoi de mail

le message d'erreur dit:

QUARANTINEDIR directory not writable: /var/lib/amavis/virusmails

donc (si ton user qui fait tourner amavis est amavis)

chown -R amavis: /var/lib/amavis/

Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#7 Le 22/04/2008, à 17:49

nuxia

Re : [postfix] problème d'envoi de mail

J'ai fait
# chown -R amavis: /var/lib/amavis/
Puis j'ai réessayé de redémarrer amavis après, j'ai regardé dans les logs, la ligne :

Apr 22 14:55:30 localhost amavis[24338]: TROUBLE in pre_loop_hook: QUARANTINEDIR directory not writable: /var/lib/amavis/virusmails at /usr/sbin/amavisd-new line 5060.

a disparu, il a redémarré de façon normale.
Mais le message :

Apr 22 14:55:41 localhost postfix/qmgr[21211]: warning: connect to transport amavis : No such file or directory

s'affiche encore toutes les minutes.

Hors ligne

#8 Le 22/04/2008, à 18:40

nuxia

Re : [postfix] problème d'envoi de mail

J'ai essayé aussi d'envoyer un mail, et voici ce que j'ai vu dans le log :

Apr 22 18:56:32 localhost postfix/pickup[636]: E04542075AD: uid=0 from=<root>
Apr 22 18:56:32 localhost postfix/cleanup[1060]: E04542075AD: message-id=<20080422155632.E04542075AD@firewall.univ-antsiranana.mg>
Apr 22 18:56:32 localhost postfix/qmgr[637]: E04542075AD: from=<root@univ-antsiranana.mg>, size=332, nrcpt=1 (queue active)
Apr 22 18:56:33 localhost postfix/smtpd[1065]: unable to get private key from '/etc/postfix/proxy-key.pem'
Apr 22 18:56:33 localhost postfix/smtpd[1065]: 1065:error:02001002:system library:fopen:No such file or directory:bss_file.c:278:fopen('/etc/postfix/proxy-key.pem','r'):
Apr 22 18:56:33 localhost postfix/smtpd[1065]: 1065:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:280:
Apr 22 18:56:33 localhost postfix/smtpd[1065]: 1065:error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib:ssl_rsa.c:693:
Apr 22 18:56:33 localhost postfix/smtpd[1065]: TLS engine: cannot load RSA cert/key data
Apr 22 18:56:33 localhost postfix/smtpd[1065]: connect from localhost.localdomain[127.0.0.1]
Apr 22 18:56:33 localhost postfix/smtpd[1065]: EAB4D2075B1: client=localhost.localdomain[127.0.0.1]
Apr 22 18:56:34 localhost postfix/cleanup[1060]: EAB4D2075B1: message-id=<20080422155632.E04542075AD@firewall.univ-antsiranana.mg>
Apr 22 18:56:34 localhost postfix/qmgr[637]: EAB4D2075B1: from=<root@univ-antsiranana.mg>, size=826, nrcpt=1 (queue active)
Apr 22 18:56:34 localhost postfix/smtpd[1065]: disconnect from localhost.localdomain[127.0.0.1]
Apr 22 18:56:34 localhost amavis[752]: (00752-01) Passed, <root@univ-antsiranana.mg> -> <test@univ-antsiranana.mg>, Message-ID: <20080422155632.E04542075AD@firewall.univ-antsiranana.mg>, Hits: -
Apr 22 18:56:34 localhost postfix/smtp[1062]: E04542075AD: to=<test@univ-antsiranana.mg>, relay=127.0.0.1[127.0.0.1], delay=2, status=sent (250 2.6.0 Ok, id=00752-01, from MTA: 250 Ok: queued as EAB4D2075B1)
Apr 22 18:56:34 localhost postfix/qmgr[637]: E04542075AD: removed
Apr 22 18:56:35 localhost postfix/smtp[1066]: EAB4D2075B1: to=<test@univ-antsiranana.mg>, relay=none, delay=2, status=bounced (mail for univ-antsiranana.mg loops back to myself)
Apr 22 18:56:35 localhost postfix/cleanup[1060]: D52482075B2: message-id=<20080422155635.D52482075B2@firewall.univ-antsiranana.mg>
Apr 22 18:56:36 localhost postfix/qmgr[637]: D52482075B2: from=<>, size=2655, nrcpt=1 (queue active)
Apr 22 18:56:36 localhost postfix/qmgr[637]: EAB4D2075B1: removed
Apr 22 18:56:36 localhost postfix/smtp[1066]: D52482075B2: to=<root@univ-antsiranana.mg>, relay=none, delay=1, status=bounced (mail for univ-antsiranana.mg loops back to myself)
Apr 22 18:56:36 localhost postfix/qmgr[637]: D52482075B2: removed
Apr 22 18:57:03 localhost postfix/qmgr[637]: warning: connect to transport amavis : No such file or directory
Apr 22 18:57:36 localhost postfix/smtpd[1107]: unable to get private key from '/etc/postfix/proxy-key.pem'
Apr 22 18:57:36 localhost postfix/smtpd[1107]: 1107:error:02001002:system library:fopen:No such file or directory:bss_file.c:278:fopen('/etc/postfix/proxy-key.pem','r'):
Apr 22 18:57:36 localhost postfix/smtpd[1107]: 1107:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:280:
Apr 22 18:57:36 localhost postfix/smtpd[1107]: 1107:error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib:ssl_rsa.c:693:
Apr 22 18:57:36 localhost postfix/smtpd[1107]: TLS engine: cannot load RSA cert/key data
Apr 22 18:57:46 localhost postfix/smtpd[1107]: connect from unknown[213.154.70.8]
Apr 22 18:57:46 localhost postfix/smtpd[1107]: lost connection after CONNECT from unknown[213.154.70.8]
Apr 22 18:57:46 localhost postfix/smtpd[1107]: disconnect from unknown[213.154.70.8]
Apr 22 18:58:03 localhost postfix/qmgr[637]: warning: connect to transport amavis : No such file or directory

Là, je suis en train de me perdre. Dois-je régénérer un autre certificat? et que faire de amavis?
Merci de vos réponses.

Hors ligne

#9 Le 25/04/2008, à 06:34

nuxia

Re : [postfix] problème d'envoi de mail

Pourtant, j'ai essayé d'exécuter cette commande :
#telnet 127.0.0.1 10024

Trying 127.0.0.1...
 Connected to 127.0.0.1...
 Escape character is '^]'.
 220 [127.0.0.1] ESMTP amavisd-new service ready
 helo univ-antsiranana.mg
 250 [127.0.0.1]
 mail from: <root@univ-antsiranana.mg>
 250 2.1.0 Sender root@univ-antsiranana.mg OK
 Connection closed by foreign host.
 250 2.1.5 Recipient test@univ-antsiranana.mg OK
 data
 354 End data with <CR><LF>.<CR><LF>
 from: <root@univ-antsiranana.mg>
 salut
 .
 250 2.6.0 Ok, id=03379-a02, from MTA: 250 Ok:queued as 4BD0F2075C2
 quit
 221 2.0.0 [127.0.0.1] (amavisd) closing transmission channel
 rcpt to: <test@univ-antsiranana.mg>

et lorsque j'ai regardé dans le mail.log, j'ai encore vu ceci :

Apr 24 20:47:03 localhost postfix/smtpd[28318]: unable to get private key from '/etc/postfix/proxy-key.pem'
Apr 24 20:47:03 localhost postfix/smtpd[28318]: 28318:error:02001002:system library:fopen:No such file or directory:bss_file.c:278:fopen('/etc/postfix/proxy-key.pem','r'):
Apr 24 20:47:03 localhost postfix/smtpd[28318]: 28318:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:280:
Apr 24 20:47:03 localhost postfix/smtpd[28318]: 28318:error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib:ssl_rsa.c:693:
Apr 24 20:47:03 localhost postfix/smtpd[28318]: TLS engine: cannot load RSA cert/key data
Apr 24 20:47:03 localhost postfix/smtpd[28318]: connect from localhost.localdomain[127.0.0.1]
Apr 24 20:47:03 localhost postfix/smtpd[28318]: 4BD0F2075C2: client=localhost.localdomain[127.0.0.1]
Apr 24 20:47:03 localhost postfix/cleanup[28320]: 4BD0F2075C2: message-id=<20080424174703.4BD0F2075C2@firewall.univ-antsiranana.mg>
Apr 24 20:47:03 localhost postfix/qmgr[27948]: 4BD0F2075C2: from=<root@univ-antsiranana.mg>, size=666, nrcpt=1 (queue active)
Apr 24 20:47:03 localhost postfix/smtpd[28318]: disconnect from localhost.localdomain[127.0.0.1]
Apr 24 20:47:20 localhost postfix/qmgr[27948]: warning: connect to transport amavis : No such file or directory
Apr 24 20:47:03 localhost postfix/smtp[28321]: 4BD0F2075C2: to=<test@univ-antsiranana.mg>, relay=none, delay=0, status=bounced (mail for univ-antsiranana.mg loops back to myself)
Apr 24 20:47:03 localhost postfix/qmgr[27948]: 4BD0F2075C2: removed
Apr 24 20:47:03 localhost amavis[3379]: (03379-02) Passed, <root@univ-antsiranana.mg> -> <test@univ-antsiranana.mg>, Message-ID: , Hits: -

Hors ligne

#10 Le 26/04/2008, à 06:00

nuxia

Re : [postfix] problème d'envoi de mail

eh oh! personne ne peut m'aider? roll

Hors ligne

#11 Le 26/04/2008, à 13:23

Uggy

Re : [postfix] problème d'envoi de mail

nuxia a écrit :

Apr 24 20:47:03 localhost postfix/smtp[28321]: 4BD0F2075C2: to=<test@univ-antsiranana.mg>, relay=none, delay=0, status=bounced (mail for univ-antsiranana.mg loops back to myself)

univ-antsiranana.mg doit etre délivré a la machine locale ? ou envoyé sur un autre serveur ?

Si ca doit etre délivré a la machine locale, ajoute "univ-antsiranana.mg" a "mydestination".

Hors ligne

#12 Le 27/04/2008, à 04:53

nuxia

Re : [postfix] problème d'envoi de mail

Merci, j'ai édité le main.cf, j'ai ajouté univ-antsiranana.mg sur la ligne mydestination.
Puis, j'ai essayé d'envoyer un mail à l'utilisateur test, voici ce que le log me donne:

Apr 27 05:40:53 localhost postfix/smtpd[16175]: 6D4832075A3: client=localhost.localdomain[127.0.0.1]
Apr 27 05:40:53 localhost postfix/cleanup[16170]: 6D4832075A3: message-id=<20080427024052.05C522075BD@firewall.univ-antsiranana.mg>
Apr 27 05:40:53 localhost postfix/qmgr[16116]: 6D4832075A3: from=<root@univ-antsiranana.mg>, size=830, nrcpt=1 (queue active)
Apr 27 05:40:53 localhost postfix/smtpd[16175]: disconnect from localhost.localdomain[127.0.0.1]
Apr 27 05:40:53 localhost amavis[6663]: (06663-02) Passed, <root@univ-antsiranana.mg> -> <test@univ-antsiranana.mg>, Message-ID: <20080427024052.05C522075BD@firewall.univ-antsiranana.mg>, Hits: -
Apr 27 05:40:53 localhost postfix/smtp[16172]: 05C522075BD: to=<test@univ-antsiranana.mg>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=06663-02, from MTA: 250 Ok: queued as 6D4832075A3)
Apr 27 05:40:53 localhost postfix/qmgr[16116]: 05C522075BD: removed
Apr 27 05:40:53 localhost postfix/local[16176]: 6D4832075A3: to=<test@univ-antsiranana.mg>, relay=local, delay=0, status=bounced (unknown user: "test")
Apr 27 05:40:53 localhost postfix/cleanup[16170]: 88AA22075BE: message-id=<20080427024053.88AA22075BE@firewall.univ-antsiranana.mg>
Apr 27 05:40:53 localhost postfix/qmgr[16116]: 88AA22075BE: from=<>, size=2601, nrcpt=1 (queue active)
Apr 27 05:40:53 localhost postfix/qmgr[16116]: 6D4832075A3: removed
Apr 27 05:40:53 localhost postfix/local[16176]: 88AA22075BE: to=<newuser@univ-antsiranana.mg>, orig_to=<root@univ-antsiranana.mg>, relay=local, delay=0, status=sent (delivered to maildir)
Apr 27 05:40:53 localhost postfix/qmgr16116]: 88AA22075BE: removed

Voici le contenu du fichier ldif de cet utilisateur :

dn: cn=test,ou=users,ou=horde,dc=univ-antsiranana,dc=mg
objectclass: top
objectClass: inetOrgperson
objectClass: CourierMailAccount
sn: test
cn: test
mail: test@univ-antsiranana.mg
homeDirectory: /home/vmail
uidNumber: 1006
gidNumber: 1006
mailbox: univ-antsiranana.mg/test/
userpassword:

Et la commande :

postmap -q test@univ-antsiranana.mg ldap:/etc/postfix/ldap-accounts.cf

donne bien :

univ-antsiranana.mg/test/

Hors ligne

#13 Le 27/04/2008, à 12:33

Uggy

Re : [postfix] problème d'envoi de mail

nuxia a écrit :

Merci, j'ai édité le main.cf, j'ai ajouté univ-antsiranana.mg sur la ligne mydestination.

Dans ce cas, la liste des users est dans "local_recipient_maps".

si tu veux que ce "domaine" soit virtuel, ne le met pas dans mydestination mais dans "virtual_mailbox_domains".. mais il faut le mettre quelquepart..

Hors ligne

#14 Le 27/04/2008, à 13:50

nuxia

Re : [postfix] problème d'envoi de mail

merci, je vais y penser.
Entre-temps, j'ai fait
#postmap -q univ-antsiranana.mg ldap:/etc/postfix/ldap-accounts.cf
Et rien n'est affiché.

Hors ligne