LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-08-2008, 08:46 AM   #1
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Rep: Reputation: 18
Question m4 sendmail.mc > sendmail.cf generate unwanted result on OpenSolaris


Hello Solaris and OpenSolaris Professionals,

I am having problem generating sendmail.cf

my latest sendmail.mc

Code:
divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
#	The Regents of the University of California.  All rights reserved.
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)sendmail.mc	1.11	04/06/21 SMI"
#
#  This is a configuration file for SunOS 5.8 (a.k.a. Solaris 8) and later
#  subsidiary machines.  It has support for local and SMTP mail.  The
#  confFALLBACK_SMARTHOST macro is enabled, which means that messages will
#  be sent to that host (which is set to mailhost.$m [$m is the local domain])
#  if MX records are unavailable.  A short-cut rule is also defined, which
#  says if the recipient host is in the local domain, send to it directly
#  instead of the smart host.
#
#  If you want to customize this further, copy it to a name appropriate
#  for your environment and do the modifications there.
#

divert(0)dnl
VERSIONID(`@(#)sendmail.mc	1.11 (Sun) 06/21/04')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl

FEATURE(`access_db')dnl
FEATURE(`authinfo')dnl

#define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
define(`SMART_HOST', `smarthost-local.localhost')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 25')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 25')dnl

MAILER(`local')dnl
MAILER(`smtp')dnl

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $*	$#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
once, I type "m4 sendmail.mc > sendmail.cf"

sendmail.cf will become:

Code:
VERSIONID(@(#)sendmail.mc	1.11 (Sun) 06/21/04)
OSTYPE(solaris8)DOMAIN(solaris-generic)
FEATURE(access_db)FEATURE(authinfo)
#define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl

MAILER(local)MAILER(smtp)
LOCAL_NET_CONFIG
R$* < @ $* .$m. > $*	$#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
What seems to be the problem?


sendmail -d0.10t < /dev/null:

Code:
Version 8.14.2+Sun
 Compiled with: DNSMAP LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8
		MIME8TO7 NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS
		NISPLUS PIPELINING SCANF STARTTLS TCPWRAPPERS USERDB
		USE_LDAP_INIT XDEBUG
    OS Defines: HASCLOSEFROM HASFCHOWN HASFCHMOD HASFDWALK
		HASGETUSERSHELL HASINITGROUPS HASLDAPGETALIASBYNAME HASLSTAT
		HASNICE HASRANDOM HASRRESVPORT HASSETREGID HASSETREUID
		HASSETRLIMIT HASSETSID HASSETVBUF HASURANDOMDEV HASSTRERROR
		HASULIMIT HASUNAME HASUNSETENV HASWAITPID IDENTPROTO
		IP_SRCROUTE SAFENFSPATHCONF SYS5SETPGRP SYSTEM5 USE_DOUBLE_FORK
		USE_SA_SIGACTION USE_SIGLONGJMP USESETEUID
Kernel symbols:	/dev/ksyms
     Conf file:	/etc/mail/submit.cf (default for MSP)
     Conf file:	/etc/mail/sendmail.cf (default for MTA)
      Pid file:	/var/run/sendmail.pid (default)
Canonical name: opensolaris.local
 UUCP nodename: opensolaris
	a.k.a.: opensolaris.local
	a.k.a.: localhost
	a.k.a.: loghost
	a.k.a.: [127.0.0.1]
     Conf file:	/etc/mail/submit.cf (selected)
      Pid file:	/var/spool/clientmqueue/sm-client.pid (selected)

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = opensolaris
  (canonical domain name) $j = opensolaris.local
         (subdomain name) $m = local
              (node name) $k = opensolaris
========================================================

Recipient names must be specified
Thank you
 
Old 09-08-2008, 11:25 PM   #2
johncsl82
Member
 
Registered: Nov 2003
Location: Planet Earth
Distribution: Redhat, Gentoo, Mandrake, FreeBSD
Posts: 73

Original Poster
Rep: Reputation: 18
Question

hello,

I tried:

Code:
john@opensolaris:/etc/mail/cf/cf# su
john@opensolaris:/etc/mail/cf/cf# ls -l
total 175
-rw-r--r-- 1 root root 40413 2008-09-08 20:49 local.cf
-r--r--r-- 1 root mail 40268 2008-04-27 10:00 local.cf.prev
-r--r--r-- 1 root mail  1814 2008-04-27 10:00 local.mc
-r--r--r-- 1 root mail  4201 2008-04-27 10:00 Makefile
-rw-r--r-- 1 root root  2150 2008-09-09 12:19 sendmail.cf
-r--r--r-- 1 root mail 40190 2008-04-27 10:00 sendmail.cf.prev
-r--r--r-- 1 root mail  1379 2008-09-08 21:23 sendmail.mc
-r--r--r-- 1 root mail 40551 2008-04-27 10:00 submit.cf
-r--r--r-- 1 root mail   843 2008-04-27 10:00 submit.mc
john@opensolaris:/etc/mail/cf/cf# m4 ../m4/cf.m4 sendmail.mc > sendmail.cf

m4:sendmail.mc:30 can't open file
include(../feature/authinfo.m4)
john@opensolaris:/etc/mail/cf/cf#
Not sure what is the problem......


Code:
john@opensolaris:/etc/mail/cf/cf# m4 sendmail.mc
VERSIONID(@(#)sendmail.mc       1.11 (Sun) 06/21/04)
OSTYPE(solaris8)DOMAIN(solaris-generic)
FEATURE(access_db)FEATURE(authinfo)
#define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl

MAILER(local)MAILER(smtp)
LOCAL_NET_CONFIG
R$* < @ $* .$m. > $*	$#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
john@opensolaris:/etc/mail/cf/cf#
Thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 03:57 PM
can anyone tell me hoy to lock unwanted attached files in sendmail? jastorqu Linux - Networking 0 06-17-2004 12:05 PM
Sendmail: Blocking unwanted senders infernal Linux - Security 1 10-27-2001 11:56 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration