public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] OT - format ssmtp's from field + gmail SMTP
@ 2006-10-13 17:20 Michael [Plouj] Ploujnikov
  2006-10-13 17:58 ` [gentoo-user] " Michael [Plouj] Ploujnikov
  0 siblings, 1 reply; 2+ messages in thread
From: Michael [Plouj] Ploujnikov @ 2006-10-13 17:20 UTC (permalink / raw
  To: gentoo-user

I am using gmail's SMTP server to send mail from my local machine
(mostly for portage and cron logs) and I discovered that if I send
mail using the `mail` command, rather than using my real name,
something just puts my email in the From field. To make it clear it
looks like this:

gmail's interface:
From: ploujj@gmail.com <ploujj@gmail.com>

actual mail text:
From: ploujj@gmail.com

What I would like it to show is:
gmail's interface:
From: Michael [Plouj] Ploujnikov <ploujj@gmail.com>

actual mail text:
From: "Michael [Plouj] Ploujnikov" <ploujj@gmail.com>

I noticed thatmy cron daemon is able to do this:
From: Cron Daemon <ploujj@gmail.com>

So far, I failed to find out what allowed cron to do this.

my ssmtp config:

# grep -v "#" /etc/ssmtp/ssmtp.conf| cat -s
root=ploujj@gmail.com
mailhub=smtp.gmail.com:587
UseTLS=YES
UseSTARTTLS=Yes
AuthUser=ploujj
AuthPass=******
FromLineOverride=YES

I hope this isn't too OT. Please let me know if there is a better
place to ask this.


Thanks.

-- 
()  ASCII Ribbon Campaign
/\  - against HTML mail & vCards
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-user] Re: OT - format ssmtp's from field + gmail SMTP
  2006-10-13 17:20 [gentoo-user] OT - format ssmtp's from field + gmail SMTP Michael [Plouj] Ploujnikov
@ 2006-10-13 17:58 ` Michael [Plouj] Ploujnikov
  0 siblings, 0 replies; 2+ messages in thread
From: Michael [Plouj] Ploujnikov @ 2006-10-13 17:58 UTC (permalink / raw
  To: gentoo-user

I briefly looked at some vixie-cron code and it looks like it's piping
the whole mail text to some process. The interesting thing is that it
pipes:

fprintf(mail, "From: root (Cron Daemon)\n"); [1]

I guess I need to format my mail and pipe it somewhere. Not sure where
though - man mail doesn't talk about piping.

[1] ftp://ftp.isc.org/isc/cron/cron_4.1.shar

-- 
()  ASCII Ribbon Campaign
/\  - against HTML mail & vCards
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-13 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-13 17:20 [gentoo-user] OT - format ssmtp's from field + gmail SMTP Michael [Plouj] Ploujnikov
2006-10-13 17:58 ` [gentoo-user] " Michael [Plouj] Ploujnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox