LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-16-2004, 04:13 PM   #1
kafnir
Member
 
Registered: Oct 2002
Location: USA
Distribution: Fedora and Ubuntu
Posts: 137

Rep: Reputation: 15
problem with sendmail.mc


can anyone help;
when I execute " m4 /etc/mail/sendmail.mc > /etc/sendmail.cf " I get this error
** ERROR: missing argument for FEATURE(nouucp):
use `reject' or `nospecial'. See cf/README.
/etc/mail/sendmail.mc:42: m4: Cannot open /usr/share/sendmail-cf/feature/'masquerade_envelope'.m4: No such file or directory
*** WARNING: missing -T<TMPF> in argument of FEATURE(`access_db', hash -o /etc/mail/access)
/etc/mail/sendmail.mc:55: m4: Cannot open /usr/share/sendmail-cf/feature/rbl.m4: No such file or directory
/etc/mail/sendmail.mc:56: m4: Cannot open /usr/share/sendmail-cf/feature/rbl.m4: No such file or directory
/etc/mail/sendmail.mc:57: m4: Cannot open /usr/share/sendmail-cf/feature/rbl.m4: No such file or directory

this is the source code that I am trying to configure to use as a mail-server for a dialup ISP


divert(-1)
dnl this is the sendmail macro config file. If you make change to this file,
dnl you need the sendmail-cf rpm installation and then have to generate a
dnl new /etc/mail.cf by running the following command:
dnl
dnl m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
dnl let's define our OS type. This one is mandatory.
VERSIONID('linux setup for mandrake linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')
dnl the following line moves the default alias file location to /etc/mail Doing it this way
dnl allows the newaliases command to function properly with the aliases file
dnl once it's moved from the Red Hat default location in /etc.
define(`ALIAS_FILE',`/etc/mail/aliases')dnl
dnl if the net were a kinder gentler place we wouldn't need the next line.
define(`confPRIVACY_FLAGS', `authwarnings,needmailhelo,noexpn,novrfy')dnl
dnl if it's not immediately deliverable let us know in 4 hours and return it if it's
dnl not been delivered after 4 days.
define(`confTO_QUEUERETURN', `4d')dnl
define(`confTO_QUEUEWARN', `4h')dnl
dnl Let's tell the system where procmail lives
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
dnl we want all mail sent to the pop3 host for delivery
define(`MAIL_HUB', `pop3.gnx-usa.com')
dnl we don't need either one of the next two entries so lets remove the default.
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY') dnl
dnl when people move on it will really help to give them an informative bounce
FEATURE(`redirect')dnl
dnl we are 'gnx-usa.com' after all. Let's make it so.
FEATURE(`always_add_domain')dnl
dnl let's set up class w as a text file. It's easier to manage that way. Since this host is desig ned
dnl to relay be careful about what you put in this file
FEATURE(`use_cw_file')dnl
dnl we defined the path to procmail now let's implement it
FEATURE(`local_procmail')dnl
dnl we won't be doing any uucp
FEATURE(`nouucp')dnl
MASQUERADE_AS('myplace.net')
FEATURE('masquerade_envelope')
dnl DEAMON_OPTIONS('Port=smtp,Addr=127.0.0.1, Name=MTA')
dnl with the mailertable we can redirect mail anywhere we want. Very handy. Particularly for an I SP.
FEATURE(`mailertable', `hash -o /etc/mail/mailertable')dnl
dnl with the virtusertable we can have multiple mail accounts with the same name
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable')dnl
dnl the access file gives us fine grained control of our relay capability
FEATURE(`access_db', `hash -o /etc/mail/access')dnl
FEATURE(`blacklist_recipients')dnl
dnl note that we patched our version of sendmail to be able to use more than one rbl entry
dnl see section 2.3.2 of this document for more information and a HOWTO. These next 3
dnl entries are completely optional but recommended if you'd like to limit the amount
dnl of spam you receive inbound to your domain
FEATURE(rbl,`rbl.maps.vix.com',` Mail from $&{client_addr} rejected; see http://www.mail-abuse.or g/rbl/')dnl
FEATURE(rbl,`dul.maps.vix.com',`Mail from $&{client_addr} rejected; see http://www.mail-abuse.org /dul/')dnl
FEATURE(rbl,`relays.mail-abuse.org',` Mail from $&{client_addr} rejected; see http://www.mail-abu se.org/rss/')dnl
dnl the default MDA with Red Hat Linux is procmail so let's use it. We need this line.
MAILER(procmail)dnl
MAILER(smtp)dnl
 
Old 06-17-2004, 03:24 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
the examples I found of FEATURE(nouucp) do not have any kinds of quotes around them, just bare text surrounded by ().
 
  


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 problem hinetvenkat Linux - Networking 1 04-18-2005 07:55 AM
Problem with sendmail juanb Linux - Software 0 01-14-2004 10:18 AM
problem processing sendmail.mc to sendmail.cf ...help... lucastic Linux - Networking 1 09-21-2003 10:08 AM
Sendmail problem: sm-client permissions problem d3funct Linux - Software 0 08-12-2003 05:00 PM
please help me with a sendmail problem sthorp Linux - Networking 0 10-22-2001 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration