SMTP Server for External Client?

8 posts / 0 new
Last post
#1 Fri, 04/06/2007 - 03:10
CalebWakefield

SMTP Server for External Client?

Hey I'm using Mail for Mac OSX and I just recently setup webmin with virtualmin. I finally got my FTP working, and now I can send mail from webmin perfectly fine from webmin but I cannot receive it in webmin. When I am setting up the account in mail (external pop/imap client) I use my.domain.com for the POP server, then my pop3 username and pass, works. Then it prompts for smtp server and I put in the same info, but it said it couldn't reach an smtp server at that address. I am using sendmail, is there anything I need to do so I can send and receive mail through webmin as well as configuring accounts with an external client?

Thanks, Caleb

Fri, 04/06/2007 - 07:58
DanLong

You don't mention the OS that you have webmin setup on.

First make sure make sure the path for mail delivery in readmail is the same as the path in sendmail. SOme OS don't support placing mail in the virtual server home directory but place it in the var/spool/mail directory.

Second, the usual culprit is that your bandwidth provider (dialup?) denies port 25 relaying without them including the IP in their allowed list. Or sendmail may be blocking the relay itself and you'll have to include the relay in your allowed relay list.

Fri, 04/06/2007 - 09:20
CalebWakefield

First, I am using CentOS 4.4, I am on cable internet and have several POP emails setup on other servers, so it should work if I can get these things to work correctly. In webmin it says "no mail for user in /var/spool/mail/*user*" In case I didn't make it clear in my original post, I am trying to acquire an smtp server to connect to. If you need anything else from me let me know.

Fri, 04/06/2007 - 11:55 (Reply to #3)
DanLong

Okay, Cable broadband is a spammers haven for blasting through port 25 so no problem.

Now in sendmail config, make sure that it's delivering to /var/spool/mail and not virtual servers home

Fri, 04/06/2007 - 09:59
CalebWakefield

I fixed it by changing the SMTP listen IP in the sendmail configuration to my main IP instead of 127.0.0.1. I still have two problems that remain though.

-User Disk Quotas?
-jailing FTP Users?

I haven't seen a box anywhere to limit people's disk usage, and any FTP user on an account has all permissions the the entire home folder.

Thanks,
Caleb

Fri, 04/06/2007 - 12:06 (Reply to #5)
DanLong

For quotas you need to go to the disk and network filesystems module and turn on quotas for the partition you want. (IE, click on the mounted partition) and then use the quotas module.

A word to the wise though, if you are running the virtual server through virtualmin, you want to do all the manipulation through the VM module as it keeps track of everything for that virtual server.

Fri, 04/06/2007 - 18:29 (Reply to #6)
Joe
Joe's picture

Howdy Caleb,

<i>-jailing FTP Users?</i>

This depends on your FTP server. Virtualmin supports ProFTPd and vsftpd (ProFTPd is the best support, but most others will also work, you just won't have a GUI for some of the options).

For ProFTPd browse to the ProFTPd module in Webmin, click on &quot;Files and Directories&quot; and find the option labeled &quot;Limit users to directories&quot; and set it to &quot;Home directory&quot; save and apply the changes. If you prefer to hit the command line for ProFTPd, add this line to /etc/proftpd.conf:

DefaultRoot ~ !adm

For vsftpd add this line to vsftpd.conf:

chroot_local_user=YES

And restart the service.

--

Check out the forum guidelines!

Fri, 04/06/2007 - 19:52
CalebWakefield

I am using a VPS also, and it is not giving me any option to enable quotas. I did get the FTP jail thing to work though, thanks for the help.

-Caleb