Is there a possibility to configure ssmtp and mail/mailx so, that i can for example send email from email@example.com to any address using a gmail relay? Would gmail automaticly reject any such emails? I also tried to not use gmail, but then i always got the error
send-mail: Cannot open mail:25. So far I only found sites which helped fixing it when using postfix.
So far I configured in the config file /etc/ssmtp/ssmtp.conf the following:
root=postmaster AuthUserfirstname.lastname@example.org rewriteDomain=myowndomain.com AuthPass=mygmailpw FromLineOverride=YES mailhub=smtp.gmail.com:587 UseSTARTTLS=YES UseTLS=Yes
Oh, and I'm using Debian wheezy. Any help appreciated :)