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!

allowing smtp for myself

Status
Not open for further replies.

AccessXP

IS-IT--Management
Jan 29, 2002
132
I have a linux server running sendmail and i would like to allow only myself smtp services from home. How can this be done without the server becomming a spam server?

Thanks,

 
Edit /etc/mail/access. Add a line like this:

192.168.0.20 RELAY

If you have a static ip at home, this would be the best way. You can also use a user name, e-mail address or a domain. When you are done, you will need to build access.db:

makemap hash /etc/mail/access.db < /etc/mail/access

 
I do not have a static at home unfortunately, so how would I set it up to use my username or e-mail address? If you dont mind what does the ip address above do?

Thanks for your reply and help,

 
It's just a made up ip address. I used it because I didn't know yours. Actually an ip that starts with 192.168 is a private ip. It is used to give machines on a lan an ip on the same subnet. This ip range is not public and can't be seen from the outside world.
 
I am in the same boat as AccessXP. My IP is dynamic (through MSN) and I want to be able to send mail from only my login, only my email.

What is the correct line to add to the access file so that I can send mail regardless of my ever-changing IP?

Any help would be appreciated.

Einstein47
(&quot;The pure and simple truth is rarely pure and never simple.&quot; - Oscar Wilde)
 
I have a similar issue but I am lost as to how to do this too. I run a server that sits on the Internet, it is a web/DNS/mail server, all for the same domain. I would like to be able to, using a client of course, send and receive mail using a client such as Outlook Express. I would also like to set up other users to be able to do the same thing. All of the users would have local accounts on the server but only for the purposes of being able to send and receive their mail from the domain which is being hosted on that server. I was thinking simply that Sendmail could verify the username and password via the /etc/passwd file but I don't know how to bet this to work right.

Does anyone have any ideas?
 
If you are running a windows machine run ipconfig /all from the command line. This will tell you what IP address your ISP has assigned your NIC or PPP dialer on their network. Add this to your access file as RELAY. Einstein47 if you want this to be perm. Then you need to request a static IP form your ISP and use this address in the access file. However you may still have NAT issues depending on how your ISP has your account set up. If your ISP is "popping" onto another backbone then there may be some bridging issues between the routers.

Cogito Ergo Sum - Non Compos Mentis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top