Postfix는 기본 인터페이스 대신 인터페이스 별칭을 사용합니다.

Postfix는 기본 인터페이스 대신 인터페이스 별칭을 사용합니다.

/usr/sbin/sendmail을 사용하여 이메일을 보내는 경우(예를 들어 스크립트를 사용하십시오.), Postfix는 호스트의 인터페이스 별칭(eth0:0, 74.50.122.55) 메인 인터페이스(eth0,66.232.99.54)...

[root@www ~]# cat test.msg 
To: [email protected]
Subject: This is a bogus e-mail

This is a bogus e-mail.
[root@www ~]# sendmail -t -i < test.msg

이메일 헤더의 결과는 다음과 같습니다.

Return-Path: <[email protected]>
Received: from www.rocket-powered.com ([74.50.122.55])
        by mx.google.com with ESMTPS id c4si14411712yhe.53.2013.04.13.11.39.16
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Sat, 13 Apr 2013 11:39:16 -0700 (PDT)
Received-SPF: fail (google.com: domain of [email protected] does not designate 74.50.122.55 as permitted sender) client-ip=74.50.122.55;
Authentication-Results: mx.google.com;
       spf=hardfail (google.com: domain of [email protected] does not designate 74.50.122.55 as permitted sender) [email protected]
Received: by www.rocket-powered.com (Postfix, from userid 0)
    id CA46D39412D; Sat, 13 Apr 2013 18:32:14 +0000 (UTC)
From: [email protected]
To: [email protected]
Subject: This is a bogus e-mail

Postfix가 인터페이스 별칭(eth0:0, 74.50.122.55)기본 인터페이스(eth0,66.232.99.54)?

FWIW: SMTP 제출을 통해 전송된 이메일은 일반적으로 기본 인터페이스(eth0,66.232.99.54). 예를 들어,

Return-Path: <[email protected]>
Received: from www.rocket-powered.com (rocket-powered.com. [66.232.99.54])
        by mx.google.com with ESMTPS id s61si9056793yhd.296.2013.04.13.17.28.36
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Sat, 13 Apr 2013 17:28:36 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 66.232.99.54 as permitted sender) client-ip=66.232.99.54;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of [email protected] designates 66.232.99.54 as permitted sender) [email protected]
Received: from www.rocket-powered.com (localhost [IPv6:::1])
    by www.rocket-powered.com (Postfix) with ESMTPA id 979D23940F7
    for <[email protected]>; Sun, 14 Apr 2013 00:21:33 +0000 (UTC)
DomainKey-Signature: a=rsa-sha1;  q=dns; c=nofws;
  s=default; d=rocket-powered.com;
  b=Y5YVbjb5mXPJgyDkMjXdanWRCM4gdEjIdbgouOpDJ6hEAObGcaokpiidfhc29lvBezLyZL06++gL1oyd+bjrywd1I9sqlB0i5Tfjig2ufKLEizcSeyTkDWjm/jKP6TIy;
  h=Date:To:From:Reply-To:Subject:Message-ID:X-Priority:X-Mailer:MIME-Version:Content-Type;
Date: Sun, 14 Apr 2013 00:21:33 +0000
To: Fred Flintstone <[email protected]>
From: "Rocket-Powered.com" <[email protected]>
Reply-To: "Rocket-Powered.com" <[email protected]>
Subject: Welcome

답변1

당신은 설정해야inet_interfacesPostfix에서 사용하려는 인터페이스의 주소 또는 해당 호스트 이름에 연결하세요. Postfix가 메일을 받기를 원하는 인터페이스(IP 주소)에 따라 SMTP 클라이언트 서비스에 대해 master.cf에서만 이 옵션을 설정하기를 원할 수도 있습니다. myhostname설정이 올바른지 확인한 다음 다음을 사용하여 설정하고 싶습니다 inet_interfaces.

smtp      unix  -       -       n       -       -       smtp
  -o inet_interfaces=$myhostname

SMTP 클라이언트 서비스와 SMTP 서버 데몬의 차이점은 master.cf미묘합니다 smtpd.선.

관련 정보