官术网_书友最值得收藏!

Simple Email Service

Amazon Simple Email Service (SES) is an SMTP server to send limited amounts of e-mails per day. At the time of writing this book, it is about 200 e-mails per day, which is more than enough. To set up SES, follow these steps:

  1. On the console page, click on SES under App Services:
    Simple Email Service
  2. On the next page, click on SMTP Settings, and copy the server name and port number to a file as you will need them for the next step:
    Simple Email Service
  3. Click on the Create My SMTP Credentials button and wait until you are redirected to the IAM service (another Amazon service to manage credentials). Click on the Create button:
    Simple Email Service
  4. Copy and paste the username and password fields in the following page because you will need them for the next topic as well:
    Simple Email Service

    Note

    The credentials provided here are fake. Don't use them. Use your custom ones. You don't think I'm going to expose my password to the world, do you?

Configuring Jenkins

Now that we have the mail server and Jenkins plugins in place, it is time to configure Jenkins itself, by preforming the following steps:

  1. Navigate to Manage Jenkins | Configure System and, leaving all other settings as default, scroll down to Jenkins Location. As you can see, it is already set to our EC2 instance. Set the e-mail address that you want all notifications sent from:
    Configuring Jenkins
  2. Under SSH Server, disable SSHD port.
  3. Scroll further down to the E-mail Notification section and click on the Advanced button. Check Use SMTP Authentication and Use SSL. Now fill in this form with SMTP server settings that you did from the previous section:
    Configuring Jenkins

    If you'd rather use your own SMTP settings instead of SES, feel free to replace this form with your settings.

  4. Click on the Test configuration button, and if everything is set up correctly, you will see a success message and receive an e-mail shortly.
  5. Finally, click on the Save button at the bottom of this page.
主站蜘蛛池模板: 郯城县| 大同县| 黔西县| 南京市| 红安县| 巴马| 元谋县| 广宁县| 永宁县| 乐平市| 六枝特区| 兴国县| 临澧县| 若羌县| 苏尼特左旗| 高尔夫| 额尔古纳市| 汕尾市| 墨脱县| 塔城市| 霍州市| 饶河县| 禹城市| 兰溪市| 泗阳县| 文昌市| 紫金县| 稻城县| 龙州县| 浦县| 上高县| 兴安盟| 阿坝| 边坝县| 长寿区| 丹东市| 台南县| 岑溪市| 巴马| 云龙县| 徐州市|