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!

problems with building new sendmail.cf

Status
Not open for further replies.

wreikun

Technical User
Apr 23, 2002
63
US
ive been having continuous problems with creating my own sendmail.cf file and getting it to work. the .mc file i made reads as follows:

OSTYPE(linux)dnl
DOMAIN(generic)dnl
FEATURE(virtusertable, hash /etc/mail/virtusertable)dnl
FEATURE(genericstable, hash /etc/mail/genericstable)dnl
FEATURE(use_cw_file)dnl
GENERICS_DOMAIN_FILE(/etc/mail/generics-domain)dnl
MAILER(local)dnl
MAILER(smtp)dnl

after i put this thru the m4 macro to generate a new sendmail.cf and replace the old one with this new one and restart sendmail, i get the following error when i try to send mail from Outlook Express on my PC workstation.

550: Relay Denied

since relaying was denied, I added the line
FEATURE(access_db, hash /etc/mail/access)dnl
to the .mc file to incorporate the access database. in the access database i added the following line so that mail from the local network 192.168 will be relayed.

192.168 RELAY

Adding this line and restarting sendmail allows me to send out mail from my PC workstations Outlook Express. However, I am not able to accept any incoming mail (probably due to the fact that the access database doesnt contain any relay info other than for the local 192.168 network.)

My question: Is there any way to not have to use the access database to get things to work? its seems that the default sendmail.cf doesnt use the access database because the access file was empty before i modified it. if the access db is necessary, what kind of line do i put in to allow it to relay all mail? and isnt it bad to allow relaying on a mailserver? (i read that all mailservers dont allow relaying by default due to spam mail)

thanks in advance!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top