이메일 보낸 사람 주소가 업데이트되지 않았습니다.

이메일 보낸 사람 주소가 업데이트되지 않았습니다.

이메일을 보내려고 하는데 발신자 이메일 주소가 계속 잘못 표시됩니다.

운영 체제 세부정보:

NAME="Ubuntu" VERSION="18.04.5 LTS (Bionic Beaver)"  
ID=ubuntu
ID_LIKE=debian  
PRETTY_NAME="Ubuntu 18.04.5 LTS"  
VERSION_ID="18.04" 
HOME_URL="https://www.ubuntu.com/" 
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"  
PRIVACY POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic 
UBUNTU_CODENAME=bionic

노트:mail우리는 및 를 설치했습니다 ssmtp. 파일에 메일허브만 구성했습니다 ssmtp.conf.

From 주소는 이어야 하는데, [email protected]와 같습니다 xyz@guid.

지금까지 시도한 명령은 다음과 같습니다.

echo "Hello there" | mail -s "Test Mail" -r [email protected] mail-to@[email protected] 
echo "Hello there" | mail -s "Test Mail" -r mail-from@[email protected] mail-to@[email protected] 
echo "Hello there" | mail -s "Test Mail" -r 'First Last <[email protected]>' [email protected] 
echo "Hello there" | mail -s "Test Mail" -aFrom:'First Last <[email protected]>' [email protected] 
echo "Hello there" | mail -s "Test Mail"  [email protected] -aFrom:[email protected]
echo "Hello there" | mail -s "Test Mail"  -aFrom:IROL-Admin\<[email protected]\> [email protected]

답변1

아래 SSMTP.Conf를 사용하여 작업했습니다.

[email protected]
mailhub=mailhost.company.com:25
FromLineOverride=YES

관련 정보