1826269 Members
3595 Online
109692 Solutions
New Discussion

Sendmail relay

 
SILO Storagetek
Frequent Advisor

Sendmail relay

Hi everyone.
I've a problem with my sendmail: I've 50 hosts, and a relay, all systems with hp-ux 11.i running.
In host systems, I set DSrelay.mydomain.com, and DMmydomain.com

Everything worsk fine, but my relay send everything to a system outside the firewall, because it's the only MX found with nslookup.
Now, I need to forward the internal mail (name@mydomain.com) to another relay, relay2.
I've tryed to set Dj.wmydomain.con and DHrelay2.. but doesn't works.. it seems thad DS override the DH...
any suggest?

p.m.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Sendmail relay

The problem is probably on the relay server. Its probably not properly routing internal mail.

Try this diagnostic trick to check whats going on with mail.

sendmail -v -d8.99 -d38.99 someone@aol.com

Type some text like this.



type a dot(period)

.


You should see the pass off to the DS server.

do the same thing with a local address.

If you see a pass off to the DS server, the DS server needs instructions on what to do with internal mail.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bernhard Mueller
Honored Contributor

Re: Sendmail relay

Hi,

file this as /etc/mail/mailertable and run as you are told

---------------------
# Usage:
# makemap dbm /etc/mail/mailertable < /etc/mail/mailertable

# send local mail to local relay
wmydomain.com smtp:[ip-of-internal-relay]

---------------------

Regards,
Bernhard
SILO Storagetek
Frequent Advisor

Re: Sendmail relay

ok, thanks.. now it works!
Bernhard Mueller
Honored Contributor

Re: Sendmail relay

So you created the mailertable ok?
did you restart sendmail?

Regards,
Bernhard
W.C. Epperson
Trusted Contributor

Re: Sendmail relay

Bernhard's solution is also the one we settled on. So now that it works, why not give him his due?
"I have great faith in fools; self-confidence, my friends call it." --Poe