在Raspberry上发送Sendmail,如何更改发件人邮件地址?

时间:2017-07-20 12:42:56

标签: linux email raspberry-pi sendmail

我在我的树莓上安装了sendmail。我测试了发送邮件是否正常,但是当我执行此命令时:

    // Create the chart
var updateLegend = function(chart) {
  var center = chart.series[0].center;
  console.log(chart.legend)
  chart.legend.group.attr({
    translateX: center[0] + center[2] / 2
  });
}
var chart = Highcharts.chart('container', {
  chart: {
    type: 'pie',
    plotBorderColor: '#3F4044',
    borderColor: '#AAAAAA',
    borderWidth: 2,
    marginRight: 0,
    marginLeft: 0,
    events: {
      load: function() {
        updateLegend(this)
      },
      redraw: function() {
        updateLegend(this);
      }
    }
  },
  series: [{
    name: 'Incidents',
    data: [{
      name: "Critical",
      y: 1,
      color: "#FF0000"
    }, {
      name: "Severe",
      y: 8,
      color: "#F57622"
    }, {
      name: "Major",
      y: 13,
      color: "#F0A401"
    }, {
      name: "Minor",
      y: 25,
      color: "#F0C801"
    }, {
      name: "Information",
      y: 30,
      color: "#4AB6FF"
    }],
    size: '80%',
    innerSize: '60%',
    showInLegend: true,
    dataLabels: {
      enabled: false
    }
  }],
  legend: {
    layout: "vertical",
    align: "right",
    verticalAlign: "middle",
  }
});

我收到此错误:

echo "Subject: sendmail test" | sendmail -v anexistinggmailaccount@gmail.fr

我知道我必须更改发件人邮件,但我找不到必须更改此配置的位置。经过多次互联网搜索,我找不到解决方案...

1 个答案:

答案 0 :(得分:0)

将主机名(由hostname --fqdn报告)更改为名称,并指向指向您固定IP地址的DNS A记录。