![](https://seccdn.libravatar.org/avatar/6a36ae610919ddd038b815c6d8c8d2eb.jpg?s=120&d=mm&r=g)
Hello,
hmm, I'm either too blonde or need more coffee to fully understand what you mean... :-)
Sending emails TO a gmail.com account is quite easy/trivial, even from the shell, without installing the ssmtp package you propose (no pun intended):
---
martin@steelrose:~> mailx foo@gmail.com
Subject: Test to gmail.com
Hello world!
.
EOT
--
Jul 15 12:14:00 steelrose postfix/pickup[7215]: 5DFE5124BBA: uid=1000 from=<martin>
Jul 15 12:14:00 steelrose postfix/cleanup[7437]: 5DFE5124BBA: message-id=<20080715101400.5DFE5124BBA@steelrose.local>
Jul 15 12:14:00 steelrose postfix/qmgr[5223]: 5DFE5124BBA: from=
From: Mark V
To: suse Sent: Tuesday, July 15, 2008 9:17:27 AM Subject: [opensuse] A simple way to send email, from the command line, to a gmail account. The simplest solution I've found is to install the ssmtp package. I've packaged this on the OBS for all platforms except Debian and Ubuntu fdistros - If someone would like to get them building let me know and I'll add them as a maintainer.
This use case is quite specific, and is just what ssmtp targets: "extremely simple MTA to get mail off the system to a mail hub",.
The bonus is this allows you to send mail to a gmail account without any third parties, or configuring you local machine as....? (well its beyond me what I'd need to do)
I haven't yet worked out howto pass username and password other than via /etc/ssmtp/ssmtp.conf
I'd appreciate it anyone has additional tips or can point to a simpler set-up.....?
# # Begin bash session as ordinary user # su MY_REPO=http://download.opensuse.org/repositories/home:mvyver/openSUSE_11.0
zypper addrepo --check $MY_REPO "mvyver Repository" zypper install --repo $MY_REPO ssmtp
GMAIL_USER=...... GMAIL_PSWD=......
cat
mail -v -s "Testing SSMTP" $GMAIL_USER@gmail.com < This should go direct to gmail, "do not pass ISP do not pay fees".... EOM # # End bash session as ordinary user #
Preparation: --------------- - make sure sendmail is deactivated: # service sendmail stop - Check sendmail won't restart on reboot: YaST Control Center>>System>>System Services (runlevel) - check that the mta alternative does not exist # ls -la /etc/alternatives/mta # should not exist
Troubleshooting: -------------------- - If the /et/claternatives/mta exists before you install ssmtp, you can remove it: # /usr/sbin/update-alternatives --remove mta note that on your system might be different on mine it was /usr/bin/mailx
HTH? Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org