Sun Microsystems, Inc.  Sun System Handbook - ISO 4.1 October 2012 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1353507.1
Update Date:2012-05-23
Keywords:

Solution Type  Technical Instruction Sure

Solution  1353507.1 :   Enable outbound Sendmail on Linux  


Related Items
  • Exadata Database Machine V2
  •  
  • Oracle Exadata Storage Server Software
  •  
  • Oracle Exadata Hardware
  •  
Related Categories
  • PLA-Support>Database Technology>Engineered Systems>Oracle Exadata>DB: Exadata_EST
  •  
  • .Old GCS Categories>ST>Server>Engineered Systems>Exadata>Administration and Configuration
  •  


While outbound e-mail is normally handled via the internal DB e-mail service, sometimes a customer needs the ability to send e-mail at the OS level independent of the DB.

In this Document
Goal
Fix


Created from <SR 3-4344352941>

Applies to:

Exadata Database Machine V2 - Version Not Applicable and later
Oracle Exadata Hardware - Version 11.2.0.1 and later
Oracle Exadata Storage Server Software - Version 11.2.1.2.0 and later
Information in this document applies to any platform.

Goal

Configure a minimal Sendmail configuration allowing the user to send e-mail from the OS/scripts independent of the SMTP services built into the Oracle Database.

Fix

Here are the steps for a minimal SMTP relay config using sendmail:
================================================================
 
1. Configure your smtp-server
    (this requires that you have the package sendmail-cf installed)
 
1.1. changes to /etc/mail/sendmail.mc
 
Uncomment the definition SMART_HOST and add the correspondign FEATURE to it:
define(`SMART_HOST', `your-smtp-server')
FEATURE(authinfo)dnl
 
Note:  Please note, that these are "oriented" quotes.
           Also- you can replace `your-smtp-server' with your company's Exchange server, or whatever you use internally:  `servername.domain.com'
 
 
1.2. Create the new sendmail.cf
 
Stop sendmail by issuing the command /sbin/service sendmail stop and log on as root to issue this command:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
 
 
1.3. Define the account information for connecting to the smtp-server
 
Edit/create /etc/mail/authinfo and add the following line:
AuthInfo:<your-smtp-server> "U:<your-smtp-user>" "P:<your-smtp-password>" "M:DIGEST-MD5"
 
Note:The M: may vary depending on the capabilities of the smtp-server (e.g. CRAM-MD5, PLAIN).
 
Create authinfo.db:
makemap hash /etc/mail/authinfo < /etc/mail/authinfo
 
and finally restart sendmail:
/sbin/service sendmail restart
 
 
1.4. Test your settings
 
Issue following commands and check the trace for verifying the delivery path:

For local server delivery:
/usr/sbin/sendmail -bv root@localhost

For external delivery:
/usr/sbin/sendmail -bv <your-mail>@<your-domain>
 
 
For troubleshooting you should check the mail-log: /var/log/maillog

Attachments
This solution has no attachment
  Copyright © 2012 Sun Microsystems, Inc.  All rights reserved.
 Feedback