Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: Bud on January 21, 2013, 09:37:01 AM

Title: Debian to SME 8 Mail Server
Post by: Bud on January 21, 2013, 09:37:01 AM
guys please help

i need to decommission a debian server as i have installed an sme 8 server in it's place to handle mail.

i need to setup the sme 8 server for email however the debian server was using exim4 and courier for sending and receiving mail for 50 + users.

any ideas what i need to look for on the debain server regarding pop3 username to collect mail from their isp and smtp username for sending mail. the isp is using mimecast. not sure what that is. sorry for my ignorance.

please help  :P
Title: Re: Debian to SME 8 Mail Server
Post by: janet on January 21, 2013, 09:53:15 AM
Bud

Quote
any ideas what i need to look for on the debain server regarding pop3 username to collect mail from their isp and smtp username for sending mail. the isp is using mimecast. not sure what that is. sorry for my ignorance.

A 3 second Google search !
http://en.wikipedia.org/wiki/Mimecast

..another 3 seconds
http://en.wikipedia.org/wiki/Exim

This one took 15 seconds
http://sourceforge.net/projects/courier/
Title: Re: Debian to SME 8 Mail Server
Post by: Bud on January 21, 2013, 12:41:38 PM
mary thanks for the info

yes i know about the links however what i am asking for is the steps to go from a debian mail server to an sme 8 mail server.

i have looked at files in the debian server " /etc/exim4 " and " /etc/courier " however i am not sure what i need to look for that will tell me what the pop3 mailbox(s) ip, usernames and smtp ip and user names etc. information is that i need to configure the sme 8 server with.

ie: would i need to install the " fetchmail " contrib etc. on the sme 8 mail server?

in other words, where do i begin to look for the information on the debian mail server that i need to use on the sme 8 mail server.

any help greatly appreciated  :)
Title: Re: Debian to SME 8 Mail Server
Post by: Stefano on January 21, 2013, 12:49:32 PM
in other words, where do i begin to look for the information on the debian mail server that i need to use on the sme 8 mail server.
any help greatly appreciated  :)

first of all you should ask to the (old) sysadmin

then ask for info in any debian dedicated forum/newsgroup
Title: Re: Debian to SME 8 Mail Server
Post by: Bud on February 01, 2013, 06:58:08 PM
guys hope you can help

the client's network setup is as the following

the clients mail mx points to client.dyndns.org

the old debian server downloads the mail and the users dounload it from the local debian proxy / mail server
eg:

OLD Debian Server ( Domain Name On Debain Server =  client.com )
NB: MX Points to  client.dyndns.org    ( Using DynDNS )

INTERNET
|
ADSL ROUTER (BRIDGE MODE)
|
Debian Proxy and Mail Server ( Exim4 and Courier )  <--->  SWITCH
                                                                                                                                                                                       |
                                                                                                                                                                       Local Users on Lan

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

This is how I am thinking of the NEW SME 8 Server Setup:
I am thinking of installing IPFIRE as a NEW Proxy Server and web content filtering Server for the Client.
NEW SME 8 Setup for email, webmail, ftp etc. ( Domain Name: client.com )
NB: MX still Points to  client.dyndns.org    ( Using DynDNS )

INTERNET
|
ADSL ROUTER (BRIDGE MODE)
|
IPFIRE Proxy Server (192.168.0.10) <---> SWITCH
                                                                                                                                                                           |   
                                                                                                                                   Local Users on Lan  and  SME 8 Server ( Server Mode)

SME 8 Server has 50 User MailBoxes
SME 8 Server Domain Name: client.com
Proxy Server  (IPFIRE)   192.168.0.10  (DHCP 192.168.0.50 - 120 )
SME 8 SERVER (Server Mode) 192.168.0.20
MX Points to  client.dyndns.org  ( Using DynDNS )

Questions:
1. do i need to setup a user name and password in the sme 8 server to download the email via dyndns or will the mail go directly to the user mailboxes on the sme 8 server?
2. will this setup download the mail for the client ?
3. are there any other settings i need to do on the sme 8 server ?
4. the 50 users will be using the sme 8 server for pop3/imap and smtp ?

any help greatly appreciated  :)
Title: Re: Debian to SME 8 Mail Server
Post by: CharlieBrady on February 01, 2013, 09:20:52 PM
1. do i need to setup a user name and password in the sme 8 server to download the email via dyndns or will the mail go directly to the user mailboxes on the sme 8 server?

No. Assuming that your ipfire proxy server communicates with dyndns to ensure that your client's mx record is correct, and your ipfire proxy server forwards port 25 to your SME server, your mail will be passed directly to your sme server. Your mail doesn't transit via dyndns, and your SME server doesn't need to download it.

Quote
2. will this setup download the mail for the client ?

No. Mail servers from all over the Internet will deliver mail directly to your SME server (via SMTP). I presume this is what is already happening with your Debian server.
Title: Re: Debian to SME 8 Mail Server
Post by: Bud on February 05, 2013, 09:44:03 AM
CharlieBrady thanks for your help, much appreciated

well the ipfire proxy server is woking 100% without any problems
ipfire proxy server forwards port 25 to the SME 8 server ( SME IP: 192.168.0.20 )

I have created all the mailboxes for the users on the sme 8 server with the same details as the debain server

so far NO Email has arrived

Questions:
1. On the SME 8 Server admin control panel: " E-Mail > Change e-mail reception settings "
    a. E-mail retrieval mode = multi-drop
    b. SMTP authentication = Allow both SMTP and SSMTP
    c. Secondary mail server = NOT SURE WHAT TO ENTER IN HERE ??
    d. POP user account (for multi-drop) = NOT SURE WHAT TO ENTER IN HERE ??
    e. POP user password (for multi-drop) = ????
    f. Select sort method (for multi-drop) = Default

2. On the SME 8 Server admin control panel: " E-Mail > Change e-mail delivery settings "
    a. E-mail to unknown users = admin
    b. Address of internal mail server = nothing placed in here
    c. Address of Internet provider's mail server = NOT SURE WHAT TO ENTER IN HERE ??
    d. SMTP Authentication for Internet provider = Disabled
    e. Mail server user id = NOT SURE WHAT TO ENTER IN HERE ??
    f. Mail server password = ???

NB: MX Points to  client.dyndns.org    ( Using DynDNS )


Please HELP  :(
Title: Re: Debian to SME 8 Mail Server
Post by: newburns on February 05, 2013, 01:21:46 PM
I have a pretty standard email setup through SME 8.0
My SME server does not retrieve mail from another email server, so I use these standard settings.
EMAIL DELIVERY SETTINGS >>>>>
Email to unknown users: Send to admin (Any email that is sent to a user in your domain which doesn't exist will be forwarded to the admin user)
Address of internal mail server: blank (SME is the mail server)
Address of internet provider's mail server: blank (SME is the mail server)
The remaining are blank or default

EMAIL RECEPTION SETTINGS >>>>>
Email Retrieval mode: Standard (SMTP) (ETRN, from what I understand, is what you use to spool your email, as if you had a secondary email server that would pull email from this queue http://en.wikipedia.org/wiki/Extended_SMTP . Multi-drop I don't understand, but I want SME to be the only mail server, so I chose standard SMTP for the retrieval method)
SMTP Authentication: Allow both SMTP and SSMTP (This allows standard SMTP and Secure SMTP. I had to choose both because I have certificates that causes warnings and errors. I believe a way around that is to sign up with startssl, but they do not accept the domain tld I am using which is .tk)
The rest are blank or default as they do not apply

The other settings are self explantory. If you are using SME as the main email retrieval and sending server, I believe these setting should work. If you are using SME to gather email from another server, or hold email for another server, then someone else would have to chime in.
Title: Re: Debian to SME 8 Mail Server
Post by: janet on February 05, 2013, 03:06:12 PM
Bud

Quote
Questions:
1. On the SME 8 Server admin control panel: " E-Mail > Change e-mail reception settings "

For a mail server that receives mail for a domain, typicically use:
E-mail retrieval mode    Standard (SMTP)
SMTP authentication    Allow both SMTP and SSMTP
   

Quote
2. On the SME 8 Server admin control panel: " E-Mail > Change e-mail delivery settings "


These settings are related to outgoing mail, typically:
E-mail to unknown users    Reject
Address of internal mail server    (blank)
Address of Internet provider's mail server    mail.yourisp.com

Note if you wish your mail server to send mail directly to other mail servers, then this last setting is left blank. If you want your mail to be sent via your ISP's mail server, then enter the ISP's mail server details (eg as shown). This may be necessary where you use a dynamic IP for your Internet connection & therefore other mail servers will not "trust" your mail server & list your server as a spam sourcer & reject all mail from your server.


Quote
NB: MX Points to  client.dyndns.org    ( Using DynDNS )

I am not familiar with that dyndns servce, but usually the MX would point to your mail server domain eg yourdomain.com or your servers external static IP. Note in most cases you do not need an MX record, just configure external DNS records correctly for your domain & SME server will collect mail correctly.
Title: Re: Debian to SME 8 Mail Server
Post by: CharlieBrady on February 05, 2013, 03:11:11 PM
so far NO Email has arrived

So this means one or more of:

- your DNS is wrong
- your ISP is blocking port 25
- your firewall is not forwarding port 25 to your server
- nobody has tried to send you email
- your SME server has the wrong default gateway and cannot communicate with the Internet

Only the last of these is related to SME server software or configuration, and presumably that isn't the problem or you would have told us.

If mail has arrived, and your SME server hasn't accepted that mail, then that will show in your qpsmtpd logs.
Title: Re: Debian to SME 8 Mail Server
Post by: Bud on March 19, 2013, 12:15:37 PM
CharlieBrady thanks for your help

i really appreciate everyone's help on this.

This is what was setup on the debian server to collect mail.
" Mimecast has an inbound delivery route setup to deliver to client.dyndns.org on port 10025. Outbound mail delivery needs to use SMTP authentication. "

How do I do this on the SME 8 Server to Collect mail on port 10025 and deliver the mail to relevant users on the new sme 8 server

NEW SME 8 Server Setup:
IPFIRE Proxy Server and web content filtering Server for the Client.
NEW SME 8 Setup for email, webmail, ftp etc. ( Domain Name: client.com )
NB: MX still Points to  client.dyndns.org    ( Using DynDNS )

                                                                                                                                                         INTERNET
                                                                                                                                                              |
                                                                                                                                            ADSL ROUTER (BRIDGE MODE)
                                                                                                                                                              |
                                                                                                                       IPFIRE Proxy Server (192.168.0.10) <---> SWITCH
                                                                                                                                                                                    |   
                                                                                                                                   Local Users on Lan  and  SME 8 Server ( Server Mode)

Please i need help  :(




Title: Re: Debian to SME 8 Mail Server
Post by: warren on March 19, 2013, 05:08:31 PM
Bud

Check the following article, you should be able to set the port that mimecast will use for in bound delivery :

The article also has a section on testing etc..

http://www.mimecast.com/mc/kb/Mimecast/KBID10429.htm (http://www.mimecast.com/mc/kb/Mimecast/KBID10429.htm)
Title: Re: Debian to SME 8 Mail Server
Post by: CharlieBrady on March 20, 2013, 03:51:56 AM

This is what was setup on the debian server to collect mail.
" Mimecast has an inbound delivery route setup to deliver to client.dyndns.org on port 10025.

Well, that is not so much to collect mail, as to receive mail when somebody else tries to deliver it. With SME server, you just need to ensure that client.dyndns.org is correctly updated, and the portforward port 10025 to self:25.

Quote
Outbound mail delivery needs to use SMTP authentication.

I'm guessing that this has nothing to do with receiving mail, but has to do with delivering outbound mail. Please read the SME server documentation about SmartHost setup.
Title: Re: Debian to SME 8 Mail Server
Post by: Bud on March 20, 2013, 04:23:19 AM
warren thanks for the link.

CharlieBrady thanks again for you support.
When you say " you just need to ensure that client.dyndns.org is correctly updated, and the portforward port 10025 to self:25 "

a. I have setup the Dyndns Update on the Proxy Server and the Updates are functioning ie: i can ping " client.dyndns.org " is there anything else i need to do on the dyndns account ?
b. Port forward " port 10025 to self:25 " ie: on my proxy server are you saying that all i need to do is port forward port 10025 to the SME 8 Server (192.168.0.20) Port 25
    eg: 10025 ----->   192.168.0.20:25

thanks for your support guys i really appreciate it  :smile: