The first command moves the original sendmail out of the way, while the second makes sSMTP the program that gets run when any system command calls sendmail. With this approach, if you run into problems using sSMTP, just remove the symbolic link and move the sendmail copy back to its original name. This file has only four common options, plus some hidden options for authentication. After a sample build, sSMTP created the following configuration file for me lines starting with a symbol are comments :.
I changed this line to my personal email address. Set this line to the host you specify in your mail reader for the SMTP server. This is the domain part of all outbound messages; all users on your system will appear to be coming from this domain. Since I'm already spoofing the server address with the hostname line, I leave this line commented out. The initial configuration does not include information on how to log in to SMTP servers that require authentication.
This information is the same information you must provide in your mail reader in order for it to send email through your ISP. To specify this information, you can add the following lines:. If you have multiple users, you may not want to use sSMTP, since by default all email sent via the mail command will look like it comes from a single user. An additional configuration file, revaliases, allows you to map a local user to a specific From: address on outbound mail and to route that mail through a specific mailhub.
Still, there is no way to configure different logins on different mailhubs that use different different authentication credentials.
Also, in order for any user on your system to use sSMTP, they will need to have read permissions on the ssmtp. Placing your ISP login information in a configuration file that is world-readable allows anyone who uses your system to see your email authentication information. This is another reason why use of sSMTP is appropriate only for home users who are the sole users of that system. You can fix this problem through normal user and group permissions and by running sSMTP as a setuid program, but not if you want to make things as simple as possible, as we set out to do.
One important distinction is that it is not intended to receive mail, as Sendmail does. To work around this, you can use mail from s-nail. Namespaces Page Discussion. Views Read View source View history. Related articles Mail server. Note: sSMTP is unmaintained. Note: Take note, that the shown configuration is an example for Gmail, You may have to use other settings. If it is not working as expected read the man page ssmtp 8 , please.
Connect and share knowledge within a single location that is structured and easy to search. I've put mail settings in app. However, I'm not sure how to send a message using these settings. Specifically, the Send You don't need to do anything to use the configuration, it's all handled automatically. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. SMTP Mail client settings in app. Asked 12 years, 1 month ago. Active 5 years, 4 months ago. Viewed 26k times. This is what I have so far: System. GetSectionGroup "system.
0コメント