[1607] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: dns/sendmail question

daemon@ATHENA.MIT.EDU (Al Longyear)
Sat Jan 13 17:33:03 1996

To: 72254.3077@compuserve.com (PATRICK MAIN)
Date: 	Fri, 12 Jan 1996 14:05:56 -0800 (PST)
From: "Al Longyear" <longyear@sii.com>
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <960109175635_72254.3077_IHC143-1@CompuServe.COM> from "PATRICK MAIN" at Jan 9, 96 12:56:36 pm

Is it just me or has the entire world gone to sleep with Linux. The rutgers
mail list traffic is way, way, down in volume.

PATRICK MAIN wrote:
> 
> please excuse the c-serve return e-mail but that's my most reliable mail
> server!
> 
>  QUESTION1:  I have a server called mailhub.pensacola.com which is the same
>     machine as pensacola.com; ipaddress is 206.96.254.1
>     mail to pmain@mailhub.pensacola.com works while
>     mail to pmain@pensacola.com causes a loopback error

You need to list __all__ of the IP addresses for your computer as aliases
in the "w" class. See the Cw or Fw statements in sendmail's sendmail.cf file.

>    Have tried several combinations of mx records and even NO MX records
>    in the DNS mailhub is also running dns and tried running without.

That's not the problem. The MX records are probably OK. You need to list
both mailhub.pensacola.com and pensacola.com as sendmail aliases for the
single system.

For example, the following is applicable in the sendmail.cf file:

Cw localhost mailhub.pensacola.com pensacola.com



>   What's crazy is there is another machine with nearly identical
>   configuration called mailhub.amaranth.com which does do all the above
>   correctly for amaranth.com  <go figure>
> 
>   All programs on pensacola.com are from SLACKWARE PRO version 2.3 while
>  the amaranth.com machine has programs dating from an earlier slackware
>  that came with the 1.1.59 kernel.  <that's another story!>
>  anyhow the admin for amaranth is not very knowledegable on linux and
>  networking issues which is why i have been called. dns and sendmail are
>  not my strongest suit

The problem is not with DNS. It is with sendmail.

>     ANY SUGGESTIONS?
>    please send a copy of replies to 72254.3077.compuserve.com but i do
>    usually get most messages posted here!
> 
>  QUESTION2: WHILE WE'RE AT IT what is the proper way to get pensacola.com
>  to receive mail for a totally different domain such as teacher.net I do know
>  that i can create a CNAME entry for say: mail.teacher.net that would cause
>  mail.teacher.net to be an alias for mailhub.pensacola.com and all would work
>  how could i get pensacola's mailhub to accept mail like: pmain@teacher.net??

This is a small excerpt from the sendmail README file (in the cf directory)



procmail	An interface to procmail (does not come with sendmail).
		This is designed to be used in mailertables.  For example,
		a common question is "how do I forward all mail for a given
		domain to a single person?".  If you have this mailer
		defined, you could set up a mailertable reading:

			host.com	procmail:/etc/procmailrcs/host.com

		with the file /etc/procmailrcs/host.com reading:

			:0	# forward mail for host.com
			! -oi -f $1 person@other.host

		This would arrange for (anything)@host.com to be sent
		to person@other.host.  Within the procmail script, $1 is
		the name of the sender and $2 is the name of the recipient.
		If you use this with FEATURE(local_procmail), the FEATURE
		should be listed first.




So, add "FEATURE(local_procmail)dnl" to your mc file and use procmail as
your local mail delivery agent.

>  RTFM .... yes i know and the O'Reilly books are on the way even now. BUT
>    surely somebody already has this setup already. perhaps a hint? :-)

You won't find this in the O'Rielly book as it is too new (relativly speaking
as far as sendmail is concerned.)

-- 
Al Longyear            longyear@netcom.com            longyear@sii.com
Finger longyear@netcom.com for PGP public key.

 


home help back first fref pref prev next nref lref last post