![](https://seccdn.libravatar.org/avatar/13c15af4b0b7be2b58d2ec00954d86e8.jpg?s=120&d=mm&r=g)
Carlos E. R. wrote:
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):
This depends on gmail accepting mail from your ip at all, and that is a big hurdle. As more bots appear on residential ips all the time it will likely that Gmail will not accept mail from dynamic ips unless they authenticate.
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
email@gmail.con loginname:password
/etc/postfix/sender_relayhost:
email@gmail.con [smtp.gmail.com]
/etc/postfix/virtual:
email@gmail.con localusername {optative}
You probably have to reverse the localpart and the email adress. You don't want to use the localusername with the localhostname as sender address. That is most likely not a routable address.
/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
This is an example I use to show a configuration with more than one user: /etc/postfix/main.cf: sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relayhost smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/smtp_relayhost_auth smtp_sasl_security_options = noanonymous smtp_sender_dependent_authentication = yes /etc/postfix/sender_relayhost user1@gmx.de [mail.gmx.de] user2@gmx.de [mail.gmx.de] /etc/postfix/smtp_relayhost_auth: user1@gmx.de user1@gmx.de:password1 user2@gmx.de user2@gmx.de:password2 -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org