Web Hosting Talk







View Full Version : Mail issues.


clocker1996
12-22-2001, 09:37 AM
Hi

Basically, i have a simple pop3 daemon setup. Teapop with sendmail.

in /etc/mail

I have my
local-host-names
virtualusertable
access

all of those configured. The problem is, i want to give out free email accounts to a bunch of my friends.

Since i have this all running.I figured, lets say my friend joe wants
joe@clocker.com

I Figured i would go about it this way
adduser joe -d /dev/null -s /bin/false (or no shell)
passwd joe
echo "joe@clocker.com joe" >> /etc/mail/virtaulusertable
and then id be set ?

I'm assuming this is how you would go about it
But my problem is that when i tried to send mail for my own account
it wouldnt let me
i had to put my IP in /etc/mail/access
Why? I am pretty sure it is to prevent other people from using my smtpd ?
relay issues ?

If so thats fine. But. I don't want to add each and every one of my friends IPS, but at the same time I dont want other hosts etc using my smtp server
??

Can someoen clear my confused mind.

Am i even going about things the right way?

I have teapop running in the bg.
The most work that neeeds to be done here is sendmail issues

Please don't reply with "Why don't you use qmali"
I do use qmail, but I also would like to learn other things. I'm just trying to figure this all out.

If anyone can help that'd be great

thanks

RutRow
12-22-2001, 10:51 AM
This is correct. You cannot send mail through your server (relay) unless you add their IP to access. You would not want it any other way, else you become an open relay and that is a big no no. Why don't you just have your friends use their ISP's SMTP server instead of yours? They can still POP their mail off your server with no problem.

clocker1996
12-22-2001, 04:59 PM
Oh.
So what's the difference between their isps smtp server and mine?

clocker1996
12-22-2001, 05:45 PM
how can i make sendmail so it will allow anyone to send mail
just as long as its FROM the trusted-host-names/domains
??

RutRow
12-22-2001, 07:55 PM
So what's the difference between their isps smtp server and mine?
None.
how can i make sendmail so it will allow anyone to send mail just as long as its FROM the trusted-host-names/domains
If you must..... read here.
http://www.sendmail.org/m4/anti-spam.html

clocker1996
12-24-2001, 04:54 AM
if i block port 25
on my machine
with ipchains
then they wont be able to send mail right ? the users on the system

RutRow
12-24-2001, 09:25 AM
If you block port 25 to all incoming traffic, no one will be able to use your server as a relay. Your server will still be able to send mail to other servers, though.

bobcares
12-26-2001, 09:15 AM
Hi!
You have two ways to get about it.
One is add your friends IPs into the access file.
Another method is use POP before SMTP. Here's what happens if when a guy checks his POP box then for 10 minutes his IP is logged into the access. He can then use SMTP. For others it is blocked.
This is very useful if your friends have dynamic IPs

Have a great day :)

regards
amar

RutRow
12-26-2001, 10:51 AM
Originally posted by bobcares
Another method is use POP before SMTP. Here's what happens if when a guy checks his POP box then for 10 minutes his IP is logged into the access. He can then use SMTP. For others it is blocked.

Hmm. I assure you this does not work on my RedHat box. What popper program are you using?

clocker:
Another option worth exploring is SMTP AUTH. Basically this allows your box to act as a relay for your users when they supply the appropriate username and password.