Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Relay...help with config

Status
Not open for further replies.

smikes19

MIS
Oct 18, 2001
62
US
Hi, I've decided to upgrade a mail relay I have running on solaris 7. It is a mail relay on my dmz...it takes mail from the ISP and sends it to my internal mail server. I have no idea what the original config was...so i'm starting from scratch. Here's what I have:

divert(0)dnl
VERSIONID(`$Id: cs-solaris2.mc,v 8.12 1999/02/07 07:26:00 gshapiro Exp $')
OSTYPE(solaris2)dnl
define(`DATABASE_MAP_TYPE', `dbm')
define(`MAIL_HUB', `MY_INTERNAL_MAIL_SERVER.com')
define(`SMART_HOST', `ISP_MAIL_SERVER.com')
FEATURE(`relay_entire_domain')
FEATURE(access_db)dnl
FEATURE(`blacklist_recipients')
FEATURE(nouucp, reject)
FEATURE(redirect)
FEATURE(accept_unresolvable_domains)
MAILER(local)dnl
MAILER(smtp)dnl
MASQUERADE_AS(MyDOMAIN.com)

This is nice and secure, but it send incoming mail into a routing loop between this box and the ISP's relay. I think im missing something simple here. Someone please help! I'd appreciate it greatly.

Thanks!
 
Well...i've fixed my own problem. Here it is for anyone's reference.

divert(0)dnl
VERSIONID(`$Id: cs-solaris2.mc,v 8.12 1999/02/07 07:26:00 gshapiro Exp $')
OSTYPE(solaris2)dnl
define(`DATABASE_MAP_TYPE', `dbm')
define(`MAIL_HUB', `mymailhub.com')
define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
FEATURE(use_cw_file)
FEATURE(`relay_entire_domain')
FEATURE(access_db)dnl
FEATURE(`blacklist_recipients')
FEATURE(nouucp, reject)
FEATURE(redirect)
FEATURE(accept_unqualified_senders)
FEATURE(accept_unresolvable_domains)
MAILER(local)dnl
MAILER(smtp)dnl
MASQUERADE_AS(domain.com)


This config is nice and spam proof!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top