Re: sendmail problems.. argh...


Subject: Re: sendmail problems.. argh...
From: Matthew Schumacher (schu@schu.net)
Date: Tue Jul 23 2002 - 08:24:28 AKDT


Justin,

The only file you should need to edit (other than DNS) to add a second
domain to sendmail is your local-host-names (sendmail.cw on older
sendmails). This tells sendmail what is in the class w or which domains are
local and which domains would be considered a relay. The relay-domains file
tells sendmail to allow everyone to relay for a specific domain. That
feature is used to allow relaying for secondary MX records or proxying mail
to another host on the trusted network.

You shouldn't need to make any changes to your sendmail.cf and I would
recommend using the m4 method and changing the sendmail.mc and compiling a
sendmail.cf from it. While it is a little awkward at first, but I think it
keeps the config file much more manageable.

While looking at your config I would remove the domains from the access file
because it will allow anyone who can setup their reverse DNS to any of those
domains to relay. The last line is all you really need. I would also
remove all of you domains from your relay-domains file because you are
declaring them as local in your sendmail.cw. One last thing, I recommend
that you put the fully qualified domain name in your sendmail.cw that way
you can accept mail addressed to user@fqdn.

Hope that helps,

schu

Justin Dieters wrote:

> The free 'service' i registered my domain name (enderak.com) with a long
> time back finally let it expire, and I bought it up. So now I have two
> domain names, enderak.com and enderakonline.com. I set all the stuff up
> with network solutions and GCI, and it is working as expected. They both
> point to the same IP (static IP through GCI cable modem) and I can get
> to my website, ssh, ping, and send mail using either address and it
> works fine.
>
> What I am having trouble with is receiving mail. To update the sendmail
> configs, I just went through the config files, and wherever I had
> enderakonline.com I added in another line for enderak.com, and restarted
> sendmail. I can still send mail to myself at enderakonline.com (from my
> yahoo acct) just fine but if I try to send mail to myself at enderak.com
> it gets returned saying:
>
> Message from yahoo.com.
> Unable to deliver message to the following address(es).
>
> <enderak@enderak.com>:
> 208.138.130.82 does not like recipient.
> Remote host said: 551 Relaying not allowed.
> Giving up on 208.138.130.82.
>
> To the best of my recolection, the config files I changed are:
> sendmail.cf, sendmail.cw, access, and relay-domains
> If anyone wants to take a look at my config files, I copied them to:
> http://www.enderak.com/hold/sendmail/ They should be all there, but I
> took some stuff out, like the .db files..
>
> I don't know if maybe I missed/messed up a config file somewhere, or
> perhaps GCI didn't set up my MX stuff properly, or what.. any ideas what
> might be wrong?
>
> Thanks all,
> Justin
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Jul 23 2002 - 08:28:48 AKDT