创始人说

????????????smtp????


??

smtp ??????????????????????????????????????????????????????????????? sentry / confluence / zulip ???????????????? smtp ???????????

???????????????????????????????????????????????????????????????????????????????

??

????????????????????

  • ?????????????????????????????????
  • ??????????????????????????????????????????????????????
  • ????????????????????????????? github ????????????
  • ?????
  • ??????????? smtp ??????????????? pop3 ????????????????????? confluence ???????????????????????????????

    15030520412280.jpg

    15030520475483.jpg

    ???????????????????????????????????????? github ???????????????????????????????????????????????

    ????

    ??????????????????????? postfix ? smtp ???

    15030520521148.jpg

  • ?? postfix ?? smtp replay ????????????????????
  • ???? postfix ?????????????????????????????????????????????????? postfix ??????????????????
  • postfix ? smtp ???????? smtp ????????????????????????????????????????? pop3?????????????? 163 ???qq ???????????????
  • ???????????????????????????????????????????????????????????????

     

    sudo vim /etc/postfix/main.cf

    #####???main.cf????

    relayhost = [$SMTP_HOST]:25

    smtp_sasl_auth_enable = yes

    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

    smtp_sasl_security_options = noanonymous

    #????????????????????smtp??????

    ender_canonical_maps = pcre:/usr/local/etc/postfix/sender_canonical_map

    #####???main.cf????

    sudo vim /etc/postfix/sender_canonical_map

    #####???main.cf????

    /.*/ ??smtp???

    #####???main.cf????

    sudo vim /etc/postfix/sasl_passwd

    #####???sasl_passwd????

    [$SMTP_HOST]:25     ???:??

    #####???sasl_passwd????

    sudo postmap /etc/postfix/sasl_passwd

    sudo service postfix resart

    # done

    ????? ????? smtp ??????????????????????????????????????????? postfix ?????????????????  

    1??? curl ??????

    ???? curl ???? smtp / smtps , ??????????????????????????????????????  

    /usr/local/bin/curl -s -v –url “smtp://xxxx:25″ –mail-from “sender@bigsec.com” –mail-rcpt “receiver@bigsec.com” –upload-file mail.txt

    # content of mail.txtFrom:xxx@bigsec.comTo:xxx@bigsec.comSubject: curl??????

    xxxxx

     
     

    2??????mailx???????

    ??????????????? mailx ??????????????????????????????????????? ubuntu ????? heirloom-mailx ???????????

    echo "test" |mail -S smtp=xxxx -r sender@bigsec.com -s subject receiver@bigsec.com

    ?????????????????????

    ??????????????????????????????????????????????

      ?? ??????? postfix ? smtp relay ?????????????????????????
  • ????????????????
  • ??????????????????????? / ????????
  • ????????????????????

    ???PayPal??????????????????????????????????????????????????????????????????????????????????????????????????????????