[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sendmail на машине в локальной сети



Как говорится лучше поздно, чем никогда. Не знаю поможет или нет, но вот что я случайно увидел в Tips-HOWTO:

2.19 Why does sendmail hang for 5 minutes on startup with RedHat? Paul Anderson, paul@geeky1.ebtech.net
This is a fairly common problem, almost to the point of being a FAQ. I don't know if RedHat has fixed this bug in their distribution, but you can repair it yourself. If you look in your /etc/hosts file, you will find it looks something like: 

127.0.0.1               localhost       yourbox

When sendmail starts, it does a lookup on your hostname(in this example, yourbox). It then finds that the IP for yourbox is 127.0.0.1, sendmail doesn't like this, so it does the lookup again. It continues with this for a while until it eventually gives up and exits. Fixing the problem is extremely easy, edit your /etc/hosts file and change it to something like this: 

127.0.0.1               localhost
10.56.142.1             yourbox

Михаил.

----- Original Message ----- 
From: Alexander Kotelnikov <sacha@debian.org>
To: Debian Russian <debian-russian@lists.debian.org>
Sent: Saturday, September 16, 2000 2:45 AM
Subject: sendmail на машине в локальной сети


> Hi.
> 
> Есть машина в локальной сети, firewall на gateway'е открыт полностью.
> Хочется запустить sendmail чтобы он отсылал пистма по smtp напрямик в 
> internet. Как мне кажется, этого
> #
> VERSIONID(`@(#)sendmail.mc 8.9.3-21 (Debian) 20000309')
> OSTYPE(debian)dnl
> MAILER(local)dnl
> MAILER(smtp)dnl
> #
> в sendmail.mc должно хватить, но после сборки sendmail.cf (sendmailconfig'ом)
> и запускания (/etc/init.d/sendmail start) sendmail встает минуты на три,
> strace показывает, что встает он при вызове pause(). Ну и не работает,
> не говоря уж о том, что при загрузке системы это очень неприятно.
> 
> -- 
> Alexander Kotelnikov
> Saint-Petersburg, Russia
> 
> 
> --  
> To UNSUBSCRIBE, email to debian-russian-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

Reply to: