Complete GO Smarthost Mailserver Solution

Having trouble installing Group-Office? No worries. Help is on the way.

Moderator: Developers

peter_stirnberg
Posts: 263
Joined: Tue Dec 13, 2005 7:57 am

Complete GO Smarthost Mailserver Solution

Postby peter_stirnberg » Sat Oct 26, 2013 12:08 pm

Hi there,

i found it very difficult setting up the GO Mailserver as a Smarthost. Maybe you find this usefull.
Best regards
Peter


Configure Group-Office as Smart Host
----------------------------------------------------------------------------
- Prerequisits

1) Install Ubuntu Server 12.04 LTS
2) Configure Ubuntu as minimal system only with OpenSSH Server
3) Edit /etc/network/interfaces (you need address, netmask, gateway and dns-nameservers parameter)
4) Reboot
5) apt-get update
6) apt-get upgrade
7) Insert GO gpg-keys
8) Edit /etc/apt/sources.list to include the GO repos

As of now, this a good moment to make a snapshot if you’re doing this in a virtual machine and considere the next steps. We need to know:

- the FQDN of the GO-machine in the internal net. Lets assume it’s mta.intern.lan
- the FQDN of the outside relay host which we will use for sending mail into the real world, e. g. mta.outside.com. This is the name of the SMTP Server - this is not neccessarily the same name as in the eMail account but the MX for your domain.

and for testing purposes:

- at least one account on mta.outside.com, let’s say me@outside.com
- for sure one account for GO: me@intern.lan


- Installing GO

1) apt-get update
2) apt-get install groupoffice-com
3) apt-get install groupoffice-mailserver postfix postfix-mysql dovecot-mysql dovecot-sieve dovecot-managesieved

- Configure Mailserver (important)

1) Select ‘Smart/Relay Host’ when asked during postfix config
2) System eMail name is mta.intern.lan
3) SMTP-Relay: leave blank
4) eMail Domain-Name: outside.com

- Check some settings

1) Make sure that /home/groupoffice/key.txt belongs to www-data:www-data and has permissions 0400
2) If wanted set the verify password vaiable in /etc/groupoffice/config.php to ‘false’
3) touch /etc/postfix/transport and edit:
intern.lan : # the blank is important
* mta.outside.com
4) postmap transport
5) edit /etc/postfix/main.cf
relayhost = mta.outside.com
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
6) touch and edit /etc/postfix/smtp_auth
# We need at least the credentials of one valid account on mta.outside.com to put into smtp_auth which authenticates us when sending mail via relaying:
mta.outside.com valid_account@mta.outside.com
postmap smtp_auth
7) postfix reload && service postfix restart

-GO config

1) Add a user
2) Login as this user
3) Configure Mail (Administration Mail Account)
eMail = me@outside.com
Incoming Server = localhost / me@intern.lan / Pass
Outgoing Server = localhost / no auth / Port 25

- Fetchmail (we like to get our outside mail)

1) apt-get install fetchmail
2) edit /etc/default/fetchmail and set ‘start daemon = yes’
3) edit/create /etc/fetchmailrc
# general settings
set daemon 300 # polls every 5 minutes
set syslog # logs into syslog but also to mail.log
set postmaster root
sot no bouncemail

# account settings
poll mta.outside.com protocol IMAP user „user@outside.com“ there with password „userpass“ is user@intern.lan here keep ssl

# repeat this for every user you like to import. If you don’t use the ‘keep’ parameter mail will be deleted on outside.com after fetched.

4) service fetchmail restart

That’s all folks.
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: Complete GO Smarthost Mailserver Solution

Postby mschering » Mon Oct 28, 2013 7:20 am

Thanks for sharing!

Some comments:

1. Beware that you're also enabling SMTP authentication on this howto.
2. You don't necessarily need to add a fetchmail poll rule for each account. You can use a wildcard too. See https://www.group-office.com/wiki/Use_P ... l_delivery
Best regards,

Merijn Schering
Intermesh
peter_stirnberg
Posts: 263
Joined: Tue Dec 13, 2005 7:57 am

Re: Complete GO Smarthost Mailserver Solution

Postby peter_stirnberg » Mon Oct 28, 2013 11:02 am

Thanks for commenting. There are some errors which I (hopefully) corrected now and marked them red. I tested this today on a virtual machine and it worked. I attached the compete HowTo as pdf.

- Configure Mailserver (important)
2) System eMail name is outside.com
3) SMTP-Relay: mta.outside.com
4) eMail Domain-Name: intern.lan


- Check some settings
3) edit /etc/postfix/transport:
intern.lan : # the blank is important
* smtp:mta.outside.com
5) edit /etc/postfix/main.cf
comment out: myhostname and mydestination
6) touch /etc/postfix/smtp_auth
We need at least the credentials of one valid account on mta.outside.com to put into smtp_auth which authenti cates us when sending mail via relaying:
mta.outside.com valid_account@ outside.com:password
8) In /etc/groupoffice/config.php check -> ($config['serverclient_domains']="intern.lan";) and admin email domain iss et to intern.lan
9) Enable SMTP authentication if you like to connect with eMail clients like Thunderbird, Apple Mail or Out-look


- Fetchmail (we like to get our outside mail)
# account settings (use catchall as described in HowTo if you wish)
Attachments
GO Config as Smarthost.pdf
Smarthost HowTo
(62.98 KiB) Downloaded 443 times
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: Complete GO Smarthost Mailserver Solution

Postby mschering » Mon Oct 28, 2013 3:42 pm

Thanks, great howto.
Best regards,



Merijn Schering

Intermesh
dustundag
Posts: 5
Joined: Tue Apr 17, 2012 2:24 pm

Re: Complete GO Smarthost Mailserver Solution

Postby dustundag » Mon Nov 04, 2013 10:35 pm

I use virtualmin for email setup and then groupoffice install as most staight forward application.

Return to “Installation”

Who is online

Users browsing this forum: No registered users and 1 guest

cron