View

Configuration de base d’un postfix

  1. apt-get install postfix
  2. # Choisir configuration type ‘Site internet’
  3. //////////////////////////
  4. //– etc/postfix/main.cf
  5. //////////////////////////
  6. myhostname = bart
  7. mydomain = mydomain.com
  8. myorigin = $myhostname.$mydomain
  9. alias_maps = hash:/etc/aliases
  10. alias_database = hash:/etc/aliases
  11. mydestination = $myhostname, $myorigin, localhost.$mydomain, localhost
  12. mynetworks = 127.0.0.0/8,192.168.10.0/24 # Defines networks allowed for SMTP connections
  13. #luser_relay = user  # used with the local daemon in the transport map,
  14. mailbox_size_limit = 0
  15. recipient_delimiter = +
  16. inet_interfaces = all
  17. transport_maps = hash:/etc/postfix/transport
  18. //////////////////////////
  19. //– /etc/postfix/transport
  20. //////////////////////////
  21. extdomain.com smtp:[192.168.10.1]  # relay
  22. .extdomain.com smtp:[192.168.10.1] # tous les sous domaines
  23. * discard # jeter tous les autres messages
  24. //////////////////////////
  25. postmap /etc/postfix/transport
  26. /etc/init.d/postfix reload
  27. # Consulter les logs dans mail.info

You may also like