間違いだらけの備忘録

このページの内容は無保証でありこのページの内容によって直接、または間接に損害を受けられたとしても私は責任を取りません。

ssmtp

FromLineOverride:FROMを書き換える場合はYesを指定する。
http://webos-goodies.jp/archives/50645131.html

FromLineOverride
YES 以外を指定すると、"From :" ヘッダ行を実際に送信したユーザーで上書きします。

めも

sSMTP で Gmail からメールを送る
http://www.forever5yearsold.net/archives/1

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster
 
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com
 
# Where will the mail seem to come from?
rewriteDomain=gmail.com
 
# The full hostname
hostname=gmail.com
 
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
 
AuthUser=your_id@gmail.com
AuthPass=your_password
useSTARTTLS=YES
# DEBUG=YES

テスト、最後はCTRL-Dで抜ける。

$ sendmail -t
From: your_id@gmail.com
To: your_id@gmail.com
Subject: test
 
test

めも

参考
http://www.usupi.org/sysad/172.html

このページにはhatena以外のサービスからのコンテンツが埋め込まれています。 hatenaによりGoogle AdSense 広告が埋め込まれています。