LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-01-2005, 06:48 AM   #1
RodWC
Member
 
Registered: Oct 2005
Distribution: SolydK, Linux Mint KDE, Debian
Posts: 180

Rep: Reputation: 30
Can I get rid of MTA?


"Starting MTA" takes an inordinately long time and I was wondering if I could bypass it? It would cut boot time by more than half!
 
Old 11-01-2005, 07:06 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
You can get rid of it but you'll miss some local mail reports from unauthorized sudo, snort mails and some such.
Don't know which mta you have though but "dpkg -l |grep mta" might tell. Could be exim if I'll take a guess.
 
Old 11-01-2005, 08:47 AM   #3
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
A standard install is going to come with exim, so that's probably what you've got.

I've never noticed exim taking up much time on my system. Maybe run eximconfig (wait, on Woody it was eximconfig, now it's dpkg-reconfigure exim I believe) and make sure it's only set up for local delivery... That *may* affect startup time (let us know).

Don't try removing exim unless you know what you're doing, and are probably familiar with the equivs package.
 
Old 11-01-2005, 09:30 AM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
You could also see at the startupscripts and just keep it from starting at bootup with:
update-rc.d -f exim remove
if exim is the name of course, "ls -l /etc/init.d/ |grep exim" will tell.
 
Old 11-01-2005, 10:29 AM   #5
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
Doh. Right makuyl.
 
Old 11-02-2005, 07:11 AM   #6
RodWC
Member
 
Registered: Oct 2005
Distribution: SolydK, Linux Mint KDE, Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Okay, stupid me, I went and removed it entirely before trying to reconfigure. Is there a way to get it back to see if reconfiguring would have worked?
 
Old 11-02-2005, 07:22 AM   #7
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
If you removed it with something like: apt-get remove exim
you can install it with: apt-get install exim
 
Old 11-02-2005, 05:06 PM   #8
RodWC
Member
 
Registered: Oct 2005
Distribution: SolydK, Linux Mint KDE, Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Nope, I used update-rc.d to remove it. Is there a way to re-instate something that has been removed from the boot-up in such a manner?


Edit:
I tried it on my server which I did not mess with yet:

debian:/etc/init.d# dpkg-reconfigure exim4
debian:/etc/init.d#


No error message, but no reconfigurator either.

Last edited by RodWC; 11-02-2005 at 05:09 PM.
 
Old 11-03-2005, 12:03 AM   #9
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
I don't quite see why you want it back but: update-rc.d exim defaults
or if you want to start it at different runlevels on specific values:
update-rc.d exim start 70 2 3 4 5 . stop 70 0 1 6 .

Last edited by makuyl; 11-04-2005 at 01:34 AM.
 
Old 11-03-2005, 06:16 AM   #10
RodWC
Member
 
Registered: Oct 2005
Distribution: SolydK, Linux Mint KDE, Debian
Posts: 180

Original Poster
Rep: Reputation: 30
I don't actually want it back, but if I should decide to disable something else (apache2, or other things I don't have a use for at this time), I just wanted to know if there was a way to get them back in case I wanted them later.

Thanks!
 
Old 11-03-2005, 11:32 AM   #11
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Re: Can I get rid of MTA?

Quote:
Originally posted by RodWC
"Starting MTA" takes an inordinately long time and I was wondering if I could bypass it? It would cut boot time by more than half!
I have two systems with Sarge 3.1r0a installed. One, like yours, experiences a long pause when starting MTA. The other does not (I don't know why).

Being more old school Unix and not up on the newest configuration widgets that are available with a modern Linux distribution (still a Linux Newbie)...

As root I just cd'ed to /etc/rc2.d and renamed S20exim4 to s20exim4 (note the uppercase to lowercase change for the first letter). Ditto for the same file in /etc/rc3.d, rc4.d, and rc5.d Then I manually killed the exim that was currently running with "/etc/init.d/exim4 stop".
 
Old 11-03-2005, 02:12 PM   #12
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
Just to clear things up a bit:

"apt-get remove foo" uninstalls software from your machine (leaving the config files in-place).

"update-rc.d foo ..." doesn't uninstall anything. It just modifies some links like haertig did, but does it for you.

There's an even easier package to use, instead of update-rc.d: it's called sysvconfig, and it's a front-end to update-rc.d.

BTW, I think it's "dpkg-reconfigure exim4-config" rather than "dpkg-reconfigure exim4".
 
Old 11-03-2005, 08:46 PM   #13
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
You could just do sudo rcconf and untick exim,apache,cups,etc and whatever else you do not need now and it wont start at boot time.If you need it in the future just rcconf again and tick it,exit,reboot.
 
Old 11-04-2005, 12:54 AM   #14
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
rcconf and sysvconfig do pretty much the same thing.

Though, it seems as if rcconf has been getting updated more often:
http://packages.debian.org/changelog...0.10/changelog
http://packages.debian.org/changelog...1.15/changelog

Haven't used either in a long time, but IIRC, sysvconfig was more user-friendly.
 
Old 06-10-2010, 12:06 PM   #15
bittner
LQ Newbie
 
Registered: Aug 2005
Location: Kreuzlingen, Switzerland
Distribution: Ubuntu, Debian
Posts: 11
Blog Entries: 11

Rep: Reputation: 0
Lightbulb

Quote:
Originally Posted by RodWC View Post
"Starting MTA" takes an inordinately long time and I was wondering if I could bypass it? It would cut boot time by more than half!
This is a common question. It's typically related to an unsuccessful reverse DNS lookup that the Mail Transfer Agent tried to do. Usually - I've figured out -, this is caused by incorrect information in /etc/resolv.conf.

For example, if you're not planning to use (outgoing) mail at all on your server you would set up exim4 (the default MTA on Debian) such that it delivers mail locally only. You can configure this with:
Code:
# dpkg-reconfigure exim4-config
The main point to resolve the issue, however, is /etc/resolv.conf. For local delivery it should look like this:
Code:
domain local
search local
nameserver 127.0.0.1
For "real" domains (and local delivery) I've seen it works fine also when you simply omit the nameserver, e.g:
Code:
domain bittner
search bittner
Hope this helps.

Last edited by bittner; 06-10-2010 at 12:20 PM.
 
  


Reply

Tags
exim4, mta



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
Which MTA? Jukas Linux - Software 1 07-06-2005 05:26 PM
What is a MTA Jukas Linux - Newbie 3 03-30-2005 01:15 PM
Wich MTA ?? Sammy2ooo Linux - Networking 6 08-13-2004 02:57 AM
MTA, MDA what r they actually? pippet Linux - Software 5 07-29-2004 05:41 AM
Do I need a MTA? orso Linux - Software 5 12-06-2003 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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