[olug] Senmail relaying

Terry td3201 at yahoo.com
Fri Apr 2 22:00:21 UTC 2004


Ryan, 

did you try this:
/etc/mail/mailertable:
.somedomain.com smtp:[mail.someotherdomain.com] # This
one ignores MX lookups (as it should probably)
.somedomain.com smtp:mail.someotherdomain.com # This
one uses MX lookups

??


--- Ryan O'Rourke <ryano at ch-gifts.com> wrote:
> Well, maybe I should explain myself more clearly.
> Looking back on my
> original message I see it's somewhat vague.
> I administer a Sendmail-8.12.8 box running RH9.
> Someone else administers
> an Exchange server (our main office email server),
> and a Lotus Domino
> server (mail for a different, internal,
> non-routeable domain).
> 
> For most users their mail is handled like this:
> Mail to *@maindomain.com is handled by Exchange.
> Mail to *@otherdomain.com is relayed from Exchange
> to Domino and is
> delivered.
> 
> However, Linux desktop users prefer to use sendmail
> for SMTP and
> therefore haven't been able to send mail to
> otherdomain.com
> 
> I need to get Sendmail set up so it will just dump
> email addressed to
> otherdomain.com directly to Domino.
> 
> I tried what you suggested below by adding an MX
> record for
> otherdomain.com to /var/named/db.maindomain.com. The
> MX records now look
> like so:
> 	MX 10 exchange.maindomain.com.
> 	otherdomain.com MX 10 domino.maindomain.com.
> 
> I also created the file /etc/mail/relay-domains:
> 	.otherdomain.com         RELAY
> 
> Finally I restarted Sendmail and tested. The
> delivery of a message from
> mydesktop.maindomain.com to someone at otherdomain.com
> failed.
> 
> hrmmm... I'm sure someone's got something completely
> fubar here so any
> suggestions would help!
> Thanks again.
> 
> -- Ryan
> 
> On Fri, 2004-04-02 at 13:59, Trent Melcher wrote:
> > What you can do is, first I assume you have an MX
> record out there that
> > points somedomain.com to your current mailserver. 
> You should have an
> > internal name server that you mailserver does his
> lookups on and  this one
> > will have an MX record for somedomain.com that
> actually points to the
> > mailserver you want to relay it too.  You will
> also need to add
> > somedomain.com to the /etc/mail/relay-domains file
> of the relaying
> > mailserver.
> > 
> > If you need more detail, or if I havent explained
> it clear enough let me
> > know.  I use this setup, I have 10 domains inside
> my firewall,  I have a
> > central mailserver that all email for all 10
> domains go to first to get
> > scanned for SPAM/viruses,  then this mailserver
> relays the mail based on the
> > domain to the correct mailserver.
> > 
> > Trent
> > 
> > -----Original Message-----
> > From: olug-bounces at olug.org
> [mailto:olug-bounces at olug.org]On Behalf Of
> > Ryan O'Rourke
> > Sent: Friday, April 02, 2004 11:44 AM
> > To: olug at olug.org
> > Subject: [olug] Senmail relaying
> > 
> > 
> > I'm very new to Sendmail and am trying to
> configure it so any email sent
> > to it with a *@somedomain.com address will
> automatically be forwarded
> > onto a different server for processing.
> > Can anyone help to point me in the right
> direction?
> 
> 
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug



=====
Terry

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/


More information about the OLUG mailing list