LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2003, 02:44 PM   #1
kudos
Member
 
Registered: Oct 2002
Location: UK
Distribution: Fedora 4
Posts: 90

Rep: Reputation: 15
sendmail and mailscanner


Hi

i have got sendmail installed and just installed mailscanner and spamassin with f-prot and clamav for virus scanning, using slack 9.1 for OS

i had to make the change to my sendmail start up to this from the install instrucs for mailscanner

sendmail -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in
sendmail -q15m

taken from
Quote:
Currently, your copy of sendmail will be started by a script such as /etc/init.d/mail or /etc/rc.d/init.d/sendmail. Somewhere in this script will be the command to start sendmail itself. This should look like this:

sendmail -bd -q15m
You should change this to the following two lines:
sendmail -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in
sendmail -q15m
This first starts the copy of sendmail that provides SMTP service, building the work queue for MailScanner. It then starts the copy of sendmail that delivers the output from MailScanner.
i found that sendmail is starting from /etc/rc.d/rc.sendmail
so i edited my file to look like this
Quote:
#!/bin/sh
# Start/stop/restart sendmail.

# Start sendmail:
sendmail_start() {
if [ -x /usr/sbin/sendmail ]; then
echo "Starting sendmail MTA daemon: /usr/sbin/sendmail -L sm-mta -bd -q15m"
/usr/sbin/sendmail -L sm-mta -bd OPrivacyOptions=noetrn
-ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in
/usr/sbin/sendmail -L sm-mta -q15m -OQueueDirectory=/var/spool/mqueue
echo "Starting sendmail MSP queue runner: /usr/sbin/sendmail -L sm-msp-queue -Ac
-q15m"
/usr/sbin/sendmail -L sm-msp-queue -Ac -q15m
fi
}

# Stop sendmail:
sendmail_stop() {
killall sendmail
}

# Restart sendmail:
sendmail_restart() {
sendmail_stop
sleep 1
sendmail_start
}

case "$1" in
'start')
sendmail_start
;;
'stop')
sendmail_stop
;;
'restart')
sendmail_restart
;;
*)
used 2 be
Quote:
#!/bin/sh
# Start/stop/restart sendmail.

# Start sendmail:
sendmail_start() {
if [ -x /usr/sbin/sendmail ]; then
echo "Starting sendmail MTA daemon: /usr/sbin/sendmail -L
sm-mta -bd -q25m"
/usr/sbin/sendmail -L sm-mta -bd -q25m
echo "Starting sendmail MSP queue runner: /usr/sbin/sendmail -L
sm-msp-queue -Ac -q25m"
/usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
fi
}
i took out the last bits to keep thred short...

but looking at the running processes i see sendmail running as

596 root 19:46 sendmail: Queue runner@00:15:00 for
/var/spool/mqueue
597 root 19:46 sendmail: Queue runner@00:15:00 for
/var/spool/clientmqueue

and not using the mqueue.in folder i need.

have i edited my start up script, infact the right one?

many thanks
kudos
 
  


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 Gateway for MailScanner and exchange cth3 Linux - Newbie 5 05-10-2016 09:46 PM
MailScanner Issues speed_viper Linux - Software 2 07-12-2005 07:59 AM
mailscanner, anomy, sendmail joseph Linux - Networking 2 08-29-2004 08:56 PM
Mailscanner & sendmail in RH9.0 teanine Linux - Software 0 06-03-2004 02:10 AM
mailscanner + postfix rafalek Linux - Software 0 02-10-2004 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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