Configure sendmail on Solaris 10 to relay al mail | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Configure sendmail on Solaris 10 to relay al mail

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-29-2010
maxranzy maxranzy is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 28 February 2011, 5:12 AM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Configure sendmail on Solaris 10 to relay al mail

Hi,

I tried to configure sendmail on Solaris 10 OS for relay all mail to the company mail server.
This is the sendmail.mc under /usr/lib/mail/cf

divert(0)dnl
VERSIONID(`@(#)sendmail.mc 1.11 (Sun) 06/21/04')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
define(`SMART_HOST', '192.168.1.200')dnl
define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3


I did make sendmail.cf, copy sendmail.cf into /etc/mail and restart sendmail service, but it doesn't work.

Where I made a mistake?

many tks
Max
Sponsored Links
    #2  
Old 11-29-2010
hergp hergp is offline Forum Advisor  
Problem Eliminator
 
Join Date: Jan 2010
Last Activity: 30 October 2014, 7:14 AM EDT
Location: Vienna, Austria
Posts: 802
Thanks: 18
Thanked 168 Times in 150 Posts
Put square brackets around the smarthost's IP address, like:

Code:
define(`SMART_HOST', '[192.168.1.200]')dnl

Sponsored Links
    #3  
Old 11-30-2010
maxranzy maxranzy is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 28 February 2011, 5:12 AM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
doesn't work anymore

---------- Post updated at 02:50 PM ---------- Previous update was at 12:51 PM ----------

I find a workaround:
leave the default sendmail configuration
add to /etc/hosts this line:
<server ip address> mailhost
restart sendmail

Now work correctly.
Tks
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sendmail client in solaris 10 ( relay) vishwanathhcl Solaris 0 04-12-2010 07:29 AM
How do I configure sendmail to block all OUTGOING mail FROM one userid TO the world? avikb Solaris 1 03-14-2010 08:44 PM
configure solaris 10 mail to relay email alerts from SAN switch wibidee Solaris 0 01-15-2009 11:09 AM
local mail relay problem in Sendmail RajaRC Linux 0 09-13-2004 03:53 AM
Hi plz How to configure my sendmail or mail commands??? atiato UNIX for Dummies Questions & Answers 7 02-10-2002 04:34 PM



All times are GMT -4. The time now is 08:57 AM.