Serveur mail postfix

voila je vien de cree mon serveur mail postfix

mais la reception de mail exemple d’un compt mail externe comme un compte hotmail ne fonctione pas.

  • le nom de domaine est acheter et il est bien configurer. (ovh)
  • le serveur est configurer comme ça :dig mx fordev-studio.com d’un autre pc du réseau
    Voici les fichier de diagnostique et de configuraiton :

; <<>> DiG 9.3.4-P1.1 <<>> mx fordev-studio.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51790
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;fordev-studio.com. IN MX

;; ANSWER SECTION:
fordev-studio.com. 86400 IN MX 1 mail.fordev-studio.com.

;; ADDITIONAL SECTION:
mail.fordev-studio.com. 86400 IN A 88.177.247.112

;; Query time: 27 msec
;; SERVER: 212.27.40.240#53(212.27.40.240)
;; WHEN: Thu Nov 26 12:09:13 2009
;; MSG SIZE rcvd: 72

mon fichier named.conf

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, BEFORE you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include “/etc/bind/named.conf.options”;

// prime the server with knowledge of the root servers
zone “.” {
type hint;
file “/etc/bind/db.root”;
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone “localhost” {
type master;
file “/etc/bind/db.local”;
};

zone “127.in-addr.arpa” {
type master;
file “/etc/bind/db.127”;
};

zone “0.in-addr.arpa” {
type master;
file “/etc/bind/db.0”;
};

zone “255.in-addr.arpa” {
type master;
file “/etc/bind/db.255”;
};

zone “fordev-studio.com” {
type master;
file “/etc/bind/fordev-studio.com”;
};

zone “0.168.192.in-addr.arpa” {
type master;
file “/etc/bind/192.168.0”;
};

include “/etc/bind/named.conf.local”;

mon fichier zone fordev-studio.com
$ORIGIN fordev-studio.com.
$TTL 3D
@ IN SOA debian-fds.fordev-studio.com. root.fordev-studio.com. (3 36000 3600 360000 86400)

@ IN NS debian-fds.fordev-studio.com.
@ IN MX 1 mail.fordev-studio.com.

debian-fds A 192.168.0.16
mail A 192.168.0.16
www CNAME debian-fds
fixtouch A 192.168.0.20

mon fichier zone inverse
$TTL 3D
@ IN SOA debian-fds.fordev-studio.com. root.fordev-studio.com. (3 36000 3600 360000 86400)
@ IN NS debian-fds.fordev-studio.com.
@ IN MX 1 mail.fordev-studio.com.

16 PTR debian-fds.fordev-studio.com.
16 PTR fordev-studio.com.
16 PTR mail.fordev-studio.com.
20 PTR fixtouch.fordev-studio.com.

debian-fds:/home/tamir# named -g
26-Nov-2009 11:46:46.001 starting BIND 9.5.1-P3 -g
26-Nov-2009 11:46:46.001 found 2 CPUs, using 2 worker threads
26-Nov-2009 11:46:46.001 using up to 4096 sockets
26-Nov-2009 11:46:46.007 loading configuration from '/etc/bind/named.conf’
26-Nov-2009 11:46:46.008 max open files (1024) is smaller than max sockets (4096)
26-Nov-2009 11:46:46.008 using default UDP/IPv4 port range: [1024, 65535]
26-Nov-2009 11:46:46.008 using default UDP/IPv6 port range: [1024, 65535]
26-Nov-2009 11:46:46.010 listening on IPv6 interfaces, port 53
26-Nov-2009 11:46:46.011 binding TCP socket: address in use
26-Nov-2009 11:46:46.011 listening on IPv4 interface lo, 127.0.0.1#53
26-Nov-2009 11:46:46.011 binding TCP socket: address in use
26-Nov-2009 11:46:46.012 listening on IPv4 interface eth0, 192.168.0.16#53
26-Nov-2009 11:46:46.012 binding TCP socket: address in use
26-Nov-2009 11:46:46.015 automatic empty zone: 254.169.IN-ADDR.ARPA
26-Nov-2009 11:46:46.015 automatic empty zone: 2.0.192.IN-ADDR.ARPA
26-Nov-2009 11:46:46.015 automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
26-Nov-2009 11:46:46.015 automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
26-Nov-2009 11:46:46.015 automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
26-Nov-2009 11:46:46.015 automatic empty zone: D.F.IP6.ARPA
26-Nov-2009 11:46:46.015 automatic empty zone: 8.E.F.IP6.ARPA
26-Nov-2009 11:46:46.015 automatic empty zone: 9.E.F.IP6.ARPA
26-Nov-2009 11:46:46.015 automatic empty zone: A.E.F.IP6.ARPA
26-Nov-2009 11:46:46.015 automatic empty zone: B.E.F.IP6.ARPA
26-Nov-2009 11:46:46.017 none:0: open: /etc/bind/rndc.key: permission denied
26-Nov-2009 11:46:46.017 couldn’t add command channel 127.0.0.1#953: permission denied
26-Nov-2009 11:46:46.017 none:0: open: /etc/bind/rndc.key: permission denied
26-Nov-2009 11:46:46.017 couldn’t add command channel ::1#953: permission denied
26-Nov-2009 11:46:46.017 ignoring config file logging statement due to -g option
26-Nov-2009 11:46:46.018 zone 0.in-addr.arpa/IN: loaded serial 1
26-Nov-2009 11:46:46.018 zone 127.in-addr.arpa/IN: loaded serial 1
26-Nov-2009 11:46:46.019 zone 0.168.192.in-addr.arpa/IN: loaded serial 3
26-Nov-2009 11:46:46.019 zone 255.in-addr.arpa/IN: loaded serial 1
26-Nov-2009 11:46:46.020 zone fordev-studio.com/IN: loaded serial 3
26-Nov-2009 11:46:46.020 zone localhost/IN: loaded serial 2
26-Nov-2009 11:46:46.021 running

mes fichier de configuration de postfix
main.cf

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 (Ubuntu)
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

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:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_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.fordev-studio.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = fordev-studio.com, debian-fds.fordev-studio.com, localhost.fordev-studio.com, localhost
relayhost =
mynetworks = 127.0.0.0/8, 192.168.0.0/24, 88.177.247.112
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/

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”).

Do not forget to execute “postfix reload” after editing this file.

==========================================================================

service type private unpriv chroot wakeup maxproc command + args

(yes) (yes) (yes) (never) (100)

==========================================================================

smtp inet n - - - - smtpd
#submission inet n - - - - smtpd

-o smtpd_tls_security_level=encrypt

-o smtpd_sasl_auth_enable=yes

-o smtpd_client_restrictions=permit_sasl_authenticated,reject

-o milter_macro_daemon_name=ORIGINATING

smtps inet n - n - - smtpd

-o smtpd_tls_wrappermode=yes

-o smtpd_sasl_auth_enable=yes

-o smtpd_client_restrictions=permit_sasl_authenticated,reject

-o milter_macro_daemon_name=ORIGINATING

#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix 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 - - - - - smtp
-o smtp_fallback_relay=

-o smtp_helo_timeout=5 -o smtp_connect_timeout=5

showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache

====================================================================

Interfaces to non-Postfix software. Be sure to examine the manual

pages of the non-Postfix software to find out what options it wants.

Many of the following services use the Postfix pipe(8) delivery

agent. See the pipe(8) man page for information about ${recipient}

and other message envelope options.

====================================================================

maildrop. See the Postfix MAILDROP_README file for details.

Also specify in main.cf: maildrop_destination_recipient_limit=1

maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}

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)

Other external delivery methods.

ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

ma configuration OVH

Champ Type Cible

.fordev-studio.com NS dns.ovh.net
.fordev-studio.com NS ns.ovh.net
.fordev-studio.com MX 1 mail.fordev-studio.com
.fordev-studio.com A 88.177.247.112
fordev-studio.com CNAME fordev-studio.com
mail.fordev-studio.com A 88.177.247.112


ou est mon erreur.

essaies un

et à l’aide d’un webmail, tu t’envoies un message.

Tu verras deja pourquoi postfix le vire (si c’est lui).

quand j’essaie de t’envoyer un mail:

Je me suis permis de faire un scan de tes ports pour t’aider, le port 25 n’est pas accessible de l’exterieur, tu as configuré ton firewall ?

je n’ai pas encore de firewall, et je suis chez free.fr
j’ais déactiver le blocage du port 25 et bien rediriger les ports , je peux qu’envoyer les mails.
le probleme vien il de free ?

$ telnet mail.fordev-studio.com 25 Trying 88.177.247.112... Connected to mail.fordev-studio.com. Escape character is '^]'. 220 mail.fordev-studio.com ESMTP Postfix (Ubuntu) quit 221 2.0.0 Bye
Ça roule chez moi.

[code]Connected to mail.fordev-studio.com.
Escape character is ‘^]’.
220 mail.fordev-studio.com ESMTP Postfix (Ubuntu)
helo xxxxxxxxxx
250 mail.fordev-studio.com
mail from fran.b mi@hotmail.com
501 5.5.4 Syntax: MAIL FROM:
mail from: fran.b mi@hotmail.com
555 5.5.4 Unsupported option: mi@hotmail.com
mail from: mi@hotmail.com
250 2.1.0 Ok
rcpt to:postmaster@fordev-studio.com
250 2.1.5 Ok
data
354 End data with .
Ceci est un test, Ça a l’air de marché
.
250 2.0.0 Ok: queued as 93AD6BB48

500 5.5.2 Error: bad syntax
quit
221 2.0.0 Bye
Connection closed by foreign host.
[/code]
Voilà, faute d’orthographe en prime.