By elearn
My system is debian8.1 ,sendmail has been installed. I want to use the sendmail as a external gmail SMTP way to send mail .
Some article say “vi /etc/mail.rc” to add the following lines :
set from=yourname@gmail.com
set smtp=smtp.gmail.com
set smtp-auth-user=yourname
set smtp-auth-password=yourpasswd
set smtp-auth=login
There is no /etc/mail.rc in my filesystem.
ls /etc/mail
access helpfile sendmail.cf submit.cf
access.db local-host-names sendmail.conf submit.mc
address.resolve m4 sendmail.mc tls
aliases Makefile service.switch trusted-users
aliases.db peers service.switch-nodns
databases sasl smrsh
Which file will be chosen to add the lines?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, could to have you here at DO and that you are asking our community to help you out. But if you google out a bit you can find out alot yourself ;) For example check this tutorial: http://linuxconfig.org/configuring-gmail-as-sendmail-email-relay
If you got any more questions you cant work out, ill be happy to help you then.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.