LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-01-2008, 02:53 PM   #1
dody1313
Member
 
Registered: May 2007
Posts: 179

Rep: Reputation: 30
adding access.db manually on sendmail.cf


hi guys
i am having so much trouble adding access.db on sendmail.cf using m4...Does anybody know how to add it manually on sendmail.cf (editing the file)?
thnx a million
 
Old 10-01-2008, 07:57 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I've just done a grep for access in my sendmail.cf. Here are some of the entries:
Code:
# access_db acceptance class
C{Accept}OK RELAY

# possible values for TLS_connection in access map
C{Tls}VERIFY ENCR

# Access list database (for spam stomping)
Kaccess hash -T<TMPF> /etc/mail/access

###  D: LookUpDomain -- search for domain in access database
###
###     Parameters:
###             <$1> -- key (domain name)
###             <$2> -- default (what to return if not found in db)
###             <$3> -- mark (must be <(!|+) single-token>)
###                     ! does lookup only with tag
###                     + does lookup with and without tag
###             <$4> -- passthru (additional data passed unchanged through)
######################################################################

SD
R<$*> <$+> <$- $-> <$*>         $: < $(access $4:$1 $: ? $) > <$1> <$2> <$3 $4> <$5>
R<?> <$+> <$+> <+ $-> <$*>      $: < $(access $1 $: ? $) > <$1> <$2> <+ $3> <$4>
R<?> <[$+.$-]> <$+> <$- $-> <$*>        $@ $>D <[$1]> <$3> <$4 $5> <$6>
R<?> <[$+::$-]> <$+> <$- $-> <$*>       $: $>D <[$1]> <$3> <$4 $5> <$6>
R<?> <[$+:$-]> <$+> <$- $-> <$*>        $: $>D <[$1]> <$3> <$4 $5> <$6>
R<?> <$+.$+> <$+> <$- $-> <$*>  $@ $>D <$2> <$3> <$4 $5> <$6>
R<?> <$+> <$+> <$- $-> <$*>     $@ <$2> <$5>
R<$* <TMPF>> <$+> <$+> <$- $-> <$*>     $@ <<TMPF>> <$6>
R<$*> <$+> <$+> <$- $-> <$*>    $@ <$1> <$6>

######################################################################
###  A: LookUpAddress -- search for host address in access database
###
###     Parameters:
###             <$1> -- key (dot quadded host address)
###             <$2> -- default (what to return if not found in db)
###             <$3> -- mark (must be <(!|+) single-token>)
###                     ! does lookup only with tag
###                     + does lookup with and without tag
###             <$4> -- passthru (additional data passed through)
######################################################################

SA
R<$+> <$+> <$- $-> <$*>         $: < $(access $4:$1 $: ? $) > <$1> <$2> <$3 $4> <$5>
R<?> <$+> <$+> <+ $-> <$*>      $: < $(access $1 $: ? $) > <$1> <$2> <+ $3> <$4>
R<?> <$+::$-> <$+> <$- $-> <$*>         $@ $>A <$1> <$3> <$4 $5> <$6>
R<?> <$+:$-> <$+> <$- $-> <$*>          $@ $>A <$1> <$3> <$4 $5> <$6>
R<?> <$+.$-> <$+> <$- $-> <$*>          $@ $>A <$1> <$3> <$4 $5> <$6>
R<?> <$+> <$+> <$- $-> <$*>     $@ <$2> <$5>
R<$* <TMPF>> <$+> <$+> <$- $-> <$*>     $@ <<TMPF>> <$6>
R<$*> <$+> <$+> <$- $-> <$*>    $@ <$1> <$6>

SParseRecipient
R$*                             $: <?> $>CanonAddr $1
R<?> $* < @ $* . >              <?> $1 < @ $2 >                 strip trailing dots
R<?> $- < @ $* >                $: <?> $(dequote $1 $) < @ $2 > dequote local part

# if no $=O character, no host in the user portion, we are done
R<?> $* $=O $* < @ $* >         $: <NO> $1 $2 $3 < @ $4>
R<?> $*                         $@ $1


R<NO> $* < @ $=R >              $: <RELAY> $1 < @ $2 >
R<NO> $* < @ $+ >               $: <$(access To:$2 $: NO $)> $1 < @ $2 >
R<NO> $* < @ $+ >               $: <$(access $2 $: NO $)> $1 < @ $2 >



R<RELAY> $* < @ $* >            $@ $>ParseRecipient $1
R<$+> $*                        $@ $2
There are others as well. Can you tell us what problems you were having using m4? I have the following in my sendmail.mc for the access db:
Code:
FEATURE(`access_db')dnl
I copy my sendmail.mc to sendmail-8.14.3/cf/cf and run sh ./Build sendmail.cf - that's all there is to it.
 
Old 10-02-2008, 11:24 AM   #3
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
Hi
well that is exacly my problem...i do not have the cf/ directory no where, also i 've looked for cf.m4 and cfhead.m4, but no where to be found on my server, so i copied a cf/ folder from another comp i have containing sendmail and i tried to run the m4 command but the configuration that came out of sendmail.cf is not the same, even tough i have copied the exact same configuration i had on the previous sendmail.cf file to the .mc file but when i restart sendmail, it doesn't work.
 
Old 10-02-2008, 12:01 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It sounds like you don't have the sendmail sources installed. Can you either copy over the files from the old box (after configuring it with the same settings as this one) or install the sendmail sources on this box?
 
Old 10-02-2008, 02:01 PM   #5
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
well i had that idea but it didn't work
 
  


Reply



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
Manually adding users and the shadow file... Tim356 Red Hat 3 08-05-2008 06:00 AM
Disabling wireless manually on dsl/router by adding switch for disconnection linchat Linux - Wireless Networking 5 07-24-2007 12:08 PM
manually adding rules w/ firestarter installed jonfa Linux - Security 1 03-11-2007 12:34 PM
KDE Config files - manually adding key shortcuts jreich383 Linux - General 2 09-14-2006 11:01 AM
Manually Spool into sendmail edbravo Linux - Newbie 6 02-15-2002 12:41 PM

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

All times are GMT -5. The time now is 06:08 PM.

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