avant je me souviens pas vraiment … mais quand je installait postfix et imap il m’ont affiché ce champ et je l’ai changé en smi.net
[code]debian:/home/yous/Desktop/Projet# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
215F93AB 321 Wed Apr 8 17:50:44 root@mail.smi.net
(Host or domain name not found. Name service error for name=debian.Z type=MX: Host not found, try again)
dsqd@debian.Z
yous@debian.Z
2F3233AE 304 Wed Apr 8 18:19:55 root@mail.smi.net
(Host or domain name not found. Name service error for name=debian.Z type=MX: Host not found, try again)
gfdgdf@debian.Z
ED2D73AC 302 Wed Apr 8 17:50:48 root@mail.smi.net
(Host or domain name not found. Name service error for name=debian.Z type=MX: Host not found, try again)
yous@debian.Z
D14423A9 312 Wed Apr 8 19:59:10 yous@mail.smi.net
(Host or domain name not found. Name service error for name=hotmail.fr type=MX: Host not found, try again)
yous1988@hotmail.fr
D58BA3AA 341 Wed Apr 8 19:59:29 yous@mail.smi.net
(Host or domain name not found. Name service error for name=hotmail.fr type=MX: Host not found, try again)
yous1988@hotmail.fr
F02C23AD 304 Wed Apr 8 17:55:44 yous@mail.smi.net
(Host or domain name not found. Name service error for name=debian.Z type=MX: Host not found, try again)
yous@debian.Z
– 3 Kbytes in 6 Requests.
[/code]
et voila le tous :
[code]zone “smi.net” {
type master;
file “/etc/bind/db.smi.net”;
};
zone “0.168.192.in-addr.arpa” {
type master;
file “/etc/bind/db.192.168.0”;
};
[/code]
[code]$TTL 24h
@ IN SOA ns.smi.net. mail.smi.net. (
2009040501
21600 ; refresh, 6 heures
1800 ; retry, 30 minutes
1209600 ; expire, 2 semaines
432000 ; minimum, 5 jours
)
@ IN NS ns.smi.net.
@ IN MX 10 mail.smi.net.
ns IN A 192.168.0.2
www IN CNAME ns
mail IN CNAME ns[/code]
[code]$TTL 24h
@ IN SOA ns.smi.net. mail.smi.net. (
2009040501
21600 ; refresh, 6 heures
1800 ; retry, 30 minutes
1209600 ; expire, 2 semaines
432000 ; minimum, 5 jours
)
@ IN NS ns.
2 IN PTR ns.[/code]
main.cf:
[code]# See /usr/share/postfix/main.cf.dist for a commented, more complete version
Debian specific: Specifying a file name will cause the first
line of that file to be used as the name. The Debian default
is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
appending .domain is the MUA’s job.
append_dot_mydomain = no
Uncomment the next line to generate “delayed mail” warnings
#delay_warning_time = 4h
readme_directory = no
TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
information on enabling SSL in the smtp client.
myhostname = mail
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = smi.net, mail.smi.net , localhost.smi.net , localhost
relayhost =
mynetworks = 127.0.0.0/8, 192.168.0.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/[/code]
extrait du fichier mail.log apres un dernier msg (status=sent)
Apr 9 00:29:08 debian postfix/pickup[2570]: C446D3B5: uid=0 from=<root>
Apr 9 00:29:08 debian postfix/cleanup[3220]: C446D3B5: message-id=<20090408222908.C446D3B5@mail>
Apr 9 00:29:08 debian postfix/qmgr[2572]: C446D3B5: from=<root@mail.smi.net>, size=298, nrcpt=1 (queue active)
Apr 9 00:29:08 debian postfix/local[3222]: C446D3B5: to=<yous@smi.net>, relay=local, delay=0.18, delays=0.11/0.03/0/0.05, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Apr 9 00:29:08 debian postfix/qmgr[2572]: C446D3B5: removed
et il y a ce fichier /home/yous/Maildir/cur/1239229748.3223_1.debian (toujours après un envoi un fichier de ce type il s’ajoute ici cur/ ou new/)
[code]Return-Path: root@mail.smi.net
X-Original-To: yous@smi.net
Delivered-To: yous@smi.net
Received: by mail (Postfix, from userid 0)
id C446D3B5; Thu, 9 Apr 2009 00:29:08 +0200 (CEST)
To: yous@smi.net
Subject: ah
X-Mailer: mail (GNU Mailutils 2.0)
Message-Id: 20090408222908.C446D3B5@mail
Date: Thu, 9 Apr 2009 00:29:08 +0200 (CEST)
From: root@mail.smi.net (root)
weeee[/code]