Bonjour a tous !
Je viens à nouveau vous embêter avec mes soucis de messagerie mais j’ai beau chercher dans tous les recoins du web, je n’arrive pas à trouver les solutions à mes soucis. ![]()
Le but du jeux est de monter un serveur de messagerie sur un poste Debian Lenny et tout doit être administré à partir d’un client Fedora qui n’est pas sur le même réseau, donc en ssh.
J’utilise Postfix pour le smtp et courier-pop pour récupérer mes messages à partir d’Evolution sur Fedora.
Juste qu’a hier soir tout fonctionnait parfaitement du moment que j’utilisais le port 25 et 110 pour mes protocoles jusqu’au moment ou … 
Mon patron débarque et qu’il me sorte « bon ben maintenant on va mettre en place un chiffrement Tls que pour le smtp et puis tu me bloque ce port 25 !!! » Euhhh oui certe !!! ![]()
Donc les clés sont générées le fichier main.cf reconfiguré, le fichier master.cf semble correcte et le port 25 supprimé (/etc/services), remplacé par le port 465.
Le premier mail test part sans problèmes, ouffffffff ![]()
Ce matin en arrivant catastrophe plus rien ne fonctionne, j’ai vérifié puis re-verifié ma configuration mais je n’arrive pas à comprendre pourquoi !!
Evolution me dit : Impossible de se connecter à smtp.monsite.fr : Connexion refusée 
Je vous mets mes différents fichiers et logs, si quelqu’un a une idées ca me sauve le week-end, merci d’avance
postcont -n
[quote]alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = ipv4
mailbox_command = procmail -a “$EXTENSION”
mailbox_size_limit = 64000000
mydestination = localhost.$mydomain, mail.monsite.fr, monsite.org, localhost, localhost.localdomain
mydomain = monsite.fr
myhostname = mail.monsite.fr
mynetworks = 85.170.xxx.xxx 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 212.99.xx.xxx
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
sender_canonical_maps = hash:/etc/postfix/canonical
smtp_tls_loglevel = 1
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks, check_relay_domains,
smtpd_tls_CAfile = /etc/postfix/tls/cacert.pem
smtpd_tls_cert_file = /etc/postfix/tls/smtpd.crt
smtpd_tls_key_file = /etc/postfix/tls/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = monsite.fr
virtual_mailbox_maps = hash:/etc/postfix/virtual_emplacement
virtual_uid_maps = static:5000[/quote]
le fichier master.cf
[code]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 - - - - 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 - - - - - 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}
[/code]
mon dernier log/mail.info
Jul 1 15:23:49 mail pop3d: LOGIN, user=vincent@monsite.fr, ip=[::ffff:85.170.xxx.xxx], port=[51102]
Jul 1 15:23:49 mail pop3d: LOGOUT, user=vincent@monsite.fr, ip=[::ffff:85.170.xxx.xxx], port=[51102], top=0, retr=0, rcvd=24, sent=921, time=0
la ligne du mail.error d’aujourd’hui
Jul 1 15:02:25 mail postfix/master[3653]: fatal: 0.0.0.0:smtp: Servname not supported for ai_socktype