-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2008-07-15 at 03:28 -0700, Martin Mielke wrote:
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
Is not sending "TO", but using the gmail relay to send "FROM" you own account at gmail, if I understand correctly. It is not trivial either with postfix, but it is easy; you have to change a few files. If I don't miss any, it is (assuming your account is "email@gmail.con"): /etc/postfix/sasl_passwd: email@gmail.con email@gmail.con@PASSWD /etc/postfix/sender_relayhost: email@gmail.con [smtp.gmail.com] /etc/postfix/virtual: email@gmail.con localusername {optative} /etc/postfix/main.cf: smtp_sasl_auth_enable = yes smtp_sender_dependent_authentication = yes smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_mechanism_filter = cram-md5, login I think that's it. Of course, you have first to let Yast configure postfix with a default configuration, and later we depart from default in that mail which from is set to "email@gmail.con" is sent to the relay host of gmail, instead of the default relay if any, or being handled by postfix directly. The advantage is that you can define several relay hosts for different accounts or different users in the system. On the other hand, the command "mail" (aka mailx) can configure accounts and can send from the command line. From the man page: account myisp { set folder=imaps://mylogin@imap.myisp.example set record=+Sent set from="myname@myisp.example (My Name)" set smtp=smtp.myisp.example } Ie, I believe it is possible to send mail to the gmail smtp server using "mail" directly, from the command line, without intervention from postfix, if configured properly. But don't ask me how to configure it, I dunno - it is a long man page ;-) PS: the .con instead of .com is intentional for malign bots ;-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIfIhNtTMYHG2NR9URAg7dAJsFZ3ZX9XbYRoChecBrIO7hbikHmQCfUeZU rYnnFWbe6QHurjlCVhYowMU= =piG+ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org