Skip to content

spirit posteets tagged mail

 

  • 7 years ago
    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
  • 7 years ago and saved by 1 other
    1. mutt -a PIECE_JOINTE -s “SUJET” EMAIL_DESTINATAIRE < FICHER_AVEC_CORPS_DU_MSG
  • 8 years ago and saved by 1 other
    1. # credentials must be Base64 encoded. Two methods :
    2. printf ‘username\0username\0password’ | mmencode
    3. perl -MMIME::Base64 -e ‘print encode_base64(“username\0username\0password”);’
  • 8 years ago and saved by 1 other
    1. telnet mail.serveur.com 110
    2. USER toto
    3. PASS toto
    4. STAT          # (affiche le nombre de mails dans la boite)
    5. RETR 12     # (affiche le mail 12)
    6. TOP 12 25  # (affiche les 25 premières lignes du mail 12)
    7. DELE 12     # (efface le mail 12)
    8. QUIT

    “mail” related tags

    spirit’s tags