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!

relay domains 2

Status
Not open for further replies.

roeiboot

Technical User
Feb 10, 2002
241
US
dang, if i add a domain to the "relay domains list" i am able to sent mail from a pc not in my network.. there must be another way to allow remote users to sent mail, i mean it's next to impossible to add every single domain out there to the relay domains list.. please help!

thanks in advance.
 
You don't want to use Relay Domains. You want to use access.db. When you open /etc/mail/access, you will see that localhost and/or the loopback (127.0.0.1) is listed with the word "relay" next to it. You need to add your domain name. For example:

yourdomain.com Relay

If you host other domains on your server, add those as well. Then open /etc/mail/sendmail.mc and add:

FEATURE('relay_local_From')dln

Then create access.db:
makemap hash /etc/mail/access.db < /etc/mail/access

Now recompile sendmail.cf:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

These paths may be different on your distro. Don't forget to restart sendmail. When you are done doing this, anybody who has yourdomain.com in the From: part of the address, will be relayed. For this reason, you should look into setting up &quot;pop-before-smtp&quot; to have sendmail use the pop user authentication before is relays mail.

 
it won't work, did everything you said and created a tets user on a pci have here that's outside my network connected to the Internet with ADSL (the rest of my pc's are connected through cable).. i still get the same error on the remote pc. here you can see the files we are talking about: ..as said but not the way i should do it when i add for example .com to my relay_domains file it works... it's now empty (also tried it with onlr roeiboot.com in it (my domain))

thanks in advance..
 
just wanted to bump this thread 'cuz it still won't work.. can somebody please help me.
 
I answered this a while ago but the post didn't seem to work. I noticed a small problem with you sendmail.mc. You have this:

FEATURE('relay_local_From')dnl

It should be:

FEATURE(`relay_local_from')dnl

Notice the tick before the word, relay. It should be the mark under ~ and NOT the one under &quot;. Also the uppercase F may cause a problem. If you aren't sure what I mean, just copy and paste the correct line into you sendmail.mc file. I also looked at your access file and it looks ok but I don't think you need &quot;all reject&quot; because the default is to only relay or accept mail from those listed in this file.
 
Ace, it works !!! dang, such a tiny detail makes a world of difference, thanks a whole lot buddy.

so now i need to install Pop-before-smtp ? is that thisone:
(ps. i'll try to remove the all.. see what happens, by the way i use Sendmail 8.11/8.11.6)

once again: THANKS !!
 
Thanx - sorry I can't figure out you &quot;other&quot; problem. I'll keep thinking about it though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top