LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-24-2004, 05:35 PM   #1
kafnir
Member
 
Registered: Oct 2002
Location: USA
Distribution: Fedora and Ubuntu
Posts: 137

Rep: Reputation: 15
queudirectory & local mailer define


I use mandrake 10.0 as a mailserver and ftpserver
when I run this command "/sbin/service sendmail restart"
I get

Shutting down sendmail: [FAILED]
Shutting down sm-client: [ OK ]
Starting sendmail: 554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
[FAILED]
Starting sm-client: [ OK ]

I have define it in my source code:
this is my source code:

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('sendmail.mc - roessler@guug.de')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
define(QUEUE_DIR,'/var/spool/mqueue/q*')dnl
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

define(`LOCAL_MAILER_PATH', `/usr/local/libexec/mail.local')dnl

define(`LOCAL_MAILER_ARGS',`mail -s %h/.filter.scm -q /etc/mail/userquota $u')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

define('QUEUE_GROUP','/var/spool/mqueue')dnl

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
define('SMART_HOST','smtp.gnx-usa.com')dnl
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,'reject')dnl
MASQUERADE_AS(gnx-usa.com)dnl
MASQUERASE_DOMAIN_FILE('/etc/mail/masquerade')dnl
FEATURE(allmasquerade)dnl
FEATURE(limited_masquerade)dnl
FEATURE(masquerade_envelope)dnl
dnl DEAMON_OPTIONS('Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl with the mailertable we can redirect mail anywhere we want. Very handy. Particularly for an I SP.
dnl FEATURE('accept_unresolvable_domains')dnl
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 -T<TMPF> -o /etc/mail/access.db')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
dnl --- Spam Filter Stuff --
dnl ------------------------
dnl
dnl friend should have one entry for postmaster
FEATURE(`delay_checks', `friend')
dnl
dnl
dnl x HACK(`check_localpart', `reg_no_nums', `no_num_domains', `REGNONUM')dnl
dnl
dnl
dnl -- noticeably slows down sending of email if its checking the RBLs
dnl
dnl x HACK(`check_dnsbl')dnl
dnl
FEATURE(`enhdnsbl')dnl
FEATURE(`enhdnsbl', `or.orbl.org', `Spammer $&{client_addr} $&f rejected by RBL: http://www.orbl.org/ (ORBL)')dnl
FEATURE(`enhdnsbl', `relays.ordb.org', `Spammer $&{client_addr} $&f rejected by RBL: http://ordb.org/ (relays)')dnl
dnl
dnl FEATURE(`enhdnsbl', `bl.spamcop.net', `"Spam blocked : http://spamcop.net/bl.shtml?"$&{client_addr}', `t')dnl
dnl
FEATURE(`enhdnsbl', `bl.spamcop.net', `Spammer $&{client_addr} $&f rejected by RBL: http://bl.spamcop.net')dnl
FEATURE(`enhdnsbl', `dnsbl.njabl.org', `Spammer $&{client_addr} $&f rejected by RBL: http://dnsbl.njabl.org')dnl

FEATURE(`enhdnsbl', `cn-kr.blackholes.us', `Spammer $&{client_addr} $&f rejected by RBL: http://cn-kr.blackholes.us')dnl
FEATURE(`enhdnsbl', `nigeria.blackholes.us', `Spammer $&{client_addr} $&f rejected by RBL: http://nigeria.blackholes.us')dnl
FEATURE(`enhdnsbl', `interbusiness.blackholes.us', `Spammer $&{client_addr} $&f rejected by RBL: http://interbusiness.blackholes.us')dnl
dnl
dnl
dnl
dnl x HACK(`check_dnsbl_end')
dnl
dnl
dnl =============== Added check_local-5.0 ===========================
dnl
dnl http://www.Linux-Sec.net/Mail/etc.mail/check_local.txt
dnl
dnl
dnl check_local definition of headerchecks ( option already turned on )
dnl -- no effect in 8.12.3
dnl -- define(_HC_SWITCH_)
dnl -- define(`_REGEX_LOCALNUMS_')dnl
dnl -- define(`_CHECK_HEADER_RECEIVED_')dnl
dnl -- define(`_CHECK_HEADER_FROM_')dnl
dnl -- define(`_CHECK_MESSAGE_ID_')dnl
dnl
dnl x HACK(check_header, `Received', `HRC,,,HRCCNT', `', `parse_received', `+header', `!general', `', `1', `', `"552 Spammer $&{client_addr} $&f rejected - Bad Received"')dnl
dnl x HACK(check_header, `Message-Id', `HMI,HMIPARSE,HMIDNS,HMICNT', `test_message_id', `parse_message_id', `+header', `!general', `dns_message_id', `1', `1', `"552 spmmer $&{client_addr} $&f rejected - Message Id corrupt"')dnl
dnl x HACK(check_header, `From', `HFR', `', `parse_address', `+header', `+all', `', `', `', `"552 Spammer $&{client_addr} $&f rejected - bad From"')dnl
dnl x HACK(check_header, `To', `HFR', `', `parse_address', `+header', `+all', `', `', `', `"552 Spammer $&{client_addr} $&f rejected - bad To"')dnl
dnl x HACK(check_header, `Reply-To', `HFR', `', `parse_address', `+header', `+all', `', `', `', `"552 Spammer $&{client_addr} $&f rejected - Bad Reply-To"')dnl
dnl x HACK(check_header, `Sender', `HFR', `', `parse_address', `+header', `+all', `', `', `', `"552 Spammer $&{client_addr} $&f rejected - Bad Sender"')dnl
dnl x HACK(check_header, `Cc', `HFR', `', `parse_address', `+header', `+all', `', `', `', `"552 Spammer $&{client_addr} $&f rejected - Bad Cc"')dnl
dnl x HACK(check_header_end, `XSPAM')dnl
dnl
dnl
dnl x HACK(check_unknown_header, `/etc/mail/known-headers')dnl
dnl
dnl
dnl x HACK(check_local_patterns)dnl
dnl x HACK(check_local_tester)dnl
dnl
dnl -- define(`_MD2NAME_')
dnl -- define(`_ACCEPT_MAIL_FROM_OK_')
dnl -- define(`_CLIENT_MUST_RESOLVE_')
dnl -- define(`_CHECK_REGEX_')
dnl dnl
dnl HACK(check_local)
dnl x HACK(check_local, `CREL,CMD2N,CMFOK,CBASM,CDNSBL,CDREG,CRES,CMREG,CCRHSBL,CFRHSBL,CBFROM', `XSPAM')
dnl
dnl
dnl
dnl =============== Added linux-sec.m4 header_check ===========================
dnl
dnl http://quanta.kyunghee.ac.kr/~dacapo...iller_REGEX.m4
dnl http://www.Linux-Sec.net/Mail/etc.mail/linux-sec.m4 ( aka header_chk.m4 modified from above quanta )dnl
dnl x HACK(`linux-sec')dnl # modify quanta.m4 and check more headers
dnl the default MDA with Red Hat Linux is procmail so let's use it. We need this line.
MAILER(local)dnl
MAILER(procmail)dnl
MAILER(pop)dnl
MAILER(smtp)dnl
MAILER(uucp)dnl
Cwlocalhost.localdomain

Last edited by kafnir; 06-24-2004 at 05:37 PM.
 
  


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 - No local mailer defined. unclejessie77 Linux - Software 7 06-13-2012 07:50 AM
Sendmail problem () |No local mailer defined muusle Slackware 4 11-18-2005 12:59 PM
sendmail local mailer problem kafnir Linux - Networking 1 06-28-2004 06:23 PM
Sendmail System identity & define macro value sysxi Linux - Software 0 04-22-2004 08:57 AM
Mozilla & external mailer - is it possible? Bogdan Linux - Software 1 03-17-2003 02:45 PM

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

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