OK, I will try for the last time. Maybe the email address I used was wrong. Sorry. Chi > -----Original Message----- > From: Chi, Xiaochen > Sent: Tuesday, December 04, 2001 9:35 AM > To: 'sunmanagers-admin@sunmanagers.org' > Subject: FW: Summary: A question about sendmail configuration > > Hi, > > I sent this summary last week, but did not receive it. Not sure what > happened. Anyway, I send it again. My apology if you received it already. > > > Chi > > -----Original Message----- > From: Chi, Xiaochen > Sent: Tuesday, November 27, 2001 10:44 AM > To: 'sunmanagers-admin@sunmanagers.org' > Subject: Summary: A question about sendmail configuration > > Thanks to > Trevor Paquette > Mark Hargrave > Hamid Ouyachi > Frank Huang > Ed Mitchell > > Trevor suggested to set up the MX failover/fallback option and very kindly > provided the following mc file > --- > divert(0)dnl > VERSIONID(`$Id: base.mc,v 1.3 2001/10/24 20:45:40 tpaqu1k Exp tpaqu1k > $')dnl > OSTYPE(solaris2)dnl > define(`confFALLBACK_MX', `smartsmtp.domain.com')dnl > FEATURE(`nocanonify')dnl > FEATURE(nullclient,smartsmtp.domain.com)dnl > MASQUERADE_AS(`$j') > --- > Here smartsmtp.domain.com is the hostname of the server to send all > outbound email to. > > It works. With this cf file, sendmail will not check with MX records with > the internal DNS server and send every outbound mail to our mailhost. > BTW, it seems what is important here is the feature `nocanonify'. I tried > the following mc file. It works as well. > --- > divert(0)dnl > VERSIONID(`@(#)main-v7sun.mc 1.2 (Sun) 01/27/98') > OSTYPE(solaris2.ml)dnl > DOMAIN(solaris-generic)dnl > MAILER(local)dnl > MAILER(smtp)dnl > define(`SMART_HOST', `mailhost.$m')dnl > FEATURE(`nocanonify')dnl > --- > > Thanks again. > > > Chi > > > My original Question was: > > Hi All, > > > > I have a problem with the sendmail configuration to allow the users to > send > > an email from Sun servers (Solaris 2.6 and 8) to the Internet. The > servers > > stay in the internal network and have no knowledge about the Internet, > > because our internal DNS server can not resolve any external hostname > and > > doesn't contain any MX record for outside domains. There is a mail > server in > > our network who knows how to send the emails outside. So I define the > Smart > > Host in sendmail.cf to forward all outbound mails to the "relay" host. > > However it works only for the email addresses in our own domain. Because > > sendmail relies on DNS server to resolve the domain part in the address, > > sendmail gets time out in name resolution and doesn't forward the mail > to > > the mail server. The mails are put into the queue and tried later, but > with > > the same result. > > > > # /usr/lib/sendmail -t -v sdm_test7@hotmail.com < /dev/null > > sdm_test7@hotmail.com... hotmail.com: Name server timeout > > sdm_test7@hotmail.com... Transient parse error -- message queued for > future > > delivery > > sdm_test7@hotmail.com... queued > > > > sendmail did not even connect to the mail server. However if I sent the > mail > > to an address in our domain, I got > > > > # /usr/lib/sendmail -t -v tester@my.domain < /dev/null > > tester@my.domain ... Connecting to mailhost.my.domain via relay... > > 220 mailhost.my.domain ESMTP Server (Microsoft Exchange Internet Mail > > Service 5.5.2653.13) ready > > >>> EHLO myhost.my.domain > > 250-mailhost.my.domain Hello [myhost.my.domain] > > 250-XEXCH50 > > 250-HELP > > 250-ETRN > > 250-DSN > > 250-SIZE 0 > > 250-AUTH LOGIN > > 250 AUTH=LOGIN > > >>> MAIL From:<root@myhost.my.domain> > > 250 OK - mail from <root@myhost.my.domain> > > >>> RCPT To:< tester@my.domain> > > 250 OK - Recipient < tester@my.domain> > > >>> DATA > > 354 Send data. End with CRLF.CRLF > > >>> . > > 250 OK > > tester@my.domain... Sent (OK) > > Closing connection to mailhost.my.domain. > > >>> QUIT > > 221 closing connection > > > > I don't see any problem with the rule sets, except the failure with name > > lookup > > > > # /usr/lib/sendmail -bt > > ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) > > Enter <ruleset> <address> > > > 3,0 sdm_test7@hotmail.com > > rewrite: ruleset 3 input: sdm_test7 @ hotmail . com > > rewrite: ruleset 96 input: sdm_test7 < @ hotmail . com > > > hotmail.com: Name server timeout > > rewrite: ruleset 96 returns: sdm_test7 < @ hotmail . com > > > rewrite: ruleset 3 returns: sdm_test7 < @ hotmail . com > > > == Ruleset 3,0 (3) status 75 > > rewrite: ruleset 0 input: sdm_test7 < @ hotmail . com > > > rewrite: ruleset 199 input: sdm_test7 < @ hotmail . com > > > rewrite: ruleset 199 returns: sdm_test7 < @ hotmail . com > > > rewrite: ruleset 98 input: sdm_test7 < @ hotmail . com > > > rewrite: ruleset 98 returns: sdm_test7 < @ hotmail . com > > > rewrite: ruleset 198 input: sdm_test7 < @ hotmail . com > > > rewrite: ruleset 95 input: < mailhost . mydomain > sdm_test7 < @ > hotmail > > . com > > > rewrite: ruleset 95 returns: $# relay $@ mailhost . my . domain $: > > sdm_test7 < @ hotmail . com > > > rewrite: ruleset 198 returns: $# relay $@ mailhost . my . domain $: > > sdm_test7 < @ hotmail . com > > > rewrite: ruleset 0 returns: $# relay $@ mailhost . my . domain $: > > sdm_test7 < @ hotmail . com > > > > > > > > I am not familiar with sendmail :-( I just looked through quickly some > FAQs > > and tried some thing like creating a new sendmail.cf by using > > FEATURE(`nodns') or FEATURE(`accept_unresolvable_domains'), but with no > > luck. > > > > Can sb. help me to set up the configuration to allow forwarding outbound > > non-local mails to the mail server? I will summarize. TIA > > > > > > Chi > > _______________________________________________ > > sunmanagers mailing list > > sunmanagers@sunmanagers.org > > http://www.sunmanagers.org/mailman/listinfo/sunmanagers > >Received on Mon Dec 10 13:22:39 2001
This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:37 EDT