Linux 版 (精华区)

发信人: netiscpu (说不如做), 信区: Unix
标  题: [M] sendmail 配置问题
发信站: 紫 丁 香 (Fri May 22 08:53:46 1998), 转信


        本文摘自Linux-admin Mailling List

[问题]  Help with a sendmail configuration?

We do a lot of virtual hosting..

We do all of our sendmail work on one machine
name : mail

let's say we have a domain 
testdomain.com

and we have it on machine : blahbox

and a cgi script tries to send an e-mail to:

blah@testdomain.com
from blahbox

it comes back with a user unknown..
but sending it from anywhere else works fine.


now in testdomain.com

the mx records will look like this :


               IN MX   0 mail.iuinc.com.
                IN MX   10 relay.iuinc.com.
  

which are our mail servers..



and the virtualusertable reference for tihs domain would be

@testdomain.com                 user@hisisp.com


can anybody help me with some ideas here?

[回答1]

Have you added a Cw line to sendmail.cf or alturnativly added the domain
to sendmail.cw?

--
  Regards, From Chris.

  --==== SysOp of Logics BBS ====--        irc Nickname: |Fingers|
         Chris@uk.logics.com               Tel:  +44 (0) 1432 370535
        ---================---             Data: +44 (0) 1432 278319
      http://www.uk.logics.com/            Pager:+44 (0) 1523 459522
         or fingers@bofh.co.uk

....Software is like sex. It's better when it's free...

[回答2]

Yeah we have all of that configured..

Basically the problem is we have one mailhost
and that mailhost does our virtualusertable stuff.

When another machbine, wihch has a domain on it
tries to send to an alias.. it doesnt kno to 
go to our mailhost. it just tries to deliver it locally
anyone got an idea?

[回答3]

First of all, make sure this other machine *doesn't* have the domain
listed in sendmail.cw.

Next, you may want to explicitly set this machine up as a relay for the
domain, i.e., add a FEATURE(mailertable...) in the m4 file you use to
generate the .cf file, and make sure you have


testdomain.com  relay:mail.yourdomain.com

in your mailertable.

That will insure that mail will be relayed to the correct machine.

--Mark

[回答4]

hrm I tried doing this.. no luck.

could it matter that this machine has about 60 domains on it?

i setup the mailertable stuff, and make the mailertable (ande used makemap
on it)

and in it 
i put
dentronix.com   relay:mail.iuinc.com

still when i'm on the machine and try to send mail
to blah@dentronix.com it just says user unknown
any other ideas?

[回答5]

Shouldn't matter at all.  If I look at the machine:

[mark@frigg .netscape]$ telnet relay.iuinc.com smtp
Trying 205.147.201.4...
Connected to relay.iuinc.com.
Escape character is '^]'.
220 dsn.iuinc.com ESMTP Sendmail 8.8.5/8.8.5; Wed, 20 May 1998 15:45:54-0400
expn anyone@dentronix.com
250 <anyone@dentronix.com>

looks fine -- not trying to expand the alias.

Did you shutdown sendmail entirely after changing your sendmail.cw file?
You need to make sure that sendmail restarts after any change.  Also, did
you correctly build your mailertable database after adding it?  I think
sendmail defaults to hash ('though we use btree here).

--mark

[回答6]

yeaeh. 
i setup the mailertable on pappa (the machine we have the domain on)

as follows : 

dentronix.com   relay:mail.iuinc.com

and when i try mailing from pappa it dies

[回答7]

By default, sendmail treats as local all domains corresponding to
local IP addresses. To disable this behaviour, enable the option

        O DontProbeInterfaces=True

in sendmail.cf. This option only exists in recent version of sendmail
(8.8.5 or later, I believe).

-- 
Glynn Clements <glynn@sensei.co.uk>

[回答8]

I'm trying it under 8.8.8 and it's telling me :
554 /etc/sendmail.cf: line 446: readcf: unknown option name
DontProbeInterfaces

[回答9]

Sorry, it's new to 8.9.0.

If you don't want to upgrade (and 8.9.0 is quite a significant
upgrade), you'll need to replace all occurrences of $=w with $=v, Cw
with Cv, and Fw with Fv.

-- 
Glynn Clements <glynn@sensei.co.uk>

[回答10]

Sorry, it's new to 8.9.0.

If you don't want to upgrade (and 8.9.0 is quite a significant
upgrade), you'll need to replace all occurrences of $=w with $=v, Cw
with Cv, and Fw with Fv.

-- 
Glynn Clements <glynn@sensei.co.uk>

[回答11]

hey thanks! that worked

[完]

--

                              Enjoy Linux!
                          -----It's FREE!-----

※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: mtlab.hit.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.562毫秒