Koozali.org: home of the SME Server

[Ask]About how to make mail server with sme server 7.4

Offline sleepwalkers

  • *
  • 9
  • +0/-0
[Ask]About how to make mail server with sme server 7.4
« on: October 05, 2009, 04:43:23 AM »
hi all ..
i need ur help, i'm newbie on linux ..
i want to make a mail server for my local area network which can connected to my hosting mail server ..,

mail server (hosting)---internet--modem--mikrotik--user (this my lan topologi)

then i want to make mail server .. so from mail server (hosting) to my mail server at sme server 7.4 then goes to user ..

how to make like that ?
i mean how many NIC (lan card) that i have to use in that pc with sme server ?
enough for 1 nic ? or 2 nic ?

like this : mailserver (hosting)---internet---modem---mikrotik---mailserver---user ? is that right ?

i'm sorry before.. coz my english not very good enough , i hope that u can understand about my questions..

Thanks

Rgds,

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #1 on: October 05, 2009, 07:42:08 AM »
sleepwalkers

Please read the online manuals, which it would seem you have not done. sme is already a fully configured mail server by default. Look at server manager panel for mail server details, and configure your email clients accordingly. Configure email options in server manager as required.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline sleepwalkers

  • *
  • 9
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #2 on: October 05, 2009, 08:29:45 AM »
Thanks mary ..
i already read online manuals , but i still confusing .. about the lancard .. if i wanna make mail server which like i said at the first post .. how many lancard needed? only just one ? enough ? or must have 2 lancard on that pc ?

Thanks ..


Rgds,


Offline mgb

  • *****
  • 558
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #3 on: October 05, 2009, 09:03:19 AM »
I do not really understand but if I understand correctly
So you want to serve SME attract external mail from mail server.
1. One network card enough

2 additional card if the server is SME dial
Thanks all for helping
Skype yosii2009

Offline sleepwalkers

  • *
  • 9
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #4 on: October 05, 2009, 01:14:59 PM »
I do not really understand but if I understand correctly
So you want to serve SME attract external mail from mail server.
1. One network card enough

2 additional card if the server is SME dial

BINGO !!! there u're ...

yes .. i just want to serve SME attract external mail from mail server ...
so i just need one network card only :)

Thanks mgb... you've got my point
btw .. i want to make that point .. is there any application that i've to install or addon on sme server 7.4 ? or no need addon .. ?

is there any tutorial for make sme attract external mail from mail server to my local lan user ?

Thanks again ...

Rgds,

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #5 on: October 05, 2009, 01:17:08 PM »
sleepwalkers

Please read manual re operating modes eg server gateway (requires 2 NICS) or server only (requires 1 NIC)

In both modes the mail server is functional.
Which mode you choose depends on your existing network arrangement.

In server gateway mode, sme acts as a firewall and usually is connected to a modem that is configured in a bridged arrangement.

In server only mode there will be another firewall/router in front of sme, and you forward necessary ports for mail etc to the sme server.

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #6 on: October 05, 2009, 01:31:19 PM »
sleepwalkers

Obtain a real domain name. Configure your sme with your real domain name, commercial or free is OK. Configure external DNS & MX records to point the domain at your static external IP number. If you have a dynamic IP then the configuration will be slightly different and you will need to use the built in dynamic IP updating client or use ddclient instead (an add on contrib).

Configure port forwards if necessary (if using a seperate firewall/router).
Configure your workstation email clients to use mail.yourdomain.com
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #7 on: October 06, 2009, 11:41:26 AM »
ok to send mail form the sme server
in server-manger -
 mail -ins -smtp of Mail account of external internet provider
Attracting external mail server pop3
Open a new account on SME

Log in using https://myserver/webmail option fence pulling mail with a username and password of the external mail it exists naturally in
provider
Thanks all for helping
Skype yosii2009

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #8 on: October 06, 2009, 12:21:49 PM »
sleepwalkers

if you need to download mail via pop3/imap from your isp you can install smeserver-fetchmail  contrib

please, as mary suggest you, take the time to read the documentation and to search in the forums and in the wiki before posting

thank you

Offline sleepwalkers

  • *
  • 9
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #9 on: October 07, 2009, 07:02:21 AM »
sleepwalkers

if you need to download mail via pop3/imap from your isp you can install smeserver-fetchmail  contrib

please, as mary suggest you, take the time to read the documentation and to search in the forums and in the wiki before posting

thank you

Thanks Stefano for ur reply,

can u tell me how to install fetchmail to my sme server ?
i try to searching on this web then fine this :

"Installation

Fetchmail itself is already installed on your SME Server : it is used by the ETRN and multidrop mode of the e-mail configuration (See the SME documentation for more information)"

what's that mean ?

please help ..
i'm doing this by reading in this forum, learn by doing :)
coz i'm new in linux world ..
i'm sorry if my english not good enough .. :)


Thanks

Rgds,

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #10 on: October 07, 2009, 08:21:49 AM »
sleepwalkers

Quote
Fetchmail itself is already installed on your SME Server : it is used by the ETRN and multidrop mode of the e-mail configuration (See the SME documentation for more information)"

You can configure the required email mode in server manager Email panel.
AFAIK the default sme server config can download from one pop account only.
I'm sure it's covered in the manual, see
http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter13#E-mail
It seems you still have not read/absorbed that section, so please do.

From the manual:
"If you arranged "multidrop" mail service from your ISP, choose "multidrop" and then scroll down to the field that asks for the IP address or hostname of your ISP's secondary mail server. This secondary mail server will receive all e-mail for your domain and store it in a single POP mailbox. Further down the screen, you will need to specify the user account and password assigned by your ISP for this POP mailbox. Your server will periodically fetch this mail and distribute it to individual POP mailboxes on the server. (Note that due to problems receiving mail for mailing lists, we strongly encourage people to NOT use multi-drop e-mail.) "


From the server manager panel:
"The e-mail retrieval mode can be set to standard (for dedicated Internet connections), ETRN (recommended for dialup connections), or multi-drop (for dialup connections if ETRN is not supported by your Internet provider). Note that multi-drop mode is the only option available when the server is configured in private server and gateway mode."


The fetchmail add on contrib will allow to to download mail from multiple email accounts.
All contribs are listed here, and it seems you have not looked there either, so please do (fetchmail is there).
http://wiki.contribs.org/Category:Contrib
Follow the instructions in the Contrib wiki for fetchmail.


Having said all the above, using fetchmail in any form is NOT recommended as it has inherent problems.
You will be better off to configure any POP accounts to forward all email to your domain based email addresses, and use the standard smtp server domain based email collection on your server.

Over time you should stop using POP accounts and only advertise your domain based email addresses eg user1@yourdomain.com rather than user1@yourISPdomain.com
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #11 on: October 07, 2009, 08:45:16 AM »
sleepwalkers:

Code: [Select]
yum --enablerepo=smecontribs install smeserver-fetchmail

will install a web panel to configure per-user fetchmail

hth

Offline sleepwalkers

  • *
  • 9
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #12 on: October 07, 2009, 09:05:12 AM »
Thanks again mary .. u're so helpfull :)

i'm sorry before coz i'm not good enough to learn this all about ..
i'll try to explain what i'm doing right now .. hope u can understand it .. related to my bad english :)
here .. i  have mail server from my hosting website ex: www.testuser.com, so for now .. if we want to check the mail,we goto www.testuser.com/webmail, then we use outlook express to get that mail .. and some people using webmail..
so we only have back up the email on the user pc only if we check option to keep copy message on server, then on the main mail server (hosting) but it's very very limited quota :(

mail server (from hosting) ---- internet ---modem ---mikrotik----then to user pc

now i'm planning to make an email server on my lan for backup email from mail server hosting .. using sme server (mail server)
maybe just like this :

mail server (from hosting)---internet---modem---mikrotik--mail server (SME SERVER) --- then goes to user pc .. the user pc with outlook express i'll check option "keep copy message on server"

just like that .. i hope that u can help me .. to learn n understand , how to make it ...

oya .. and now my pc box with sme server already running on my lan with ip 192.168.0.3 , users on the same class ip starting from 192.168.0.1 - 192.168.0.75
but i still don't know how to access webmail on my sme server :D , my domain server is "testuser.com , for example ..
when i type " http://www.testuser.com/webmail .. he goes directly to main mail server on the hosting .. , i try to type " http://192.168.0.3/webmail , can't display page..
so how can i login to my webmail at sme server ?

I really appreciate for all advise n tutorial that u gave me...

Thanks a lot ..


Rgds,



Offline janet

  • *****
  • 4,812
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #13 on: October 07, 2009, 09:16:10 AM »
sleepwalkers

The simplest and possibly the best approach is to stop using the external mail hosting server, and let your sme server do the job of mail server for that domain.

I assume external DNS/MX records point your domain to that external host server, so you would need to change those records to point the MX records to your sme servers static IP address.

An easier approach may be to host the whole domain on your sme server, and then just forward web (www) requests to the external web site hosting server. You configure this in the Hostnames and addresses panel.
All mail will be handled by sme then and www by the external server.

I'd ask though, "Is that what you want ?"

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline sleepwalkers

  • *
  • 9
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #14 on: October 07, 2009, 09:30:11 AM »
sleepwalkers

The simplest and possibly the best approach is to stop using the external mail hosting server, and let your sme server do the job of mail server for that domain.

I assume external DNS/MX records point your domain to that external host server, so you would need to change those records to point the MX records to your sme servers static IP address.

An easier approach may be to host the whole domain on your sme server, and then just forward web (www) requests to the external web site hosting server. You configure this in the Hostnames and addresses panel.
All mail will be handled by sme then and www by the external server.

I'd ask though, "Is that what you want ?"

not really mary .. i want to keep using external mail server ( from hosting ) coz my internet connection not 24 hours online .. only office hour .. 7:00 am to 17:30 pm

then i want to use this sme server only for my office LAN .. so if someone from here go to another place he still can send n receive the email from any where on anytime which internet connection available for him ..

i want to use this sme mail server just only for my office lan on office hour only .. coz some email have to keep available on mail server for office needed ... so i decided to grab email from mail server to my sme server and keep on that sme mail server .. so the quota on main mail server (hosting) not quickly full or over quota .... then this email only needed for office time only at the office ... and for some people .. they still can access mail directly to mail server hosting ..


did u get my point  ?:) i hope so .. coz the language is the matter .. :)
i just try once with mdaemon .. n it;s work .. but they need a license .. so i try to look for alternative way .. using an open source program like linux with sme server  :)



Offline janet

  • *****
  • 4,812
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #15 on: October 07, 2009, 09:51:08 AM »
sleepwalkers

I believe I better understand your situation now.
It's always good to give the whole story first.
You said earlier:

Quote
...so we only have back up the email on the user pc only if we check option to keep copy message on server, then on the main mail server (hosting) but it's very very limited quota

I assume you have a local server of some description, it's easy to configure your email client to save email data on that server, so therefore no problems having email data scattered on different workstations. Is that viable for you ?

I did just that for many many years and it works fine.

Your questions re accessing local webmail are probably related to how you have www resolution configured, but lets just deal with the initial matter first.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline sleepwalkers

  • *
  • 9
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #16 on: October 07, 2009, 10:34:18 AM »

Code: [Select]
I assume you have a local server of some description, it's easy to configure your email client to save email data on that server, so therefore no problems having email data scattered on different workstations. Is that viable for you ?

yup .. it's working .. but it's run under windows , i try to using mdaemon free edition ..

but .. i want to build mail server under linux .. coz mdaemon + windows server need a license ... :( i need to use an opensource like linux ..

so i wanna try to sme server 7.4 , i hope that i can use and configure it .. coz i'm really really newbie on linux, like a blind man .. on linux :)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #17 on: October 07, 2009, 10:44:59 AM »
sleepwalkers

Quote
.. it's working .. but it's run under windows , i try to using mdaemon free edition ..

I'm not referring to using a local mail server.
I'm saying you can continue to download mail using POP and simply change the location that your email client saves data to eg Outlook Express, Windows Mail, Thunderbird.
That way you can have as much data (ie email files) saved locally (on an ibay on the server) as you wish to have without limits or restrictions.

Quote
.. i want to build mail server under linux ..

I do not see the need for this, when you say that you only want the server to function during certain hours of the day. You are adding a layer of complexity that does not gain anything.
Just keep using POP download, but change where the email client data is saved.

Quote
...i wanna try to sme server 7.4 , i hope that i can use and configure it ..

If you really want to then read on.
You are indeed blind, as I have already answered in my earlier post the steps to follow to use fetchmail. Please read it again.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline sleepwalkers

  • *
  • 9
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #18 on: October 07, 2009, 11:25:26 AM »
hehehehehe :)
sorry .. pls don't be mad .. now i'm installing fecthmail like stefano post ... :)

i'll try first .. when i got problem i'll post it here again .. hope u still want to help me .. mary .. :)

Thanks alot ..

rgds,

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #19 on: October 07, 2009, 11:33:06 AM »
sleepwalkers

Please stop ignoring what is under your nose (ie the material/links posted in this thread) and read this
http://wiki.contribs.org/Fetchmail
and this
http://schirrms.net/sme/SMEFetchMail.php
 
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline sleepwalkers

  • *
  • 9
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #20 on: October 07, 2009, 11:47:58 AM »
ok .. thanks mary ..

i already make fectmail installed ..
try to make one account .. and test it .. to send mail to my yahoo mail ..
and it's work .. i received at ym ..
n now .. i reply that email .. but not receiving at webmail sme server :) dunno why .. dunno if it needs sometime to receiving ..
but i got one email at account on sme server like this :

Quote
Hi. This is the qmail-send program at xxx.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<ernest@server.xxx.com>:
Recipient unknown

--- Below this line is a copy of the message.

Return-Path: <edp@xxx.com>
Received: (qmail 5619 invoked by alias); 7 Oct 2009 09:35:17 -0000
Delivered-To: alias-localdelivery-ernest@xxx.com
Received: (qmail 5615 invoked by uid 453); 7 Oct 2009 09:35:16 -0000
X-Virus-Checked: Checked by ClamAV on xxx.com
Received: from localhost (HELO localhost) (127.0.0.1)
    by xxx.com (qpsmtpd/0.40) with ESMTP; Wed, 07 Oct 2009 16:35:15 +0700
Received: from pc-00110.xxx.com (pc-00110.xxx.com
        [192.168.0.110]) by 192.168.0.3 (Horde Framework) with HTTP; Wed,  7 Oct
        2009 16:35:14 +0700
Message-ID: <20091007163514.325465tgxascdq0w@192.168.0.3>
Date: Wed,  7 Oct 2009 16:35:14 +0700
From: edp@xxx.com
To: ingenetic98@yahoo.com
Cc: ernest@xxx.com
Subject: test
MIME-Version: 1.0
Content-Type: text/plain;
        charset=ISO-8859-1;
        DelSp="Yes";
        format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.2)

pake sme server 7.4 :) wish me luck ..


i dunno what that mean .. but i received that mail on my yahoo mail .. but didn't receiving the reply from yahoo mail until now .. :)still dunno what's wrong with this .. :)

« Last Edit: October 07, 2009, 01:26:01 PM by sleepwalkers »

Offline mgb

  • *****
  • 558
  • +0/-0
Re: [Ask]About how to make mail server with sme server 7.4
« Reply #21 on: October 08, 2009, 03:47:41 PM »
Regarding the question of webmailso how can i login to my webmail at sme server ?
https://myserver/server-manager
config  >> E-mail > Change e-mail access settings > SMTP authentication  Allow SSMTP (secure
ok
Program offered an excellent demand for the  withdrawal of your mailyum --enablerepo=smecontribs install smeserver-fetchmail
server-manager >Mailbox Retrieval
Thanks all for helping
Skype yosii2009