New server mail and 403 error

16 posts / 0 new
Last post
#1 Thu, 05/07/2009 - 07:40
yidhaggd726

New server mail and 403 error

Hello,

I'm using Virtualmin GPL @ Ubuntu Server 8.04.2 LTS since last two days, and I've got a few questions.

First: I enabled the function that when a new server is created an e-mail is send to the administrator e-mail address which belongs to that server(Server Templates > Mail for domain) and this works great, but I've got two issues with it: 1. - When I created a server with an administration e-mail address witch ends on @hotmail.com then that e-mail will never arrive, but I think this is a Hotmail problem and not a Virtualmin problem? 2. - Is there a way that you can specify an send-from e-mail address by this automatic e-mail? Now the From: says: webmin@hostname of my Internet provider.nl and it is a very ugly detail.

Then I have a second problem and I find this the biggest problem: Every directory of a website which i Host without an index.html/php page in it shows an 403 error. And a have quite a lot directories with only a few files in it which you can download. Now I can't reach those directories and that is very ugly. I don't want to create a lot of index pages for those directories, how can I make that I can see those directories instead of an 403 Forbidden page.

Thank you very much, and sorry for my bad English.

Post edited by: Tralapo, at: 2009/05/07 07:41<br><br>Post edited by: Tralapo, at: 2009/05/07 07:46

Fri, 05/08/2009 - 05:21
andreychek

Hello,

<div class='quote'>1. - When I created a server with an administration e-mail address witch ends on @hotmail.com then that e-mail will never arrive, but I think this is a Hotmail problem and not a Virtualmin problem?</div>

Whenever you send the email, look in /var/log/mail.log.

That will contain any errors and warnings regarding the email.

<div class='quote'>2. - Is there a way that you can specify an send-from e-mail address by this automatic e-mail? Now the From: says: webmin@hostname of my Internet provider.nl and it is a very ugly detail.</div>

Sure!

In Virtualmin, click System Settings -&gt; Module Config -&gt; Actions Upon Server and User creation. In there, you can set &quot;From: address for email sent by Virtualmin&quot;.

Have a good one,
-Eric

Fri, 05/08/2009 - 05:43 (Reply to #2)
yidhaggd726

<b>andreychek wrote:</b>
Sure!

In Virtualmin, click System Settings -&gt; Module Config -&gt; Actions Upon Server and User creation. In there, you can set &quot;From: address for email sent by Virtualmin&quot;.

Have a good one,
-Eric[/quote]

Yes, this helped! Very nice, thank you!
And now I set that e-mail address to my own e-mail adres, I also got an e-mail that the automatically sent mail doesn't arrive at Hotmail because they don't accept mails from an server with an dynamic IP.
So, I know this, and on my Windows server I always used the SMTP server of my provider to send the mail trough (smtp.upcmail.nl). Is there I way in Virtualmin I can set that server to send the mail trough? Then my Hotmail problem is also over.

Then I only have my 403 problem left ;) Thanks man!

Fri, 05/08/2009 - 05:50 (Reply to #3)
andreychek

Howdy,

<div class='quote'>Is there I way in Virtualmin I can set that server to send the mail trough</div>

You can do that by going into Webmin -&gt; Servers -&gt; Postfix Mail Server -&gt; General Options, and setting your host in &quot;Send outgoing mail via host&quot;.
-Eric

Fri, 05/08/2009 - 05:58 (Reply to #4)
yidhaggd726

Thanks man, that solves a lot of little problems.

Now I only have my 403 Forbidden problem left.
Somebody know how to solve this?

Mon, 05/11/2009 - 00:50 (Reply to #5)
yidhaggd726

How can I change it at already existing websites?

Mon, 05/11/2009 - 01:34 (Reply to #6)
Joe
Joe's picture

Select the virtual server to edit in the Virtualmin domain dropdown menu, click &quot;Configure Website&quot; in the Services menu. Click on the public_html directory. Click &quot;Document Options&quot;.

Then set &quot;Generate directory indexes&quot; to &quot;Yes&quot;. Save it. You'll probably have to restart Apache for the change to take effect.

Or, you can edit the /etc/apache2/sites-available/*.conf files directly, if that's faster and more comfortable for you. Virtualmin and Webmin are aware of the configuration files, and won't freak out if you edit them outside of their awareness (in almost all cases, anyway).

--

Check out the forum guidelines!

Mon, 05/11/2009 - 01:40 (Reply to #7)
yidhaggd726

Ok, but the only thing I don't know very good now, I've got the line:

&quot;Options -Indexes IncludesNOEXEC FollowSymLinks&quot;

Do I have to take the &quot;-&quot; out of it?

Mon, 05/11/2009 - 01:41 (Reply to #8)
Joe
Joe's picture

Yes. The &quot;-&quot; means &quot;no&quot;. ;-)

--

Check out the forum guidelines!

Mon, 05/11/2009 - 01:42 (Reply to #9)
yidhaggd726

Ok. Then I will take that out en restart apache and see what it does.

Mon, 05/11/2009 - 01:43 (Reply to #10)
yidhaggd726

It works!
Many many many thanks to you all ;)
I'm very happy with the system now. Thanks!

Sun, 05/10/2009 - 06:57
yidhaggd726

Nobody knows the 403 Forbidden error or how to solve it?

I will explain the problem once again:

I installed Virtualmin and made a few hosts. Now, when I go to the website of one of those hosts, and then to a directory without an index page, but only with a few files in it, which you can download from there, you always get an 403 Forbidden error. So it's impossible to go to that directories if there isn't an index page in it. I've got a lot of those directories and it is impossible to make index pages for all those directories. So it is a very ugly and annoying problem. And I Googled a lot but can't find the answer tot this. Is there somebody who can help me please? That would be very great. I'm using the latest Virtualmin GPL version on Ubuntu Server 8.04.2 LTS. Installed with the installation script.

Sun, 05/10/2009 - 12:32 (Reply to #12)
Joe
Joe's picture

You need to enabled Indexes in your Apache Server Template section.

--

Check out the forum guidelines!

Sun, 05/10/2009 - 12:36 (Reply to #13)
Joe
Joe's picture

Oh, and Server Templates only apply to new virtual servers. So you'll need to enable Indexes in your existing virtual host sections.

Disabled indexes is the default on Ubuntu. On some operating systems indexes are enabled, by default (and people complain about having them enabled sometimes, too). It's always a configuration option. ;-)

--

Check out the forum guidelines!

Sun, 05/10/2009 - 21:36
yidhaggd726

I can't find it, can you be a little bit preciser about this?
I think I have to be @: Virtualmin &gt; System Settings &gt; Server Templates &gt; Default Settings &gt; Apache Website. But then? I can't find it.

Sun, 05/10/2009 - 21:44 (Reply to #15)
Joe
Joe's picture

Directives and settings for new websites, the specific line you want looks like:

Options Indexes IncludesNOEXEC FollowSymLinks

And you want it to have &quot;Indexes&quot; in there.

--

Check out the forum guidelines!

Topic locked