[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Postfix, catch-all et l'imbroglio...



Salut,

J'ai un pitit serveur sur lequel j'ai un Postfix qui tourne *presque*
bien. Il me gère les mails de Gosthack.net.
Dans le fichier /etc/posftix/virtual j'ai un catch-all :
@ghosthack.net  moku
Ça, ça marche.

Mais si je veux, par exemple, rediriger :
toto@ghosthack.net	toto@autre.domaine
Là, ça marche pas, et les mails sont tout de même interceptés par le
catch-all ci-dessus.

D'aprés la doc Postfix, le catch-all est sensé avoir une priorité
inférieure à toute autre entrée... mais ce n'est pas le cas chez moi, et
c'est lui qui intercepte tous les mails. Sauf si je redirige les mails
vers un autre compte local :
toto@ghosthack.net	toto
Ça, ça marche. (sauf, mais c'est un détail, que dans les headers des
mails reçus, l'adresse IP du serveur n'apparait plus (cf. en fin de
mail (*)).

(Évidemment, j'ai fait les postmap et postfix reload nécessaire aprés
chaque manips)

Bref, je voudrais que mon serveur de mail recoivent tous les mails
destinés au domaine ghosthack.net et les envoie au compte local 'moku'
sauf pour certaines adresses qui devraient être dirigées ailleurs,
comptes locaux ou adresses email complètements différentes.

Ce n'est peut être pas virtual qu'il me faut utiliser ?
Mais quoi alors ?

Merci d'avance.

(*)
Curiosité de la disparition de l'adresse IP :

Là c'est délivré à 'moku' :
| From moku@free.fr  Fri Jul 11 16:12:31 2003
| Return-Path: moku@free.fr
| X-Original-To: moku@localhost
| Delivered-To: moku@localhost
| Received: from localhost (localhost [127.0.0.1])
|         by navi (Postfix) with ESMTP id C2CD81A002
|         for <moku@localhost>; Fri, 11 Jul 2003 16:12:31 +0200 (CEST)
| Delivered-To: moku@ghosthack.net
| Received: from mail.ghosthack.net [81.56.224.107]
                                    ^^^^^^^^^^^^^^^ L'adresse IP apparaît bien
|         by localhost with POP3 (fetchmail-6.2.2)
|         for moku@localhost (single-drop); Fri, 11 Jul 2003 16:12:31 +0200 (CEST)
| Received: from navi (cloris [192.168.1.1])
|         by mail.ghosthack.net (Postfix) with ESMTP id 0FAA267BE
|         for <moku_test@ghosthack.net>; Fri, 11 Jul 2003 16:10:00 +0200 (CEST)
| Received: by navi (Postfix, from userid 1000)
|         id D2D5E1A002; Fri, 11 Jul 2003 16:12:04 +0200 (CEST)

Et là, c'est délivré à 'toto' :
| From moku@free.fr  Fri Jul 11 16:17:34 2003
| Return-Path: moku@free.fr
| X-Original-To: moku@localhost
| Delivered-To: moku@localhost
| Received: from localhost (localhost [127.0.0.1])
|         by navi (Postfix) with ESMTP id A5C661A002
|         for <moku@localhost>; Fri, 11 Jul 2003 16:17:34 +0200 (CEST)
| Delivered-To: toto@ghosthack.net
| Received: from mail.ghosthack.net 
                                    ^^^^^^^^^^^^^^^ L'adresse IP n'est plus là !
|         by localhost with POP3 (fetchmail-6.2.2)
|         for moku@localhost (single-drop); Fri, 11 Jul 2003 16:17:34 +0200 (CEST)
| Received: from navi (cloris [192.168.1.1])
|         by mail.ghosthack.net (Postfix) with ESMTP id E574167BE
|         for <toto@ghosthack.net>; Fri, 11 Jul 2003 16:14:19 +0200 (CEST)
| Received: by navi (Postfix, from userid 1000)
|         id 8C98B1A002; Fri, 11 Jul 2003 16:16:23 +0200 (CEST)

Si quelqu'un à une explication à ce tour de magie, ma curiosité sera
rassasiée :-)

-- 
moku
<moku@free.fr>                                 http://www.projectshirow.net/
         Je vends ! -> http://moku.free.fr/a_la_vente.html



Reply to: