Tags: mail

Sort by: Date / Title /

  1. 2 years ago by spirit
    1. apt-get install postfix
    2. # Choisir configuration type 'Site internet'
    3.  
    4. //////////////////////////
    5. //-- etc/postfix/main.cf
    6. //////////////////////////
    7. myhostname = bart
    8. mydomain = mydomain.com
    9. myorigin = $myhostname.$mydomain
    10. alias_maps = hash:/etc/aliases
    11. alias_database = hash:/etc/aliases
    12. mydestination = $myhostname, $myorigin, localhost.$mydomain, localhost
    13. mynetworks = 127.0.0.0/8,192.168.10.0/24 # Defines networks allowed for SMTP connections
    14. #luser_relay = user  # used with the local daemon in the transport map,
    15. mailbox_size_limit = 0
    16. recipient_delimiter = +
    17. inet_interfaces = all
    18. transport_maps = hash:/etc/postfix/transport
    19.  
    20. //////////////////////////
    21. //-- /etc/postfix/transport
    22. //////////////////////////
    23. extdomain.com smtp:[192.168.10.1]  # relay
    24. .extdomain.com smtp:[192.168.10.1] # tous les sous domaines
    25. * discard # jeter tous les autres messages
    26.  
    27. //////////////////////////
    28. postmap /etc/postfix/transport
    29. /etc/init.d/postfix reload
    30. # Consulter les logs dans mail.info
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1225"></script>
  2. 2 years ago by henri
    Smtp-source est fourni avec le package postfix. Il permet d'envoyer un grand nombre de mails sur un serveur. C'est très utile pour voir si votre serveur tient bien lors d'une grosse montée en charge.
    1. smtp-source -s 20 -l 5120 -m 15 -c -f user1@domain.tld -t user2@domain.tld serveurdemail:25
    2.  
    3. # -s Nombre de thread
    4. # -l Taille du message
    5. # -m Nombre de message
    6. # -c affiche un compteur
    7. # -f expediteur
    8. # -t destinataire
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/712"></script>
  3. 2 years ago by skanx
    Apple Mail keeps a lot of junk in a SQLite database named Envelope Index. Since it's a database, it tends to grow with time, and deleted records are not handled very efficiently. You might want to clean it a bit from time to time, and Mail might even seem a little faster after that.
    
    1. Quit Mail
    
    2. Launch a terminal, and type this command :
    
    sqlite3 ~/Library/Mail/Envelope\ Index vacuum
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/553"></script>
  4. sponsorised links
  5. 2 years ago by spirit 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");'
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/180"></script>
  6. 2 years ago by daoro and saved by 2 others
    1. // Vérification de la forme
    2. function isEmail($email){
    3.  return preg_match("/^(\w|-|\.)+@((\w|-)+\.)+[a-z]{2,6}$/i", $email)
    4. }
    5.  
    6. // Domaine valide ?
    7. function isEmailDomaine($email){
    8.    list($compte,$domaine)=split('@',$email,2);
    9.    if(!checkdnsrr($domaine,'MX') && !checkdnsrr($domaine,'A')){
    10.      return false;
    11.    }else{
    12.      return true;
    13.    }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/152"></script>
  7. 2 years ago by neorom and saved by 1 other
    telnet mon_serveur.com 110
    USER toto
    PASS toto
    STAT (affiche le nombre de mails dans la boite)
    RETR 12 (affiche le mail 12)
    TOP 12 25 (affiche les 25 premières lignes du mail 12)
    DELE 12 (efface le mail 12)
    QUIT
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/74"></script>
  8. 2 years ago by henri and saved by 1 other
    1. mutt -a PIECE_JOINTE -s "SUJET" EMAIL_DESTINATAIRE < FICHER_AVEC_CORPS_DU_MSG
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/43"></script>
  9. 2 years ago by neorom
    1. mail -u user
    2. d *
    3. quit
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/18"></script>

First / Previous / Next / Last / Page 1 of 1 (8 posteets)