Installation postfix
apt-get install postfix
à sélectionner « site internet »
Nom du courrier : izen-services.com
Vérification dans /var/log/mail.log
apt-get install mailx
Test :
echo « essai » | mail bdemolon@free.fr
Vérification dans /var/log/mail.log
Dans /etc/postfix/main.cf
mynetworks = 127.0.0.0/8 192.168.0.0/24 192.168.1.0/24 [::ffff:127.0.0.0]/104 [::1]/128
root@izenibm:/etc/postfix/ssl# telnet localhost 25
Trying ::1…
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
220 ibm.izen-services.com ESMTP Postfix (Ubuntu)
> EHLO somename.tld
250-ibm.izen-services.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
C’est bon!
OU (autre manière…)
root@ubuntu:/logiciels/postfix-2.6.4# groupadd –g 3001 postfix
root@ubuntu:/logiciels/postfix-2.6.4# groupadd –g 3002 postdrop
root@ubuntu:/logiciels/postfix-2.6.4# useradd -u 3000 -g postfix -s /bin/false postfix
root@ubuntu:/logiciels/postfix-2.6.4# apt-get install postfix
root@ubuntu:/logiciels/postfix-2.6.4# apt-get install mailx
Pour reconfigurer :
root@izenibm:/var/www# dpkg-reconfigure postfix
TEST
root@ubuntu:/etc/postfix# echo « essai2″ | mail bdemolon@izen-services.com
Sep 2 15:53:45 ubuntu postfix/pickup[20974]: 2EB561A3359: uid=0 from=<root>
Sep 2 15:53:45 ubuntu postfix/cleanup[21247]: 2EB561A3359: message-id=<20090902135345.2EB561A3359@ubuntu>
Sep 2 15:53:45 ubuntu postfix/qmgr[20975]: 2EB561A3359: from=<root@bdemolon@izen-services.com>, size=288, nrcpt=1 (queue active)
Sep 2 15:53:45 ubuntu postfix/smtp[21249]: warning: no MX host for izen-services.com has a valid address record
Sep 2 15:53:45 ubuntu postfix/smtp[21249]: 2EB561A3359: to=<bdemolon@izen-services.com>, relay=none, delay=0.02, delays=0.02/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for: Host not found)
Sep 2 15:53:45 ubuntu postfix/cleanup[21247]: 332F91A335A: message-id=<20090902135345.332F91A335A@ubuntu>
Sep 2 15:53:45 ubuntu postfix/bounce[21250]: 2EB561A3359: sender non-delivery notification: 332F91A335A
Sep 2 15:53:45 ubuntu postfix/qmgr[20975]: 2EB561A3359: removed
Sep 2 15:53:45 ubuntu postfix/qmgr[20975]: 332F91A335A: from=<>, size=2089, nrcpt=1 (queue active)
Sep 2 15:53:45 ubuntu postfix/smtp[21249]: warning: no MX host for izen-services.com has a valid address record
Sep 2 15:53:45 ubuntu postfix/smtp[21249]: 332F91A335A: to=<root@bdemolon@izen-services.com>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for: Host not found)
Sep 2 15:53:45 ubuntu postfix/qmgr[20975]: 332F91A335A: removed
root@ubuntu:/etc/postfix# echo « essai2″ | mail root@izen-services.com
Sep 2 15:54:25 ubuntu postfix/pickup[20974]: 4FC861A3359: uid=0 from=<root>
Sep 2 15:54:25 ubuntu postfix/cleanup[21247]: 4FC861A3359: message-id=<20090902135425.4FC861A3359@ubuntu>
Sep 2 15:54:25 ubuntu postfix/qmgr[20975]: 4FC861A3359: from=<root@bdemolon@izen-services.com>, size=284, nrcpt=1 (queue active)
Sep 2 15:54:25 ubuntu postfix/smtp[21249]: warning: no MX host for izen-services.com has a valid address record
Sep 2 15:54:25 ubuntu postfix/smtp[21249]: 4FC861A3359: to=<root@izen-services.com>, relay=none, delay=0.02, delays=0.02/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for: Host not found)
Sep 2 15:54:25 ubuntu postfix/cleanup[21247]: 5533E1A335A: message-id=<20090902135425.5533E1A335A@ubuntu>
Sep 2 15:54:25 ubuntu postfix/bounce[21250]: 4FC861A3359: sender non-delivery notification: 5533E1A335A
Sep 2 15:54:25 ubuntu postfix/qmgr[20975]: 4FC861A3359: removed
Sep 2 15:54:25 ubuntu postfix/qmgr[20975]: 5533E1A335A: from=<>, size=2077, nrcpt=1 (queue active)
Sep 2 15:54:25 ubuntu postfix/smtp[21249]: warning: no MX host for izen-services.com has a valid address record
Sep 2 15:54:25 ubuntu postfix/smtp[21249]: 5533E1A335A: to=<root@bdemolon@izen-services.com>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for: Host not found)
Sep 2 15:54:25 ubuntu postfix/qmgr[20975]: 5533E1A335A: removed
De l’extérieur:
Sep 2 15:55:36 ubuntu postfix/smtpd[21668]: connect from pmx1.afp.com[158.50.217.2]
Sep 2 15:55:36 ubuntu postfix/smtpd[21668]: NOQUEUE: reject: RCPT from pmx1.afp.com[158.50.217.2]: 554 5.7.1 <root@izen-services.com>: Relay access denied; from=<prvs=4899a3b50=B.DEMOLON@afp.com> to=<root@izen-services.com> proto=ESMTP helo=<pmx1-public.afp.com>
Sep 2 15:55:41 ubuntu postfix/smtpd[21668]: disconnect from pmx1.afp.com[158.50.217.2]
Sep 2 15:57:13 ubuntu postfix/smtpd[21668]: connect from pmx2.afp.com[158.50.217.3]
Sep 2 15:57:13 ubuntu postfix/smtpd[21668]: NOQUEUE: reject: RCPT from pmx2.afp.com[158.50.217.3]: 554 5.7.1 <bdemolon@izen-services.com>: Relay access denied; from=<prvs=4899a3b50=B.DEMOLON@afp.com> to=<bdemolon@izen-services.com> proto=ESMTP helo=<pmx2-public.afp.com>
root@ubuntu:/etc/postfix# echo « essai2″ | mail bdemolon@ubuntu.izen-services.com
Sep 2 15:58:38 ubuntu postfix/pickup[20974]: 8A9431A3359: uid=0 from=<root>
Sep 2 15:58:38 ubuntu postfix/cleanup[21998]: 8A9431A3359: message-id=<20090902135838.8A9431A3359@ubuntu>
Sep 2 15:58:38 ubuntu postfix/qmgr[20975]: 8A9431A3359: from=<root@bdemolon@izen-services.com>, size=295, nrcpt=1 (queue active)
Sep 2 15:58:38 ubuntu postfix/smtp[22000]: 8A9431A3359: to=<bdemolon@ubuntu.izen-services.com>, relay=none, delay=0.02, delays=0.02/0/0/0, dsn=5.4.6, status=bounced (mail for ubuntu.izen-services.com loops back to myself)
Sep 2 15:58:38 ubuntu postfix/cleanup[21998]: 8EBC11A335A: message-id=<20090902135838.8EBC11A335A@ubuntu>
Sep 2 15:58:38 ubuntu postfix/bounce[22001]: 8A9431A3359: sender non-delivery notification: 8EBC11A335A
Sep 2 15:58:38 ubuntu postfix/qmgr[20975]: 8EBC11A335A: from=<>, size=2046, nrcpt=1 (queue active)
Sep 2 15:58:38 ubuntu postfix/qmgr[20975]: 8A9431A3359: removed
Sep 2 15:58:38 ubuntu postfix/smtp[22000]: warning: no MX host for izen-services.com has a valid address record
Sep 2 15:58:38 ubuntu postfix/smtp[22000]: 8EBC11A335A: to=<root@bdemolon@izen-services.com>, relay=none, delay=0, delays=0/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for: Host not found)
Sep 2 15:58:38 ubuntu postfix/qmgr[20975]: 8EBC11A335A: removed
Blog of the year award…
That blog post was so good. I bestow upon you the Blogging Silver Star 2011….