Contenu | Rechercher | Menus

Annonce

Si vous rencontrez des soucis à rester connecté sur le forum (ou si vous avez perdu votre mot de passe) déconnectez-vous et reconnectez-vous depuis cette page, en cochant la case "Me connecter automatiquement lors de mes prochaines visites". Attention, le forum rencontre actuellement quelques difficultés. En cas d'erreur 502, il ne faut pas re-valider l'envoi d'un message ou l'ouverture d'une discussion, au risque de créer un doublon.

La section divers se réorganise ! De nouvelles sous-sections à venir. (plus d'infos + donner son avis)

#1 Le 09/05/2014, à 20:04

cookerseb

POSTFIX status=bounced unknown user:

Bonsoir,

Et oui je me lance à poster une demande d'aide après avoir arraché tout mes cheveux !! Malgré les différents post résolus, les tutos et mes recherches google, je n'arrive pas à m'en sortir.

Voilà ce que j'ai d'installé : postfix, postfixadmin, horde, le tout en virtual via mysql
Mon hostname est pro-fhi.net

J'arrive à créer des adresse email via postfixadmin, m'identifier à la boite via horde mais impossible d'envoyer ni de recevoir des emails.

Je n'ai rien caché (adresses emails) dans ce qui suit je n'ai rien à cacher wink

Pour commencer je test depuis mon adresse gmail d'envoyer un mail sur une adresse test webradio@pro-fhi.net pour laquelle j'ai dans le log "status=bounced (unknown user: "webradio")" et j'ai bien le retour du mail erreur sur gmail renvoyé par le serveur.

May  9 20:50:01 host postfix/pickup[29413]: 35A4CC1AC0: uid=0 from=<root>
May  9 20:50:01 host postfix/cleanup[29669]: 35A4CC1AC0: message-id=<20140509185001.35A4CC1AC0@host.pro-fhi.net>
May  9 20:50:01 host postfix/qmgr[29420]: 35A4CC1AC0: from=<root@pro-fhi.net>, size=673, nrcpt=1 (queue active)
May  9 20:50:01 host postfix/local[29703]: 35A4CC1AC0: to=<admin@pro-fhi.net>, orig_to=<root>, relay=local, delay=0.27, delays=0.16/0.05/0/0.06, dsn=5.1.1, status=bounced (unknown user: "admin")
May  9 20:50:01 host postfix/cleanup[29669]: 5C689C1AA2: message-id=<20140509185001.5C689C1AA2@host.pro-fhi.net>
May  9 20:50:01 host postfix/bounce[29708]: 35A4CC1AC0: sender non-delivery notification: 5C689C1AA2
May  9 20:50:01 host postfix/qmgr[29420]: 5C689C1AA2: from=<>, size=2437, nrcpt=1 (queue active)
May  9 20:50:01 host postfix/qmgr[29420]: 35A4CC1AC0: removed
May  9 20:50:01 host postfix/local[29703]: 5C689C1AA2: to=<admin@pro-fhi.net>, orig_to=<root@pro-fhi.net>, relay=local, delay=0.08, delays=0.04/0/0/0.04, dsn=5.1.1, status=bounced (unknown user: "admin")
May  9 20:50:01 host postfix/qmgr[29420]: 5C689C1AA2: removed
May  9 20:50:14 host postfix/smtpd[29715]: connect from mail-ig0-f170.google.com[209.85.213.170]
May  9 20:50:14 host postfix/smtpd[29715]: setting up TLS connection from mail-ig0-f170.google.com[209.85.213.170]
May  9 20:50:14 host postfix/smtpd[29715]: Anonymous TLS connection established from mail-ig0-f170.google.com[209.85.213.170]: TLSv1 with cipher RC4-SHA (128/128 bits)
May  9 20:50:15 host cbpolicyd[18045]: module=Quotas, mode=update, host=209.85.213.170, helo=mail-ig0-f170.google.com, from=esolutionsweb@gmail.com, to=webradio@pro-fhi.net, reason=quota_update, policy=3, quota=2, limit=3, track=SenderIP:209.85.213.170/32, counter=MessageCount, quota=1.89/250 (0.8%)
May  9 20:50:15 host cbpolicyd[18045]: module=Quotas, mode=update, host=209.85.213.170, helo=mail-ig0-f170.google.com, from=esolutionsweb@gmail.com, to=webradio@pro-fhi.net, reason=quota_update, policy=3, quota=3, limit=4, track=Sender:esolutionsweb@gmail.com, counter=MessageCount, quota=17.21/200 (8.6%)
May  9 20:50:15 host cbpolicyd[18045]: module=Quotas, mode=update, host=209.85.213.170, helo=mail-ig0-f170.google.com, from=esolutionsweb@gmail.com, to=webradio@pro-fhi.net, reason=quota_update, policy=3, quota=3, limit=5, track=Sender:esolutionsweb@gmail.com, counter=MessageCumulativeSize, quota=0.00/250000000 (0.0%)
May  9 20:50:15 host postfix/smtpd[29715]: 2F6B6C176B: client=mail-ig0-f170.google.com[209.85.213.170]
May  9 20:50:15 host postfix/cleanup[29669]: 2F6B6C176B: message-id=<CADBTfFuqwNyD-KDc2uHWnHQ840KDZGwqx=vVMQ9920KhMnDc9A@mail.gmail.com>
May  9 20:50:15 host postfix/qmgr[29420]: 2F6B6C176B: from=<esolutionsweb@gmail.com>, size=2999, nrcpt=1 (queue active)
May  9 20:50:15 host amavis[21545]: (21545-11) ESMTP::10024 /var/amavis/tmp/amavis-20140509T181549-21545-xBsqEEQU: <esolutionsweb@gmail.com> -> <webradio@pro-fhi.net> SIZE=2999 Received: from host.pro-fhi.net ([127.0.0.1]) by localhost (host.pro-fhi.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <webradio@pro-fhi.net>; Fri,  9 May 2014 20:50:15 +0200 (CEST)
May  9 20:50:15 host amavis[21545]: (21545-11) dkim: VALID Author+Sender+MailFrom signature by d=gmail.com, From: <esolutionsweb@gmail.com>, a=rsa-sha256, c=relaxed/relaxed, s=20120113, i=@gmail.com
May  9 20:50:15 host postfix/smtpd[29715]: disconnect from mail-ig0-f170.google.com[209.85.213.170]
May  9 20:50:15 host amavis[21545]: (21545-11) Checking: gtNsTsr4jCCu [209.85.213.170] <esolutionsweb@gmail.com> -> <webradio@pro-fhi.net>
May  9 20:50:15 host amavis[21545]: (21545-11) p003 1 Content-Type: multipart/alternative
May  9 20:50:15 host amavis[21545]: (21545-11) p001 1/1 Content-Type: text/plain, size: 344 B, name: 
May  9 20:50:15 host amavis[21545]: (21545-11) p002 1/2 Content-Type: text/html, size: 661 B, name: 
May  9 20:50:21 host amavis[21545]: (21545-11) DSPAM result: Whitelisted, score=-0.390, sig=536d236d300341804832139
May  9 20:50:21 host amavis[21545]: (21545-11) spam-tag, <esolutionsweb@gmail.com> -> <webradio@pro-fhi.net>, No, score=-1.489 tagged_above=-9999.9 required=4.3 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VERIFIED=-0.3, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, DSPAM.Whitelisted=-0.390] autolearn=ham
May  9 20:50:21 host postfix/smtpd[29727]: connect from host.pro-fhi.net[127.0.0.1]
May  9 20:50:21 host postfix/smtpd[29727]: EA297C1AA2: client=host.pro-fhi.net[127.0.0.1]
May  9 20:50:21 host postfix/cleanup[29669]: EA297C1AA2: message-id=<CADBTfFuqwNyD-KDc2uHWnHQ840KDZGwqx=vVMQ9920KhMnDc9A@mail.gmail.com>
May  9 20:50:21 host postfix/qmgr[29420]: EA297C1AA2: from=<esolutionsweb@gmail.com>, size=4052, nrcpt=1 (queue active)
May  9 20:50:21 host postfix/smtpd[29727]: disconnect from host.pro-fhi.net[127.0.0.1]
May  9 20:50:21 host amavis[21545]: (21545-11) FWD from <esolutionsweb@gmail.com> -> <webradio@pro-fhi.net>,BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as EA297C1AA2
May  9 20:50:22 host amavis[21545]: (21545-11) Passed CLEAN {RelayedInbound}, [209.85.213.170]:49878 [209.85.213.170] <esolutionsweb@gmail.com> -> <webradio@pro-fhi.net>, Message-ID: <CADBTfFuqwNyD-KDc2uHWnHQ840KDZGwqx=vVMQ9920KhMnDc9A@mail.gmail.com>, mail_id: gtNsTsr4jCCu, Hits: -1.489, size: 2999, pt: 19, queued_as: EA297C1AA2, dkim_sd=20120113:gmail.com, 6504 ms
May  9 20:50:22 host postfix/local[29703]: EA297C1AA2: to=<webradio@pro-fhi.net>, relay=local, delay=0.07, delays=0.03/0/0/0.03, dsn=5.1.1, status=bounced (unknown user: "webradio")
May  9 20:50:22 host postfix/cleanup[29669]: 05934C1AC6: message-id=<20140509185022.05934C1AC6@host.pro-fhi.net>
May  9 20:50:22 host postfix/bounce[29708]: EA297C1AA2: sender non-delivery notification: 05934C1AC6
May  9 20:50:22 host postfix/qmgr[29420]: 05934C1AC6: from=<>, size=5907, nrcpt=1 (queue active)
May  9 20:50:22 host postfix/qmgr[29420]: EA297C1AA2: removed
May  9 20:50:22 host amavis[21545]: (21545-11) TIMING-SA total 6000 ms - parse: 5 (0.1%), extract_message_metadata: 78 (1.3%), get_uri_detail_list: 14 (0.2%), tests_pri_-1000: 97 (1.6%), tests_pri_-950: 80 (1.3%), tests_pri_-900: 5 (0.1%), tests_pri_-400: 4 (0.1%), tests_pri_0: 5453 (90.9%), check_spf: 151 (2.5%), poll_dns_idle: 89 (1.5%), check_razor2: 5002 (83.4%), check_pyzor: 105 (1.7%), tests_pri_500: 9 (0.1%), learn: 200 (3.3%), get_report: 3 (0.1%)
May  9 20:50:22 host postfix/smtp[29721]: 2F6B6C176B: to=<webradio@pro-fhi.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=7.2, delays=0.65/0.02/0.01/6.6, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as EA297C1AA2)
May  9 20:50:22 host postfix/qmgr[29420]: 2F6B6C176B: removed
May  9 20:50:22 host amavis[21545]: (21545-11) size: 2999, TIMING [total 6570 ms] - SMTP greeting: 3 (0%)0, SMTP EHLO: 2 (0%)0, SMTP pre-MAIL: 2 (0%)0, SMTP pre-DATA-flush: 5 (0%)0, SMTP DATA: 33 (1%)1, check_init: 1 (0%)1, digest_hdr: 7 (0%)1, digest_body_dkim: 33 (0%)1, gen_mail_id: 38 (1%)2, mime_decode: 29 (0%)2, get-file-type2: 26 (0%)3, parts_decode: 0 (0%)3, check_header: 1 (0%)3, AV-scan-1: 15 (0%)3, spam-wb-list: 2 (0%)3, SA msg read: 2 (0%)3, SA parse: 6 (0%)3, SA check: 5971 (91%)94, DSPAM: 227 (3%)97, decide_mail_destiny: 2 (0%)98, notif-quar: 1 (0%)98, fwd-connect: 31 (0%)98, fwd-mail-pip: 8 (0%)98, fwd-rcpt-pip: 1 (0%)98, fwd-data-chkpnt: 0 (0%)98, write-header: 2 (0%)98, fwd-data-contents: 0 (0%)98, fwd-end-chkpnt: 28 (0%)99, prepare-dsn: 2 (0%)99, main_log_entry: 27 (0%)99, sql-update: 52 (1%)100, update_snmp: 6 (0%)100, SMTP pre-response: 1 (0%)100, SMTP response: 0 (0%)100, unlink-3-files: 1 (0%)100, rundown: 2 (0%)100
May  9 20:50:22 host postfix/smtp[29728]: 05934C1AC6: to=<esolutionsweb@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.66.26]:25, delay=0.8, delays=0.02/0.02/0.19/0.56, dsn=2.0.0, status=sent (250 2.0.0 OK 1399661422 hv2si1898593wjb.162 - gsmtp)
May  9 20:50:22 host postfix/qmgr[29420]: 05934C1AC6: removed 

Si j'envoi un email toujours depuis gmail vers une adresse email créer sous postfixadmin dont le domaine est bien présent sur le serveur, actif, les dns sont ok et mx aussi j'ai ce coup ci : status=bounced (mail for produits-aloe-vera.com loops back to myself)

May  9 20:53:07 host postfix/smtpd[29897]: connect from mail-ig0-f175.google.com[209.85.213.175]
May  9 20:53:07 host postfix/smtpd[29897]: setting up TLS connection from mail-ig0-f175.google.com[209.85.213.175]
May  9 20:53:07 host postfix/smtpd[29897]: Anonymous TLS connection established from mail-ig0-f175.google.com[209.85.213.175]: TLSv1 with cipher RC4-SHA (128/128 bits)
May  9 20:53:08 host cbpolicyd[8028]: module=Quotas, mode=update, host=209.85.213.175, helo=mail-ig0-f175.google.com, from=esolutionsweb@gmail.com, to=sav@produits-aloe-vera.com, reason=quota_update, policy=3, quota=2, limit=3, track=SenderIP:209.85.213.175/32, counter=MessageCount, quota=1.96/250 (0.8%)
May  9 20:53:08 host cbpolicyd[8028]: module=Quotas, mode=update, host=209.85.213.175, helo=mail-ig0-f175.google.com, from=esolutionsweb@gmail.com, to=sav@produits-aloe-vera.com, reason=quota_update, policy=3, quota=3, limit=4, track=Sender:esolutionsweb@gmail.com, counter=MessageCount, quota=18.07/200 (9.0%)
May  9 20:53:08 host cbpolicyd[8028]: module=Quotas, mode=update, host=209.85.213.175, helo=mail-ig0-f175.google.com, from=esolutionsweb@gmail.com, to=sav@produits-aloe-vera.com, reason=quota_update, policy=3, quota=3, limit=5, track=Sender:esolutionsweb@gmail.com, counter=MessageCumulativeSize, quota=0.00/250000000 (0.0%)
May  9 20:53:08 host postfix/smtpd[29897]: 37DF2C176B: client=mail-ig0-f175.google.com[209.85.213.175]
May  9 20:53:08 host postfix/cleanup[29906]: 37DF2C176B: message-id=<CADBTfFs4seXQzy1YH4vejXUosTkyE2yvQpz+0ZEY5GMDxdifUA@mail.gmail.com>
May  9 20:53:08 host postfix/qmgr[29420]: 37DF2C176B: from=<esolutionsweb@gmail.com>, size=3025, nrcpt=1 (queue active)
May  9 20:53:08 host amavis[21544]: (21544-12) ESMTP::10024 /var/amavis/tmp/amavis-20140507T161829-21544-ScUeiZUo: <esolutionsweb@gmail.com> -> <sav@produits-aloe-vera.com> SIZE=3025 Received: from host.pro-fhi.net ([127.0.0.1]) by localhost (host.pro-fhi.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <sav@produits-aloe-vera.com>; Fri,  9 May 2014 20:53:08 +0200 (CEST)
May  9 20:53:08 host amavis[21544]: (21544-12) dkim: VALID Author+Sender+MailFrom signature by d=gmail.com, From: <esolutionsweb@gmail.com>, a=rsa-sha256, c=relaxed/relaxed, s=20120113, i=@gmail.com
May  9 20:53:08 host postfix/smtpd[29897]: disconnect from mail-ig0-f175.google.com[209.85.213.175]
May  9 20:53:08 host amavis[21544]: (21544-12) Checking: arRqXYBZ1lpd [209.85.213.175] <esolutionsweb@gmail.com> -> <sav@produits-aloe-vera.com>
May  9 20:53:08 host amavis[21544]: (21544-12) Open relay? Nonlocal recips but not originating: sav@produits-aloe-vera.com
May  9 20:53:08 host amavis[21544]: (21544-12) p003 1 Content-Type: multipart/alternative
May  9 20:53:08 host amavis[21544]: (21544-12) p001 1/1 Content-Type: text/plain, size: 344 B, name: 
May  9 20:53:08 host amavis[21544]: (21544-12) p002 1/2 Content-Type: text/html, size: 661 B, name: 
May  9 20:53:14 host amavis[21544]: (21544-12) DSPAM result: Whitelisted, score=-0.390, sig=536d241a300341943288130
May  9 20:53:14 host postfix/smtpd[29914]: connect from host.pro-fhi.net[127.0.0.1]
May  9 20:53:14 host postfix/smtpd[29914]: E79E0C1AA2: client=host.pro-fhi.net[127.0.0.1]
May  9 20:53:14 host postfix/cleanup[29906]: E79E0C1AA2: message-id=<CADBTfFs4seXQzy1YH4vejXUosTkyE2yvQpz+0ZEY5GMDxdifUA@mail.gmail.com>
May  9 20:53:14 host postfix/qmgr[29420]: E79E0C1AA2: from=<esolutionsweb@gmail.com>, size=3480, nrcpt=1 (queue active)
May  9 20:53:14 host postfix/smtpd[29914]: disconnect from host.pro-fhi.net[127.0.0.1]
May  9 20:53:14 host amavis[21544]: (21544-12) FWD from <esolutionsweb@gmail.com> -> <sav@produits-aloe-vera.com>,BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E79E0C1AA2
May  9 20:53:15 host amavis[21544]: (21544-12) Passed CLEAN {RelayedOpenRelay}, [209.85.213.175]:62946 [209.85.213.175] <esolutionsweb@gmail.com> -> <sav@produits-aloe-vera.com>, Message-ID: <CADBTfFs4seXQzy1YH4vejXUosTkyE2yvQpz+0ZEY5GMDxdifUA@mail.gmail.com>, mail_id: arRqXYBZ1lpd, Hits: -1.489, size: 3025, pt: 19, queued_as: E79E0C1AA2, dkim_sd=20120113:gmail.com, 6443 ms
May  9 20:53:15 host postfix/smtp[29915]: E79E0C1AA2: to=<sav@produits-aloe-vera.com>, relay=none, delay=0.05, delays=0.03/0.02/0/0, dsn=5.4.6, status=bounced (mail for produits-aloe-vera.com loops back to myself)
May  9 20:53:15 host postfix/cleanup[29906]: 0AA8DC1AC6: message-id=<20140509185315.0AA8DC1AC6@host.pro-fhi.net>
May  9 20:53:15 host amavis[21544]: (21544-12) TIMING-SA total 5937 ms - parse: 5 (0.1%), extract_message_metadata: 58 (1.0%), get_uri_detail_list: 15 (0.2%), tests_pri_-1000: 183 (3.1%), tests_pri_-950: 5 (0.1%), tests_pri_-900: 5 (0.1%), tests_pri_-400: 4 (0.1%), tests_pri_0: 5423 (91.3%), check_spf: 123 (2.1%), poll_dns_idle: 67 (1.1%), check_razor2: 5002 (84.2%), check_pyzor: 111 (1.9%), tests_pri_500: 9 (0.1%), learn: 182 (3.1%), get_report: 3 (0.1%)
May  9 20:53:15 host postfix/smtp[29907]: 37DF2C176B: to=<sav@produits-aloe-vera.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=7.3, delays=0.72/0.02/0.01/6.5, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E79E0C1AA2)
May  9 20:53:15 host postfix/qmgr[29420]: 37DF2C176B: removed
May  9 20:53:15 host amavis[21544]: (21544-12) size: 3025, TIMING [total 6524 ms] - SMTP greeting: 4 (0%)0, SMTP EHLO: 2 (0%)0, SMTP pre-MAIL: 2 (0%)0, SMTP pre-DATA-flush: 5 (0%)0, SMTP DATA: 34 (1%)1, check_init: 1 (0%)1, digest_hdr: 7 (0%)1, digest_body_dkim: 20 (0%)1, gen_mail_id: 52 (1%)2, mime_decode: 30 (0%)2, get-file-type2: 27 (0%)3, parts_decode: 1 (0%)3, check_header: 1 (0%)3, AV-scan-1: 16 (0%)3, spam-wb-list: 2 (0%)3, SA msg read: 1 (0%)3, SA parse: 6 (0%)3, SA check: 5910 (91%)94, DSPAM: 235 (4%)97, decide_mail_destiny: 2 (0%)97, notif-quar: 1 (0%)97, fwd-connect: 27 (0%)98, fwd-mail-pip: 8 (0%)98, fwd-rcpt-pip: 1 (0%)98, fwd-data-chkpnt: 0 (0%)98, write-header: 2 (0%)98, fwd-data-contents: 0 (0%)98, fwd-end-chkpnt: 25 (0%)98, prepare-dsn: 2 (0%)98, main_log_entry: 24 (0%)99, sql-update: 66 (1%)100, update_snmp: 7 (0%)100, SMTP pre-response: 1 (0%)100, SMTP response: 0 (0%)100, unlink-3-files: 1 (0%)100, rundown: 2 (0%)100
May  9 20:53:15 host postfix/bounce[29916]: E79E0C1AA2: sender non-delivery notification: 0AA8DC1AC6
May  9 20:53:15 host postfix/qmgr[29420]: 0AA8DC1AC6: from=<>, size=5419, nrcpt=1 (queue active)
May  9 20:53:15 host postfix/qmgr[29420]: E79E0C1AA2: removed
May  9 20:53:15 host postfix/smtp[29917]: 0AA8DC1AC6: to=<esolutionsweb@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.66.26]:25, delay=0.73, delays=0.04/0.02/0.12/0.54, dsn=2.0.0, status=sent (250 2.0.0 OK 1399661595 1si1915290wjp.7 - gsmtp)
May  9 20:53:15 host postfix/qmgr[29420]: 0AA8DC1AC6: removed

mon main.cf

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
#myhostname = pro-fhi.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8
recipient_delimiter = +
home_mailbox = Maildir/ 
#notify_classes = 2bounce, bounce, delay, policy, protocol, resource, software
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf
relay_recipient_maps = proxy:mysql:/etc/postfix/mysql_relay_recipients_maps.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_catchall_maps.cf
virtual_gid_maps = static:20001
virtual_mailbox_base = /home/virtual
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_mailbox_maps.cf
virtual_minimum_uid = 20001
virtual_uid_maps = static:20001
transport_maps = proxy:mysql:/etc/postfix/mysql_transport.cf,proxy:mysql:/etc/postfix/mysql_transport2.cf
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_recipient_restrictions $smtpd_sender_login_maps $has_our_domain_as_sender
message_size_limit = 50240000
#relayhost = pro-fhi.net
#smtpd_recipient_restrictions =
#        permit_mynetworks,
#     permit_sasl_authenticated,
#        reject_unauth_destination,
#        permit
# limiter les possibilités de forging des expéditeurs en vérifiant les MAIL FROM (adresses expéditrices)
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql-sasl-sender-check.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_maps.cf
smtpd_sender_restrictions = 
    reject_authenticated_sender_login_mismatch
smtpd_reject_unlisted_sender = yes
smtpd_restriction_classes =
  has_our_domain_as_sender
  client_throttle
has_our_domain_as_sender =
  check_sender_access proxy:mysql:/etc/postfix/mysql_our_domain_as_sender.cf,hash:/etc/postfix/our_domain_as_sender 
  reject
# PolicyV2
client_throttle =
  check_policy_service inet:127.0.0.1:10031
# restrictions
smtpd_recipient_restrictions =
     check_policy_service inet:127.0.0.1:10031,
        reject_non_fqdn_recipient,
        reject_unknown_sender_domain,
        reject_non_fqdn_sender,
        reject_unknown_recipient_domain,
        reject_invalid_helo_hostname,
        reject_unlisted_recipient,
        reject_unlisted_sender,
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_non_fqdn_helo_hostname,
        reject_unauth_destination,
        check_client_access hash:/etc/postfix/internal_networks,
        check_sender_access proxy:mysql:/etc/postfix/mysql_not_our_domain_as_sender.cf,
        check_helo_access proxy:mysql:/etc/postfix/mysql-hello.cf,
        check_sender_access proxy:mysql:/etc/postfix/mysql-sender.cf,
        check_client_access proxy:mysql:/etc/postfix/mysql-client.cf,
        permit
smtpd_relay_restrictions =
smtpd_data_restrictions =
    check_policy_service inet:127.0.0.1:10031,
        reject_unauth_pipelining,
        permit
# TLS
smtp_tls_CAfile = /etc/postfix/tls/cacert.pem
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_tls_session_cache
smtpd_tls_security_level = may
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/tls/pro-fhi-key.pem
smtpd_tls_cert_file = /etc/postfix/tls/pro-fhi-cert.pem
smtpd_tls_CAfile = /etc/postfix/tls/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_tls_session_cache
tls_random_source = dev:/dev/urandom
# DOVECOT
dovecot_destination_recipient_limit = 1
virtual_transport = dovecot
# SASL
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = 
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
# Headers, Body, Type Mime CHECK
header_checks = regexp:/etc/postfix/header_checks.cf
body_checks = regexp:/etc/postfix/body_checks.cf
mime_header_checks = regexp:/etc/postfix/mime_headers_checks.cf
# AMAVISD
content_filter = smtp-amavis:[127.0.0.1]:10024

Le master.cf :

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#smtp      inet  n       -       n       -       1       postscreen
smtpd     pass  -       -       n       -       -       smtpd
dnsblog   unix  -       -       n       -       0       dnsblog
tlsproxy  unix  -       -       n       -       0       tlsproxy
submission inet n       -       n       -       -       smtpd
587      inet    n    -    n    -    -    smtpd 
    -o smtpd_tls_security_level=encrypt
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_etrn_restrictions=reject
    -o content_filter=smtp-amavis:[127.0.0.1]:10026
    -o smtpd_client_restrictions=client_throttle,permit_sasl_authenticated,reject
smtps     inet  n       -       -       -       -       smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
        -o receive_override_options=no_header_body_checks
        -o content_filter=
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
#       -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
#
# # 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)
# transport dovecot vers home
dovecot   unix  -       n       n       -       -       pipe
   flags=DRhu user=vmail: argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${recipient}
# AMAVISD
smtp-amavis unix -    -    n    -    2  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20
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 smtpd_data_restrictions=reject_unauth_pipelining
    -o smtpd_end_of_data_restrictions=
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o receive_override_options=no_address_mappings,no_header_body_checks,no_unknown_recipient_checks
    -o local_header_rewrite_clients=
# Amavisd Notification only (pour eviter le no_address_mapping)
127.0.0.1:10029 inet n  -       n       -       -  smtpd
    -o content_filter=
    -o smtpd_delay_reject=no
    -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 smtpd_data_restrictions=reject_unauth_pipelining
    -o smtpd_end_of_data_restrictions=
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
    -o local_header_rewrite_clients=

un postmap -q webradio@pro-fhi.net proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf ne donne rien dans la console

Et quand je veux envoyer un mail depuis horde et l'adresse exemple webradio@pro-fhi.net j'ai dans le log :
May  9 20:57:24 host postfix/sendmail[30182]: fatal: Recipient addresses must be specified on the command line or via the -t option

en telnet :

telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 host.pro-fhi.net ESMTP Postfix (Debian/GNU)
ehlo pro-fhi.net
250-host.pro-fhi.net
250-PIPELINING
250-SIZE 50240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:<esolutionsweb@gmail.com>
250 2.1.0 Ok
rcpt to:<webradio@pro-fhi.net>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
hello coucou
.
250 2.0.0 Ok: queued as 10E29C1AA2
421 4.4.2 host.pro-fhi.net Error: timeout exceeded
Connection closed by foreign host.

Les alias sont bien ajoutés mais normalement gérés par le virtual mysql :

root: admin@pro-fhi.net
admin: admin@pro-fhi.net
sav: sav@produits-aloe-vera.com
webradio: webradio@pro-fhi.net

Merci de votre aide.

Dernière modification par cookerseb (Le 09/05/2014, à 21:59)

Hors ligne

#2 Le 09/05/2014, à 22:51

cookerseb

Re : POSTFIX status=bounced unknown user:

Hum bon j'ai avancé un peu, j'ai modifié les lignes suivantes de mon main.cf :

append_dot_mydomain = no > append_dot_mydomain = yes
#myhostname = pro-fhi.net > myhostname = host.pro-fhi.net
ajouté cette ligne local_transport = virtual

et là j'ai eu dans le log comme quoi mail for LEDOMAINE loops back to myself

j'ai testé en l'ajoutant à la suite de la ligne mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost, LEDOMAINE

Et j'ai eu send OK dans les logs, pas le message d'erreur retour sur le mail d'expédition gmail, et en revanche rien reçu dans horde, donc dans le maildir ???

Normalement je ne devrais pas à ajouter le domaine dans mydestination puisqu'il est censé passer en virtual par  $mydomain non ?

Thanks

Hors ligne

#3 Le 10/05/2014, à 14:42

Titouan

Re : POSTFIX status=bounced unknown user:

Salut,

a/à supprimer
local_transport = virtual

b/mydestination=

c/renseigner la table transport_maps=hash:/etc/postfix/transport

#domaine       agent_transport:[machine]
pro-fhi.net   :
produits-aloe-vera.com   :

+ sudo postmap  /etc/postfix/transport

si le mail est classé defered, c'est que l'agent_transport (nul) n'est pas le bon et refaire le test (avec local: virtual: ...)

tu fixes les récipients et alias de pro-fhi.net, produits-aloe-vera.com, dans relay_recipient_maps
Edit:

sudo postmap -q webradio@pro-fhi.net proxy:mysql:/etc/postfix/all_recipients_et_alias.cf
idem pour sav@produits-aloe-vera.com

virtual unix, virtual non unix ; voir  la doc http://postfix.traduc.org/index.php/VIRTUAL_README.html

Dernière modification par Titouan (Le 10/05/2014, à 14:47)

Hors ligne

#4 Le 14/05/2014, à 18:40

cookerseb

Re : POSTFIX status=bounced unknown user:

Merci Titouan j'ai testé ce que tu dis mais ça ne change rien.

Donc voilà où j'en suis :
- J'envoi un mail depuis gmail.com vers une adresse mail d'un domaine sur le serveur, les pointages dns et mx sont ok
- L'adresse email est bien crée via postfixadmin
- Le serveur mail est bien interrogé mais le status du message reçu est status=bounced (mail for produits-aloe-vera.com loops back to myself)
- Le serveur renvoi bien sur gmail le mail avec l'erreur suivante : Diagnostic-Code: X-Postfix; mail for produits-aloe-vera.com loops back to myself

Je remets mon main.cf :

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = yes
myhostname = host.pro-fhi.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8
recipient_delimiter = +
local_transport = virtual
home_mailbox = Maildir/ 
#notify_classes = 2bounce, bounce, delay, policy, protocol, resource, software
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf
relay_recipient_maps = proxy:mysql:/etc/postfix/mysql_relay_recipients_maps.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_catchall_maps.cf
virtual_gid_maps = static:20001
virtual_mailbox_base = /home/virtual
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_mailbox_maps.cf
virtual_minimum_uid = 20001
virtual_uid_maps = static:20001
transport_maps = proxy:mysql:/etc/postfix/mysql_transport.cf,proxy:mysql:/etc/postfix/mysql_transport2.cf
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_recipient_restrictions $smtpd_sender_login_maps $has_our_domain_as_sender
message_size_limit = 50240000

relayhost =
smtpd_recipient_restrictions =
        permit_mynetworks,
	 permit_sasl_authenticated,
        reject_unauth_destination,
        permit

# limiter les possibilités de forging des expéditeurs en vérifiant les MAIL FROM (adresses expéditrices)
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql-sasl-sender-check.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_maps.cf
smtpd_sender_restrictions = 
    reject_authenticated_sender_login_mismatch
smtpd_reject_unlisted_sender = yes
smtpd_restriction_classes =
  has_our_domain_as_sender
  client_throttle
has_our_domain_as_sender =
  check_sender_access proxy:mysql:/etc/postfix/mysql_our_domain_as_sender.cf,hash:/etc/postfix/our_domain_as_sender 
  reject
# PolicyV2
client_throttle =
  check_policy_service inet:127.0.0.1:10031
# restrictions
smtpd_recipient_restrictions =
	 check_policy_service inet:127.0.0.1:10031,
        reject_non_fqdn_recipient,
        reject_unknown_sender_domain,
        reject_non_fqdn_sender,
        reject_unknown_recipient_domain,
        reject_invalid_helo_hostname,
        reject_unlisted_recipient,
        reject_unlisted_sender,
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_non_fqdn_helo_hostname,
        reject_unauth_destination,
        check_client_access hash:/etc/postfix/internal_networks,
        check_sender_access proxy:mysql:/etc/postfix/mysql_not_our_domain_as_sender.cf,
        check_helo_access proxy:mysql:/etc/postfix/mysql-hello.cf,
        check_sender_access proxy:mysql:/etc/postfix/mysql-sender.cf,
        check_client_access proxy:mysql:/etc/postfix/mysql-client.cf,
        permit
smtpd_relay_restrictions =
smtpd_data_restrictions =
	check_policy_service inet:127.0.0.1:10031,
        reject_unauth_pipelining,
        permit

# TLS
smtp_tls_CAfile = /etc/postfix/tls/cacert.pem
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_tls_session_cache
smtpd_tls_security_level = may
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/tls/pro-fhi-key.pem
smtpd_tls_cert_file = /etc/postfix/tls/pro-fhi-cert.pem
smtpd_tls_CAfile = /etc/postfix/tls/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_tls_session_cache
tls_random_source = dev:/dev/urandom

# DOVECOT
dovecot_destination_recipient_limit = 1
virtual_transport = dovecot

# SASL
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = 
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes

# Headers, Body, Type Mime CHECK
header_checks = regexp:/etc/postfix/header_checks.cf
body_checks = regexp:/etc/postfix/body_checks.cf
mime_header_checks = regexp:/etc/postfix/mime_headers_checks.cf

# AMAVISD
content_filter = smtp-amavis:[127.0.0.1]:10024

et le log du mail.log :

May 14 19:27:34 host postfix/smtpd[28908]: connect from mail-ig0-f180.google.com[209.85.213.180]
May 14 19:27:35 host postfix/smtpd[28908]: setting up TLS connection from mail-ig0-f180.google.com[209.85.213.180]
May 14 19:27:35 host postfix/smtpd[28908]: Anonymous TLS connection established from mail-ig0-f180.google.com[209.85.213.180]: TLSv1 with cipher RC4-SHA (128/128 bits)
May 14 19:27:35 host cbpolicyd[19363]: module=Quotas, mode=update, host=209.85.213.180, helo=mail-ig0-f180.google.com, from=monemail@gmail.com, to=mondomaine@cible.com, reason=quota_update, policy=3, quota=2, limit=3, track=SenderIP:209.85.213.180/32, counter=MessageCount, quota=1.00/250 (0.4%)
May 14 19:27:35 host cbpolicyd[19363]: module=Quotas, mode=update, host=209.85.213.180, helo=mail-ig0-f180.google.com, from=monemail@gmail.com, to=mondomaine@cible.com, reason=quota_update, policy=3, quota=3, limit=4, track=Sender:monemail@gmail.com, counter=MessageCount, quota=4.09/200 (2.0%)
May 14 19:27:35 host cbpolicyd[19363]: module=Quotas, mode=update, host=209.85.213.180, helo=mail-ig0-f180.google.com, from=monemail@gmail.com, to=mondomaine@cible.com, reason=quota_update, policy=3, quota=3, limit=5, track=Sender:monemail@gmail.com, counter=MessageCumulativeSize, quota=0.00/250000000 (0.0%)
May 14 19:27:35 host postfix/smtpd[28908]: D6D9EC175E: client=mail-ig0-f180.google.com[209.85.213.180]
May 14 19:27:36 host postfix/cleanup[28918]: D6D9EC175E: message-id=<CADBTfFs37LCo4wN+CrE_VMdfEXAcaq0cYGNMHKbWG90TRmNk3A@mail.gmail.com>
May 14 19:27:36 host postfix/qmgr[28849]: D6D9EC175E: from=<monemail@gmail.com>, size=24119, nrcpt=1 (queue active)
May 14 19:27:36 host amavis[17893]: (17893-03) ESMTP::10024 /var/amavis/tmp/amavis-20140514T173514-17893-aJTCKcqQ: <monemail@gmail.com> -> <mondomaine@cible.com> SIZE=24119 Received: from host.pro-fhi.net ([127.0.0.1]) by localhost (host.pro-fhi.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <mondomaine@cible.com>; Wed, 14 May 2014 19:27:36 +0200 (CEST)
May 14 19:27:36 host amavis[17893]: (17893-03) dkim: VALID Author+Sender+MailFrom signature by d=gmail.com, From: <monemail@gmail.com>, a=rsa-sha256, c=relaxed/relaxed, s=20120113, i=@gmail.com
May 14 19:27:36 host postfix/smtpd[28908]: disconnect from mail-ig0-f180.google.com[209.85.213.180]
May 14 19:27:36 host amavis[17893]: (17893-03) Checking: QDi-Lya-J0Vk [209.85.213.180] <monemail@gmail.com> -> <mondomaine@cible.com>
May 14 19:27:36 host amavis[17893]: (17893-03) Open relay? Nonlocal recips but not originating: mondomaine@cible.com
May 14 19:27:36 host amavis[17893]: (17893-03) p003 1 Content-Type: multipart/alternative
May 14 19:27:36 host amavis[17893]: (17893-03) p001 1/1 Content-Type: text/plain, size: 7063 B, name: 
May 14 19:27:36 host amavis[17893]: (17893-03) p002 1/2 Content-Type: text/html, size: 12857 B, name: 
May 14 19:27:45 host amavis[17893]: (17893-03) DSPAM result: Whitelisted, score=-0.390, sig=5373a791300345265212982
May 14 19:27:45 host postfix/smtpd[28926]: connect from host.pro-fhi.net[127.0.0.1]
May 14 19:27:45 host postfix/smtpd[28926]: 77B5CC1A9E: client=host.pro-fhi.net[127.0.0.1]
May 14 19:27:45 host postfix/cleanup[28918]: 77B5CC1A9E: message-id=<CADBTfFs37LCo4wN+CrE_VMdfEXAcaq0cYGNMHKbWG90TRmNk3A@mail.gmail.com>
May 14 19:27:45 host postfix/qmgr[28849]: 77B5CC1A9E: from=<monemail@gmail.com>, size=24574, nrcpt=1 (queue active)
May 14 19:27:45 host postfix/smtpd[28926]: disconnect from host.pro-fhi.net[127.0.0.1]
May 14 19:27:45 host amavis[17893]: (17893-03) FWD from <monemail@gmail.com> -> <mondomaine@cible.com>,BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 77B5CC1A9E
May 14 19:27:45 host amavis[17893]: (17893-03) Passed CLEAN {RelayedOpenRelay}, [209.85.213.180]:47291 [209.85.213.180] <monemail@gmail.com> -> <mondomaine@cible.com>, Message-ID: <CADBTfFs37LCo4wN+CrE_VMdfEXAcaq0cYGNMHKbWG90TRmNk3A@mail.gmail.com>, mail_id: QDi-Lya-J0Vk, Hits: -1.489, size: 24119, pt: 20, queued_as: 77B5CC1A9E, dkim_sd=20120113:gmail.com, 8850 ms
May 14 19:27:45 host postfix/smtp[28927]: 77B5CC1A9E: to=<mondomaine@cible.com>, relay=none, delay=0.07, delays=0.05/0.02/0/0, dsn=5.4.6, status=bounced (mail for produits-aloe-vera.com loops back to myself)
May 14 19:27:45 host postfix/cleanup[28918]: 95D69C1ABE: message-id=<20140514172745.95D69C1ABE@host.pro-fhi.net>
May 14 19:27:45 host amavis[17893]: (17893-03) TIMING-SA total 8010 ms - parse: 13 (0.2%), extract_message_metadata: 281 (3.5%), get_uri_detail_list: 137 (1.7%), tests_pri_-1000: 289 (3.6%), tests_pri_-950: 5 (0.1%), tests_pri_-900: 5 (0.1%), tests_pri_-400: 5 (0.1%), tests_pri_0: 6845 (85.5%), check_spf: 135 (1.7%), poll_dns_idle: 67 (0.8%), check_razor2: 5002 (62.4%), check_pyzor: 163 (2.0%), tests_pri_500: 11 (0.1%), learn: 492 (6.1%), get_report: 3 (0.0%)
May 14 19:27:45 host postfix/smtp[28919]: D6D9EC175E: to=<mondomaine@cible.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=10, delays=1.2/0.01/0.01/8.9, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 77B5CC1A9E)
May 14 19:27:45 host postfix/qmgr[28849]: D6D9EC175E: removed
May 14 19:27:45 host amavis[17893]: (17893-03) size: 24119, TIMING [total 8939 ms] - SMTP greeting: 3 (0%)0, SMTP EHLO: 1 (0%)0, SMTP pre-MAIL: 2 (0%)0, SMTP pre-DATA-flush: 5 (0%)0, SMTP DATA: 34 (0%)1, check_init: 1 (0%)1, digest_hdr: 7 (0%)1, digest_body_dkim: 25 (0%)1, gen_mail_id: 39 (0%)1, mime_decode: 52 (1%)2, get-file-type2: 36 (0%)2, decompose_part: 3 (0%)2, parts_decode: 0 (0%)2, check_header: 1 (0%)2, AV-scan-1: 92 (1%)3, spam-wb-list: 2 (0%)3, SA msg read: 1 (0%)3, SA parse: 14 (0%)4, SA check: 7976 (89%)93, DSPAM: 446 (5%)98, decide_mail_destiny: 2 (0%)98, notif-quar: 1 (0%)98, fwd-connect: 26 (0%)98, fwd-mail-pip: 8 (0%)98, fwd-rcpt-pip: 0 (0%)98, fwd-data-chkpnt: 0 (0%)98, write-header: 2 (0%)98, fwd-data-contents: 2 (0%)98, fwd-end-chkpnt: 43 (0%)99, prepare-dsn: 2 (0%)99, main_log_entry: 23 (0%)99, sql-update: 74 (1%)100, update_snmp: 7 (0%)100, SMTP pre-response: 1 (0%)100, SMTP response: 1 (0%)100, unlink-3-files: 1 (0%)100, rundown: 2 (0%)100
May 14 19:27:45 host postfix/bounce[28928]: 77B5CC1A9E: sender non-delivery notification: 95D69C1ABE
May 14 19:27:45 host postfix/qmgr[28849]: 95D69C1ABE: from=<>, size=26513, nrcpt=1 (queue active)
May 14 19:27:45 host postfix/qmgr[28849]: 77B5CC1A9E: removed
May 14 19:27:46 host postfix/smtp[28929]: 95D69C1ABE: to=<monemail@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.66.27]:25, delay=0.96, delays=0.04/0.02/0.3/0.6, dsn=2.0.0, status=sent (250 2.0.0 OK 1400088466 w18si1030718wie.119 - gsmtp)
May 14 19:27:46 host postfix/qmgr[28849]: 95D69C1ABE: removed

Je ne sais pas comment testé si les interrogations de postfix vers la base de données et les mysql cf sont ok, j'ai tenté d'executer les commandes dans phpmyadmin en sql et visiblement j'ai pas d'erreur de synthaxe. Je ne sais pas non plus si toutes les infos sont bien dans les tables de postfix puisque dans le main.cf je vois

transport_maps = proxy:mysql:/etc/postfix/mysql_transport.cf,proxy:mysql:/etc/postfix/mysql_transport2.cf

mais dans la table transport de postfix il n'y a rien et dans domain j'ai bien les domaines et les boites et le champ transport qui contien soit virtual, soit local soit dovcot (lequel mettre j'ai essayé les 3).

Je n'ai pas d'erreur dans postfix admin quand je créer une adresse mail ou un domaine.

Merci pour votre aide.

Hors ligne

#5 Le 15/05/2014, à 16:31

Titouan

Re : POSTFIX status=bounced unknown user:

virtual unix, virtual non unix ; voir  la doc http://postfix.traduc.org/index.php/VIRTUAL_README.html

tu reliras et surtout tu choisiras ton approche;  virtual unix vs virtual non unix

Avec virtual non-unix, tu ne peux pas déclarer tes domaines dans mydestination et relay_domains

mydestination=
ou mydestination=localhost

et relay_domains ?

sudo postconf -q pro-fhi.net proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf
ne doit rien renvoyer
sudo postconf -q produits-aloe-vera.com proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf
ne doit rien renvoyer

or valeur par défaut; relay_domains = $mydestination (postconf -d | grep relay_domains)
donc relay_domains à supprimer dans le main.cf au profit de relay_recipient_maps

Dans virtual unix,  virtual_alias_domains est le plus important

Je remets mon main.cf

Le main.cf est propice aux mauvaises interprétations .

sudo postconf -n

postfix évalue lui-même les paramètres du main.cf. Bonne analyse par la suite

Hors ligne

#6 Le 26/05/2014, à 18:27

cookerseb

Re : POSTFIX status=bounced unknown user:

Re après une latence de plusieurs jours sad

Donc j'ai enfin réussi à envoyer et recevoir les mails.
Merci Titouan, j'ai appliqué une partie de tes conseils, relu et relu et rerelu virtual et virtual non unix, j'ai modifié comme il faut mon main.conf et surtout j'ai repris à zéro ma config des fichiers mysql, basé sur un autre tuto, car il semble que ceux que j'avais ne fonctionnaient pas. Là tout est ok.

Thanks

Hors ligne

#7 Le 06/10/2014, à 18:30

Ouamby

Re : POSTFIX status=bounced unknown user:

salut à tous.j’ais un petit soucit lorsque je redemare postfix avec /etc/init.d/poçstfix restart, je recoit le message d’erreur:
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_extended=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_limit_override=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_overquota_bounce=yes
postconf: warning: /etc/postfix/main.cf: unused parameter:……
et j’aariv pas à envoyer un mail par telnet.
svp j’ais besoin d’aide.

Hors ligne

Haut de page ↑