Solved

Postfix Gateway

Posted on 2009-05-19
4
933 Views
Last Modified: 2013-11-29
We need to setup a mail gateway (not sure if this is the right term for what I need) so that we can retrieve emails from the ISP email server (preferably via POP) and then distribute it to clients in the office (preferably IMAP).

The criteria are:
1. Gateway must retrieve all emails from ISP mail server so we wont have space issues
2. Gateway must keep all emails from ISP (Inbox) for archieve
3. Gateway must keep all outgoing emails (sent) for archieve
4. It is preferable that we can forward all these emails also (#3, and #4) to an archieve email. say: archieve@company.com
5. The ISP mail server allow us to send email via web interface, but by doing so, we will not have an archive of the sent emails. So I think a solution is to use the gateway as the web-mail server and so it should keep the incoming & outgoing messages no matter where it is sent from
6. Preferably, it can be accessed from cell phones (symbian?) and blackberries.
7. Also, it would be great if we can have a web based interface for management (i.e, dont have to use hardcode/script to add users, etc)
8. Integrated spam & virus control

Can you please help me with this? A link to a step by step guide would be great, but it would have to be exact. (I've found a number of tutorials that seems to do what I want, but they will have to be combined, and I dont know how to do that).

I have a very basic understanding of ubuntu & postfix. so I prefer to work using this two softwares. By basic I mean I would probably be okay following an exact step by step commands but not figuring out how to do a general task
0
Comment
Question by:SW111
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:MCode151
ID: 24454523
Well either Fetchmail + Postfix + Roundcube, + Cyrus + ClamAV + SpamAssassin + LDAP, etc, etc; or just use one that's already done the bundle work for you, like Zimbra Collaboration Suite.

They have a free Open Source Edition (as well as paid Network Edition); both use Postfix as the MTA.

> 1. Gateway must retrieve all emails from ISP mail server so we wont have space issues
You can add IMAP or POP external aggregation accounts.
Then use fetchmail or Zimbra's built in polling. In 5.x you have to manually enable: http://www.zimbra.com/forums/administrators/19613-solved-automatic-imap-pop-retrieval.html#post97880 (automatic in upcoming 6.x)

> 2. Gateway must keep all emails from ISP (Inbox) for archieve
> 3. Gateway must keep all outgoing emails (sent) for archieve
> 4. It is preferable that we can forward all these emails also (#3, and #4) to an archieve email. say: archieve@company.com
There's several archive solutions possible, always_bcc (or individual sender_bcc & recipient_bcc) in postfix is easy, they have an additional feature called Legal Intercept, or there's the Zimbra Archiving & Discovery add-on (paid).

> 5. The ISP mail server allow us to send email via web interface, but by doing so, we will not have an archive of the sent emails. So I think a solution is to use the gateway as the web-mail server and so it should keep the incoming & outgoing messages no matter where it is sent from
Their AJAX web-client rocks (there's a quick HTML based client one too. (And you can use their desktop client as well which syncs everything automatically.

> 6. Preferably, it can be accessed from cell phones (symbian?) and blackberries.
Has several mobile web-client variants bundled, as well as push ActiveSync (paid) & Blackberry (paid).

> 7. Also, it would be great if we can have a web based interface for management (i.e, dont have to use hardcode/script to add users, etc)
Their admin console is just https://server:7071

> 8. Integrated spam & virus control
Bundled ClamAV, Amavisd, SpamAssassin

http://www.zimbra.com/community/downloads.html 
(Has 32 and 64-bit builds for Ubuntu 8.04 LTS - not 8.10 or 9.04, 8.04 for a reason.)
0
 

Author Comment

by:SW111
ID: 24456741
Thank you for your help MCode151.

A few questions:

1. In this setup, is postfix setup as gateway or a mail server?
2. What to fill in mydestination & mynetwork
3. on point#5:Their AJAX web-client rocks (there's a quick HTML based client one too. (And you can use their desktop client as well which syncs everything automatically.
I dont quite understand. Did you mean my ISP has to install AJAX, etc? Or can I do that on my side since the postfix (gateway?) has downloaded all the mails from the server?

With Thanks
0
 
LVL 5

Accepted Solution

by:
MCode151 earned 500 total points
ID: 24458463
What your requiring is really more than just gateway - your accessing the mails on this box, to quote your first post: "I think a solution is to use the gateway as the web-mail server" Your requirement list is essentially needing a full blown mail server that fetches and stores - the term gateway usually means 'pass the item on again'.

You have 2 choices, to send outgoing mail via the Zimbra server (make sure it has dns/spf records, and possibly even a high mx, so that's it's not treated as a fake/spammer)
OR relay mail through the ISP for outgoing. If it requires user/pass: http://wiki.zimbra.com/index.php?title=Outgoing_SMTP_Authentication

If you trust the remote ISP machine to submit to your server, there's the mynetwork setting, which zimbra 'exposes' as http://wiki.zimbra.com/index.php?title=ZimbraMtaMyNetworks (You can directly set mynetworks it in postconf /.cf files, but the idea is to port it to LDAP so that it's saved during upgrades.)

No need to set mydestination, Zimbra takes care of that for any domains you provision. You can even receive for just some users and pass on others http://wiki.zimbra.com/index.php?title=Split_Domain (infact, you'll have to decide if you want to set the transport to the ISP, then pull mail back down via their email aggregation. OR (what I would do) is just leave transport alone, so that localmail does not even hit the ISP - faster delivery that way / your just using the ISP for external incoming mail.

Zimbra has several built in web-clients see http://www.zimbra.com/products/hosted_demo.php
0
 

Author Closing Comment

by:SW111
ID: 31582984
Thanks MCode151. You were spot on. I wasnt so sure that I'm supposed to set it up as gateway or as a normal mail server. It seemed rather redundant since my ISP already has an email server, and I'm not quite sure how to retrieve the emails from the ISP to my own email server. (It's not like I can set POP as on a client, or can I?)

Anyhow, this is definitely the starting point I needed.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nearly six years ago I was hired by a company to be their senior server engineer. One of my first projects was to implement Exchange Server 2007 on a Windows Server 2008 Single Copy Cluster for high availability. That was the easy part; read on to l…
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question