delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
X-Injected-Via-Gmane: | http://gmane.org/ |
Path: | not-for-mail |
From: | Andrew DeFaria <Andrew AT DeFaria DOT com> |
Newsgroups: | gmane.os.cygwin |
Subject: | Re: where can I find /etc/ssmpt/ssmtp.conf sample file?or mannual? |
Date: | Thu, 28 Mar 2002 08:38:35 -0800 |
Lines: | 74 |
Message-ID: | <3CA3470B.9040401@DeFaria.com> |
References: | <20020328153859 DOT 31095 DOT qmail AT web14202 DOT mail DOT yahoo DOT com> |
NNTP-Posting-Host: | dsl-64-195-250-225.telocity.com |
Mime-Version: | 1.0 |
X-Trace: | main.gmane.org 1017333516 11685 64.195.250.225 (28 Mar 2002 16:38:36 GMT) |
X-Complaints-To: | usenet AT main DOT gmane DOT org |
NNTP-Posting-Date: | Thu, 28 Mar 2002 16:38:36 +0000 (UTC) |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 |
X-Accept-Language: | en,ru |
jinhyuk choi wrote: > I found ssmtp works on command line mannually, > but I guess I can join it with mutt MUA so > when I want to only send a mail, I won't need any > graphical mail agent. > but I could not find man pages how to configure > ssmtp.conf file and how to make work mutt with > ssmtp.exe. > where can I find sample or doc's on it? I use the following: #!/bin/bash ################################################################################ # # File: setup_ssmtp # Description: This script sets up ssmtp mail configuration # Author: Andrew AT DeFaria DOT com # Created: Wed Jan 9 12:57:13 2002 # Language: Bash Shell # Modifications:<modifications> # # (c) Copyright 2002, Andrew AT DeFaria DOT com, all rights reserved # ################################################################################ # Setup /etc/ssmtp config directory ssmtp_dir=/etc/ssmtp domain=<your domain> mail_server=<your mail server> mkdir -p $ssmtp_dir chmod 700 $ssmtp_dir # Make some simple aliases. Alias $USER to the proper email address and then # alias root, Administrator and postmaster to the user's address thus making # the user "god" of smtp on this machine only. cat > $ssmtp_dir/revaliases <<EOF # sSMTP aliases # # Format: local_account:outgoing_address:mailhub # # Example: root:your_login AT your DOT domain:mailhub.your.domain:[port] # where [port] is an optional port number that defaults to 25. $USER:$USER@$domain:$mail_server:25 root:$USER@$domain:$mail_server:25 Administrator:$USER@$domain:$mail_server:25 postmaster:$USER@$domain:$mail_server:25 EOF # Get a downshifted hostname hostname=$(hostname | tr '[:upper:]' '[:lower:]') # Make ssmtp.conf cat > $ssmtp_dir/ssmtp.conf <<EOF # ssmtp.conf: Config file for Cygwin's sstmp sendmail # # The person who gets all mail for userids < 10 root=postmaster # The place where the mail goes. The actual machine name is required # no MX records are consulted. Commonly mailhosts are named mail.domain.com # The example will fit if you are in domain.com and you mailhub is so named. mailhub=$mail_server # Where will the mail seem to come from? #rewriteDomain=$USER.$domain # The full hostname hostname=$hostname.$domain # Set this to never rewrite the "From:" line (unless not given) and to # use that address in the "from line" of the envelope. #FromLineOverride=YES EOF -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |