Tech Support > Operating Systems > Linux / Variants > sendmail question
sendmail question
Posted by Jørn Dahl-Stamnes on January 20th, 2004


We got a RH 7.3 server running sendmail. Our /etc/mail/mailertable look
something like this:

domain.no smtp:[server1.domain.no]
sub1.domain.no smtp:[server1.domain.no]
sub2.domain.no smtp:[anotherserver.domain.no]
... etc

However, the server1.domain.no, which was a exchange server, is not longer in
use and has been removed. And all mail to this server shall be dropped.

Today, the mail is put into the queue and it fills up the RH server with a
lots of mail (I counted nearly 200 sendmail deamons trying to send mail to
server1.domain.no).

Is it possible to have all mails that should be forwared to sever1.domain.no
to be deleted (forwared to /dev/null)?

Jørn Dahl-Stamnes, EDB Teamco AS
e-mail: Jorn.Dahl-Stamnes@nospam.novit.no (remove nospam first)
web: http://spiderman.novit.no/dahls/

Posted by Noi on January 20th, 2004


On Tue, 20 Jan 2004 09:34:31 +0000, Jørn Dahl-Stamnes thoughtfully wrote:

There is a way but I forget how to change the sendmail.cf or other tables
to do it. You should post your query to the comp.mail.sendmail newsgroup.


--
------------------------------------------------------
Linux registered user #302812
using Fedora Core 1 kernel 2.4.22-1.2149.nptl
------------------------------------------------------


Posted by Ermanno Sartori on January 24th, 2004


Noi wrote:
using m4. OR if U are able to edit sendmail.cf file directly.... have luk.

--
http://counter.li.org/cgi-bin/runscr...gi?user=180114
ICQ : 115909199
--


Posted by Noi on January 25th, 2004


On Sat, 24 Jan 2004 21:47:11 +0100, Ermanno Sartori thoughtfully wrote:

sendmail.mc to change the sendmail.cf. You can use the
sendmail.cf as your template to rebuild the sendmail.cf but it is more
trouble than using the sendmail.mc. The real problem was knowing what
changes were required in sendmail to send mail to a null maildrop.

For RH, I thought maybe the OP might use the /etc/mail/virtusertable

$ cat > /etc/mail/virusertable <<END
@domain.no anotherserver.domain.no
@sub1.domain.no anotherserver.domain.no

$ makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable

and turn the Feature on in sendmail

FEATURE(virtusertable, hash /etc/mail/virtusertable)


--
------------------------------------------------------
Linux registered user #302812
using Fedora Core 1 kernel 2.4.22-1.2149.nptl
------------------------------------------------------


Posted by Jørn Dahl-Stamnes on January 27th, 2004


In article <pan.2004.01.25.07.43.46.667639@siam.com>, %d wrote:
We do have a virtusertable file, but it's empty. Can someone tell me how this
file work?

Jørn Dahl-Stamnes, EDB Teamco AS
e-mail: Jorn.Dahl-Stamnes@nospam.novit.no (remove nospam first)
web: http://spiderman.novit.no/dahls/

Posted by John Thompson on January 27th, 2004


On 2004-01-27, Jørn Dahl-Stamnes <jorn.dahl-stamnes@nospam.edb.com> wrote:

http://www.sendmail.org/virtual-hosting.html

--

-John (JohnThompson@new.rr.com)

Posted by Noi on January 27th, 2004


On Tue, 27 Jan 2004 08:43:47 +0000, Jørn Dahl-Stamnes thoughtfully wrote:

Generally as indicated above specifically read
http://sendmail.org/virtual-hosting.html


--
------------------------------------------------------
Linux registered user #302812
using Fedora Core 1 kernel 2.4.22-1.2149.nptl
------------------------------------------------------



Similar Posts