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

Re: gethostbyaddr() & sendmail & dialup-connections



You can also recompile sendmail with -DNS option. In this case you will
have to define SmartHost, some comp which knows how to read mx records and
it must be in /etc/hosts . 

CIGAN.
__


On Wed, 18 Mar 1998, CIGAN wrote:

|Hi,
|
|try to start your sendmail like this daemon sendmail -bd -os not sendmail
|-bd -qXXm
|
|also under /usr/src/sendmail-8.8.X/cf change your yourhostname.smtp.mc
|file and add this 
|
|     dnl # Defer Delivery to "expensive" mailers until next timethe
|     dnl # queue is processed using "O HoldExpensive=True" and make
|     dnl # sure smtp mailers are "expensive".
|     dnl # (See original "sendmail" book Chapter 30: Options,
|     dnl # "Oc - Don't connect to expensive mailers", or
|   dnl # 2nd Edition "sendmail" book Chapter 34.8.29,
|     dnl # "HoldExpensive (c), Queue for expensive mailers".)
|     dnl #                           / Leif Erlingsson <leif@lege.com>
|     define(`confCON_EXPENSIVE', `True')
|     define(SMTP_MAILER_FLAGS, e)
|     MAILER(local)dnl
|     MAILER(smtp)dnl
|
|This works for me.
|
|For more information read Mail-Queue from
|ftp.linux.org.il/pub/linux/docs/HOWTO/mini
|
|CIGAN.
|__
|
|
|On Wed, 18 Mar 1998, S. Schapiro (nessy) wrote:
|
||HelloFriends,
||
||I have the following problem: Whenever I am connected to another machine
||(NOT the Internet) using pppd and run sendmail (even sendmail -bp), sendmail
||tries to do a gethostbyaddr() to translate my ws' ip to a name (I am using a
||ws to connect to my server. the server dials another server ,not the inet,
||and the problem show up at both the other server and at my server). In all
||cases /etc/hosts lists the ip's and names (both FQHN and short name). The
||strange thing is that when thereisno ppp-connection there is no problem at
||all. Can it be that somehow, if there is a ppp connection the system assumes
||that it also has a nameserver and ignores /etc/hosts ?
||
||My system: localnet (192.168.11.0) with ws1 & server1 -- modem (ppp
||connection) -- other localnet (192.168.13.0) with server2 & ws2. I work at
||ws1 and run X from server1 that called server2 and I run telnet from server1
||to server2. All possible IPs exist in /etc/hosts at server1 and server2.
||
||All help appreciated.If you need more info (route, netstat, whatever), no
||problem.
||
||Schlomo
||
||
|
|