Nous sommes le Ven 20 Juin, 2025 22:43
Supprimer les cookies

Problème de reception sur Postfix + Amavis, Clamav

Au quotidien encore quelques soucis ?

Lun 01 Jan, 2007 22:02

Bonjour à tous,

J'aurai une question portant sur la reception des mails avec Postfix..., pour commencer je vous explique tout ce que j'ai fait:

A l'aide de ce tuto : http://www.fabroce.net/blog/index.php/post/2006/11/10/Installer-un-serveur-mail-complet-avec-Postfix-/-ClamAV-/-Spamassassin-sur-une-Debian-like


Mon problème arrive à Amavis, puisque le fichier log de /var/log/mail.log m'indique les choses ci-dessous au démarrage de postfix + amavis:
Code: Tout sélectionner
Jan  1 22:35:20 localhost postfix/postfix-script: starting the Postfix mail system
Jan  1 22:35:20 localhost postfix/master[3434]: daemon started -- version 2.1.5
Jan  1 22:35:24 localhost amavis[3445]: starting.  amavisd-new at XXXX amavisd-new-20030616-p10, Unicode aware, LANG=fr_FR@euro
Jan  1 22:35:24 localhost amavis[3445]: Perl version               5.008004
Jan  1 22:35:24 localhost amavis[3445]: Module Amavis::Conf        1.15
Jan  1 22:35:24 localhost amavis[3445]: Module Archive::Tar        1.23
Jan  1 22:35:24 localhost amavis[3445]: Module Archive::Zip        1.14
Jan  1 22:35:24 localhost amavis[3445]: Module Compress::Zlib      1.34
Jan  1 22:35:24 localhost amavis[3445]: Module Convert::TNEF       0.17
Jan  1 22:35:24 localhost amavis[3445]: Module Convert::UUlib      1.051
Jan  1 22:35:24 localhost amavis[3445]: Module MIME::Entity        5.417
Jan  1 22:35:24 localhost amavis[3445]: Module MIME::Parser        5.417
Jan  1 22:35:24 localhost amavis[3445]: Module MIME::Tools         5.417
Jan  1 22:35:24 localhost amavis[3445]: Module Mail::Header        1.62
Jan  1 22:35:24 localhost amavis[3445]: Module Mail::Internet      1.62
Jan  1 22:35:24 localhost amavis[3445]: Module Net::Cmd            2.26
Jan  1 22:35:24 localhost amavis[3445]: Module Net::SMTP           2.29
Jan  1 22:35:24 localhost amavis[3445]: Module Net::Server         0.87
Jan  1 22:35:24 localhost amavis[3445]: Module Time::HiRes         1.59
Jan  1 22:35:24 localhost amavis[3445]: Module Unix::Syslog        0.100
Jan  1 22:35:24 localhost amavis[3446]: Found $file       at /usr/bin/file
Jan  1 22:35:24 localhost amavis[3446]: No $arc,          not using it
Jan  1 22:35:24 localhost amavis[3446]: Found $gzip       at /bin/gzip
Jan  1 22:35:24 localhost amavis[3446]: No $bzip2,        not using it
Jan  1 22:35:24 localhost amavis[3446]: No $lzop,         not using it
Jan  1 22:35:24 localhost amavis[3446]: No $lha,          not using it
Jan  1 22:35:24 localhost amavis[3446]: No $unarj,        not using it
Jan  1 22:35:24 localhost amavis[3446]: Found $uncompress at /bin/uncompress
Jan  1 22:35:24 localhost amavis[3446]: No $unfreeze,     not using it
Jan  1 22:35:24 localhost amavis[3446]: No $unrar,        not using it
Jan  1 22:35:24 localhost amavis[3446]: No $zoo,          not using it
Jan  1 22:35:24 localhost amavis[3446]: Found $cpio       at /bin/cpio
Jan  1 22:35:24 localhost amavis[3446]: Using internal av scanner code for (primary) Clam Antivirus-clamd
Jan  1 22:35:24 localhost amavis[3446]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan

[hr]
Après, le même fichier log m'indique les infos ci-dessous lorsque je m'envois un mail... :
Code: Tout sélectionner
Jan  1 22:47:27 localhost postfix/smtpd[3542]: connect from nf-out-0910.google.com[64.233.182.187]
Jan  1 22:47:27 localhost postfix/smtpd[3542]: warning: std_addr_pattern: bad net/mask pattern: 192.168.0.1/150
Jan  1 22:47:27 localhost postfix/smtpd[3542]: C753811EE53: client=nf-out-0910.google.com[64.233.182.187]
Jan  1 22:47:27 localhost postfix/cleanup[3545]: C753811EE53: message-id=<e53ddf180701011252ye2f6a4eqd843a1223314fb52@mail.gmail.com>
Jan  1 22:47:27 localhost postfix/qmgr[3436]: C753811EE53: from=<kneiss@gmail.com>, size=1591, nrcpt=1 (queue active)
Jan  1 22:47:28 localhost postfix/smtpd[3551]: connect from localhost.localdomain[127.0.0.1]
Jan  1 22:47:28 localhost postfix/smtpd[3551]: 0AAD411EE56: client=localhost.localdomain[127.0.0.1]
Jan  1 22:47:28 localhost postfix/cleanup[3545]: 0AAD411EE56: message-id=<e53ddf180701011252ye2f6a4eqd843a1223314fb52@mail.gmail.com>
Jan  1 22:47:28 localhost postfix/smtpd[3551]: disconnect from localhost.localdomain[127.0.0.1]
Jan  1 22:47:28 localhost postfix/qmgr[3436]: 0AAD411EE56: from=<kneiss@gmail.com>, size=2065, nrcpt=1 (queue active)
Jan  1 22:47:28 localhost amavis[3447]: (03447-01) Passed, <kneiss@gmail.com> -> <julien@XXXX.homeip.net>, Message-ID: <e53ddf180701011252ye2f6a4eqd843a1223314fb52@mail.gmail.com>, Hits: -
Jan  1 22:47:28 localhost postfix/smtp[3547]: C753811EE53: to=<julien@XXXX.homeip.net>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=03447-01, from MTA: 250 Ok: queued as 0AAD411EE56)
Jan  1 22:47:28 localhost postfix/qmgr[3436]: C753811EE53: removed
Jan  1 22:47:28 localhost postfix/local[3552]: 0AAD411EE56: to=<julien@XXXX.homeip.net>, relay=local, delay=0, status=bounced (bad recipient address syntax: julien@XXXX.homeip.netclamav:root)
Jan  1 22:47:28 localhost postfix/cleanup[3545]: 1D77E11EE53: message-id=<20070101214728.1D77E11EE53@XXXX.homeip.net>
Jan  1 22:47:28 localhost postfix/qmgr[3436]: 1D77E11EE53: from=<>, size=3833, nrcpt=1 (queue active)
Jan  1 22:47:28 localhost postfix/qmgr[3436]: 0AAD411EE56: removed
Jan  1 22:47:28 localhost postfix/smtp[3554]: 1D77E11EE53: to=<kneiss@gmail.com>, relay=smtp.9online.fr[84.96.92.4], delay=0, status=sent (250 2.5.0 Ok.)
Jan  1 22:47:28 localhost postfix/qmgr[3436]: 1D77E11EE53: removed
Jan  1 22:47:58 localhost postfix/smtpd[3542]: disconnect from nf-out-0910.google.com[64.233.182.187]

[hr]
Pour finir, voici le mail auto que je recois à mon adresse:
This is the Postfix program at host XXXX.homeip.net.

I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<julien@XXXX.homeip.net>: bad recipient address syntax:
julien@XXXX.homeip.netclamav:root


Final-Recipient: rfc822; julien@XXXX.homeip.net
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; bad recipient address syntax:
julien@XXXX.homeip.netclamav:root

[hr]
Y'aurait-il quelque chose que j'aurai mal fait, qui m'aurait échappé ?
En tout cas, Merci d'avance !
kneiss

Messages : 14

Mar 02 Jan, 2007 14:22

Bonjour,

Ce qui aurait été bien, c'est de pouvoir consulter les fichiers de conf ( les fichiers de conf de clamav et ceux de postfix ( aliases compris ) ) parcequ'au jugé, je dirais à priori une mauvaise ré-écriture des adresses mail, mais bon ...

Cordialement
damien
damien

Messages : 208

Mar 02 Jan, 2007 20:08

En effet, c'était le fichier /etc/aliases qui était mal écrit... merci ^^.
J'ai un deuxième petit problème, celui-ci ne doit pas être bien méchant non plus mais je ne comprends pas trop...

J'ai relancé postfix et amavis après la reconfig des aliases, mais le fichier /var/log/mail.log m'indique ceci lorsque je m'envois un mail... :
Code: Tout sélectionner
Jan  2 20:54:23 localhost postfix/postfix-script: starting the Postfix mail system
Jan  2 20:54:23 localhost postfix/master[13769]: daemon started -- version 2.1.5
Jan  2 20:54:46 localhost postfix/smtpd[13778]: connect from wr-out-0506.google.com[64.233.184.232]
Jan  2 20:54:46 localhost postfix/smtpd[13778]: NOQUEUE: reject: MAIL from wr-out-0506.google.com[64.233.184.232]: 452 Insufficient system storage; proto=ESMTP helo=<wr-out-0506.google.com>
Jan  2 20:54:46 localhost postfix/smtpd[13778]: warning: not enough free space in mail queue: 0 bytes < 1.5*message size limit
Jan  2 20:54:53 localhost postfix/cleanup[13781]: 2914611EE53: message-id=<20070102195446.2914611EE53@XXXX.homeip.net>
Jan  2 20:54:58 localhost postfix/cleanup[13781]: warning: 2914611EE53: write queue file: No space left on device
Jan  2 20:55:05 localhost postfix/smtpd[13778]: disconnect from wr-out-0506.google.com[64.233.184.232]

[hr]
Je tiens à préciser que un Fdisk -l m'indique que toutes mes partitions ont au moins 5 Go de libre chaqu'une...
kneiss

Messages : 14

Mar 02 Jan, 2007 20:59

Ah non... une petite chose...
la partition du /var est occupée à 100%, donc mon problème vient certainement de là...
kneiss

Messages : 14

Jeu 04 Jan, 2007 11:32

Bonjour,

je suis l'auteur du tuto cité plus haut. N'hésitez pas à le commenter pour que je puisse l'améliorer ;)
Bon mail :D
fabroce

Messages : 1

Qui est en ligne ?

Utilisateur(s) parcourant actuellement ce forum : Aucun utilisateur inscrit