LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-14-2007, 10:43 AM   #1
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Rep: Reputation: 30
sendmail configure issue, or, what mc file did they use?


Our mail server hasn't been touched in a couple years before I got here.

I am trying to add a LOCAL_RULESET to our sendmail.mc so I can run the m4 command to generate the sendmail.cf file.

we have about 25 *.mc files on the server, and I am not sure which one was used to make our current config.

is there a way to find out which mc file was used, or can I re-generate the mc file from the existing *.cf file?

I had tried adding this rule to our best-guess at which mc file it was

Code:
LOCAL_CONFIG
F{Internal}/etc/mail/intern.only
LOCAL_RULESETS
SLocal_check_rcpt
# if the recipient isn't internal, they get the mail
R$+                     $: <@> $>3 $1
R<@> $={Internal}<@$=w.>        $: <$1@$2>
R<@> $={Internal}               $: <$1@$j>
# no internal alias
R<@>$+                  $@ OK
# check to see if the sender is local
R$*                             $: $>3 $&f
R$+<@$=w.>      $@ OK
# empty sender: accept (RFC 1123)
R<@>            $@ OK
R$+                     $#error $: 551 $&f not allowed to send to recipient
after I put that code into our mc file and ran the m4 command, the resulting file was nothing like the cf file we have in production.

I have looked on google to see about how exactly to add LOCAL_RULESETS, and I have a sendmail book here (for version 8.8) but I am having problems making it make sense.

Any assistance would be thrilling!
 
Old 08-14-2007, 11:45 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You could save your current sendmail.cf then just create a new one from each of the mc files then diff the resulting cf files with the one you saved.

Of course the above assumes no one manually edited the cf file after it was generated which as they say "ain't necessarily so".
 
  


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
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 01:10 PM
[root@Linuxboy magicolor2430DL-1.1.0]# ./configure ./configure: No such file or ... anseK Mandriva 7 01-02-2006 04:21 PM
configure sendmail juanb Linux - General 4 10-23-2005 02:46 AM
configure sendmail Red Squirrel Linux - Software 5 04-12-2004 04:31 PM
configure sendmail?? dexter_modem Slackware 5 07-07-2003 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:40 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