Solved

Postfix Gateway

Posted on 2009-05-19
4
919 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
Easy CSR creation in Exchange 2007,2010 and 2013
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
To show how to generate a certificate request 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 Servers >> Certificates…

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now