ports/mail/mutt해결책:

ports/mail/mutt해결책:

내 MacBook에서 나 자신에게 빠르게 무언가를 보내려고 하는데 보낸 사람 필드에 있는 정규화되지 않은 도메인 이름으로 인해 내 서버가 SMTP 연결을 거부하는 데 문제가 있습니다.

EMAIL환경 변수를 사용해 보았습니다.똥개(1)/var/log/mail.log, 하지만 내 MacBook에서는 여전히 같은 오류가 발생합니다.

Aug 1 13:32:52 MacBook-Air-01234567890.local postfix/smtp[91675]: AEA7EDD2D11: to=<[email protected]>, relay=a.mx.---.--[88.198.--.--]:25, delay=7.8, delays=0.78/0.01/6.8/0.17, dsn=5.1.8, status=bounced (host a.mx.---.--[88.198.--.--] said: 553 5.1.8 <[email protected]>... Domain of sender address [email protected] does not exist (in reply to MAIL FROM command))

답변1

ports/mail/mutt해결책:

이는 환경 변수에 따라 SMTP 봉투가 변경 되지 mutt않기 때문에 대신 다음을 사용해야 합니다.EMAILtcsh통사론:

env EMAIL=`whoami`@`hostname`.example.org \
mutt -s "`history 1`" -e 'set envelope_from' [email protected]

기본적으로 환경 변수에 이메일을 지정해야 할 뿐만 아니라 이를 다음 환경 변수에 EMAIL전달해야 합니다.-e 'set envelope_from'mutt, 기본값은 입니다 no.http://www.mutt.org/doc/manual/#use-envelope-from.


mail(1)해결책:

또 다른 옵션은 사실을 사용하는 것입니다.mail(1)주문하다우리를 보자당신은 무엇이든 통과sendmail-flags 과거명세서to-addr:

 mail [-EIinv] [-a file] [-b bcc-addr] [-c cc-addr] [-r rcfile]
      [-s subject] to-addr ... [- sendmail-flags]

이는 -f예제에만 명시적으로 문서화되어 있는 것 같습니다.NetBSD의 메일 매뉴얼 페이지(1), 거기는 아니야오픈BSD,FreeBSD, OS X 또는 macOS:

   Sending mail
     To send a message to one or more people, mail can be invoked with argu-
     ments which are the names of people to whom the mail will be sent.  You
     are then expected to type in your message, followed by a `control-D' at
     the beginning of a line.

     Any flags following the list of recipients, will be passed, together with
     their arguments, directly to sendmail(1).  For example to change your
     From address to [email protected] you can specify:

           mail recipient -f [email protected]

예를 들어, 다음은 mutt위의 예와 동일하게 작동하며 OS X에서 성공적으로 테스트되었습니다.

mail -s "`history 1`" [email protected] -f `whoami`@`hostname`.example.org

순서는 중요하며 작동하지 않습니다. 위의 세부정보를 참조하세요.mail -f [email protected] -s subject [email protected]

관련 정보