Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pop client for postfix.

39 views
Skip to first unread message

Muhammad Yousuf Khan

unread,
Nov 12, 2012, 3:27:30 AM11/12/12
to
i want to pop emails from a main server which is hosted in US and i
want to pop all the email from all the accounts to our local LAN
accounts in postfix. like the features once available in MailerDeaman.
called "domain pop" and "multipop" so is there any options in
postfix.

Thanks,

Patrick Ben Koetter

unread,
Nov 12, 2012, 3:30:50 AM11/12/12
to
* Muhammad Yousuf Khan <sir...@gmail.com>:
Postfix is an SMTP server. It cannot do POP.

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Joerg Heidrich

Wolfgang Zeikat

unread,
Nov 12, 2012, 3:47:40 AM11/12/12
to
In an older episode, on 2012-11-12 09:27, Muhammad Yousuf Khan wrote:
> i want to pop emails from a main server which is hosted in US and i
> want to pop all the email from all the accounts to our local LAN
> accounts in postfix. like the features once available in MailerDeaman.
> called "domain pop" and "multipop" so is there any options in
> postfix.
>
> Thanks,

Maybe you should take a look at

http://en.wikipedia.org/wiki/Fetchmail

Hope this helps,

wolfgang

Muhammad Yousuf Khan

unread,
Nov 12, 2012, 5:21:01 AM11/12/12
to
i know Postfix is an SMTP and as far as fatchmail concern it is
written in the document that it does not support maildir.

it is written that "By design Fetchmail's only means of delivering
messages is by submitting them to the local MTA; delivering directly
to mail folders such as maildir is not supported."

actually i configured Postfix with maildir + dovecat + sasl for
internal/outside mailing. but due to the reason that our Internet
bandwidth is not high and scalable enough therefore we purchase a mail
hosting solution from a company in US.

but the problem is all of our emails goes to Internet even if they are
intraoffice emails. so i wanted to trim down extra email traffic on
internet and for that reason i am trying to design internal mail
server.

my questions are
------------------------
1. i have to download email from US mailbox via POP and save it down
to postfix Local maildir formate, account vise. so i need to know the
utility for that. because this option is available in exchange
server, mailerdeamon. so i am certain that this would be available for
postfix for maildir formate.

2. my second question is not related to this issue but also a critical one.
actually there are few accounts that are reside in US hosted mail
server which i dont want to pop email in local mail server because
those users are living in US and i dont want there traffic to be
routed to office.

so the problem comes when i send email to a US user who has an account
in US mail server but not in our local office. when email reach our
local server it do not pass it on to internet and then to US mail
server, instead the email return from our local server that "mailbox
not found" which is true infect but what i want is that when email
account not found in local postfix mail server. postfix should route
the email to US mailserver where it probably be reside there and if it
doesn't found eventually it should return the message "mailbox not
found".


Thanks,



On Mon, Nov 12, 2012 at 1:30 PM, Patrick Ben Koetter <p...@sys4.de> wrote:
> * Muhammad Yousuf Khan <sir...@gmail.com>:
>> i want to pop emails from a main server which is hosted in US and i
>> want to pop all the email from all the accounts to our local LAN
>> accounts in postfix. like the features once available in MailerDeaman.
>> called "domain pop" and "multipop" so is there any options in
>> postfix.
>

Robert Schetterer

unread,
Nov 12, 2012, 6:02:02 AM11/12/12
to
Am 12.11.2012 11:21, schrieb Muhammad Yousuf Khan:
> my questions are
> ------------------------
> 1. i have to download email from US mailbox via POP and save it down
> to postfix Local maildir formate, account vise. so i need to know the
> utility for that. because this option is available in exchange
> server, mailerdeamon. so i am certain that this would be available for
> postfix for maildir formate.

forget fetchmail use getmail

http://pyropus.ca/software/getmail/



config like i.e this


[retriever]
type = SimplePOP3Retriever
server = pop.someprovider.tld
username = fa...@someprovider.tld
password = secret

[destination]
type = Maildir
path = ~/Maildir/

Best Regards
MfG Robert Schetterer

/dev/rob0

unread,
Nov 12, 2012, 9:52:43 AM11/12/12
to
On Mon, Nov 12, 2012 at 12:02:02PM +0100, Robert Schetterer wrote:
> Am 12.11.2012 11:21, schrieb Muhammad Yousuf Khan:
> > my questions are
> > ------------------------
> > 1. i have to download email from US mailbox via POP and save it
> > it down to postfix Local maildir formate, account vise. so i need
> > to know the utility for that. because this option is available
> > in exchange server, mailerdeamon. so i am certain that this would
> > be available for postfix for maildir formate.
>
> forget fetchmail use getmail

I'll add my +1 to this comment, and throw in a "why POP3?" question.
Who is your provider, gmail? POP3 should have died out a decade ago.
The replacement is IMAP, and lo and behold, Getmail as well as every
other MUA/MUU supports it fully. It's hard to imagine a significant
mail service which has POP3 but not IMAP service.

Another thing worth mention: Postfix != MSexchange. The latter is a
suite of software which implements (misimplements in many cases, it
seems, although to be fair I think that is more commonly a case of
administrator incompetence) other protocols to present the user with
a complete mail server solution.

Postfix is a MTA (mail transfer agent.) The MTA is just one of many
parts a complete mail server would require. And perhaps you (the OP,
I mean) should discuss your ultimate goal here. From what this and
your other thread showed us, I am doubtful that you want or need a
MTA at all.

> http://pyropus.ca/software/getmail/
>
>
>
> config like i.e this
>
>
> [retriever]
> type = SimplePOP3Retriever

P.S.: Getmail also supports TLS/SSL. :)
--
http://rob0.nodns4.us/ -- system administration and consulting
Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

John Hinton

unread,
Nov 12, 2012, 11:55:19 AM11/12/12
to
A really good use for POP is for more sensitive email situations, such
as legal, medical or financial. Some of our users want it 'off' the
server soonest. But yes, IMAP is more the standard these days. We allow
either using Dovecot. POP is faster, after a mailbox gets large. POP
reduces online storage use and is easier to back up. There are
advantages for some users and all administrators. So, to me, long live
POP but we do encourage our users to set up their accounts using IMAP.

--
John Hinton
877-777-1407 ext 502
http://www.ew3d.com
Comprehensive Online Solutions

/dev/rob0

unread,
Nov 12, 2012, 12:23:47 PM11/12/12
to
On Mon, Nov 12, 2012 at 11:55:19AM -0500, John Hinton wrote:
> On 11/12/2012 9:52 AM, /dev/rob0 wrote:
> >On Mon, Nov 12, 2012 at 12:02:02PM +0100, Robert Schetterer wrote:
> >>Am 12.11.2012 11:21, schrieb Muhammad Yousuf Khan:
> >>>1. i have to download email from US mailbox via POP and save it
> >>>it down to postfix Local maildir formate, account vise. so i need

> >>forget fetchmail use getmail

> >I'll add my +1 to this comment, and throw in a "why POP3?"
> >question. Who is your provider, gmail? POP3 should have died out
> >a decade ago. The replacement is IMAP, and lo and behold, Getmail
> >as well as every other MUA/MUU supports it fully. It's hard to
> >imagine a significant mail service which has POP3 but not IMAP
> >service.
> >
> A really good use for POP is for more sensitive email situations,
> such as legal, medical or financial. Some of our users want it
> 'off' the server soonest. But yes, IMAP is more the standard these
> days. We allow either using Dovecot. POP is faster, after a mailbox
> gets large. POP reduces online storage use and is easier to back
> up. There are advantages for some users and all administrators.

I don't believe any of that. IMAP can do pull-and-delete just as
POP3 can, and performance-wise, I suspect it would be far better,
especially in Dovecot. So I'll stick with my "POP3 should have died
out" comment.

I have one mail account (the GMX one) where I use getmail with IMAP
and TLS to pull-and-delete. All the rest of my mail is left on the
server and handled "the IMAP way."

If anyone is interested in exploring this, it should be done on the
Dovecot list, of course. Personally I am not motivated enough to
perform any tests, but I wouldn't be surprised if Timo already has
tested.

> So to me, long live POP but we do encourage our users to set up
> their accounts using IMAP.
--

Muhammad Yousuf Khan

unread,
Nov 13, 2012, 1:54:46 AM11/13/12
to
On Mon, Nov 12, 2012 at 7:52 PM, /dev/rob0 <ro...@gmx.co.uk> wrote:
> On Mon, Nov 12, 2012 at 12:02:02PM +0100, Robert Schetterer wrote:
>> Am 12.11.2012 11:21, schrieb Muhammad Yousuf Khan:
>> > my questions are
>> > ------------------------
>> > 1. i have to download email from US mailbox via POP and save it
>> > it down to postfix Local maildir formate, account vise. so i need
>> > to know the utility for that. because this option is available
>> > in exchange server, mailerdeamon. so i am certain that this would
>> > be available for postfix for maildir formate.
>>
>> forget fetchmail use getmail
>
> I'll add my +1 to this comment, and throw in a "why POP3?" question.
> Who is your provider, gmail? POP3 should have died out a decade ago.
> The replacement is IMAP, and lo and behold, Getmail as well as every
> other MUA/MUU supports it fully. It's hard to imagine a significant
> mail service which has POP3 but not IMAP service.
>
> Another thing worth mention: Postfix != MSexchange. The latter is a
> suite of software which implements (misimplements in many cases, it
> seems, although to be fair I think that is more commonly a case of
> administrator incompetence) other protocols to present the user with
> a complete mail server solution.
>
> Postfix is a MTA (mail transfer agent.) The MTA is just one of many
> parts a complete mail server would require. And perhaps you (the OP,
> I mean) should discuss your ultimate goal here. From what this and
> your other thread showed us, I am doubtful that you want or need a
> MTA at all.

Actually what i need is not MTA you are correct but i knowo that
combining postfix with extra addons like dovecat, spamassasin etc. we
can make it more secure and reliable then other microsoft base
platforms. here is the scenario and goals that i want to achieve.

we already have 1 mail server hosted in US. now the problem is even if
we have to send local emails it has to reach our US mail server which
means extra bandwidth and as our users are growing i need to find a
better solution to trim down extra email traffic. and for my learning
i select postfix and a whole solution. we do have other solutions like
citadel and zimbra but they are limited secondly they are very heavy
on resources.

so my goals are.

1. Local storage of emails, so none of the emails go to internet or US
mail serer for inside communication
2. i need to provide imap facility to all the users for connecting
from there smartphones and laptops.
3. want to multipop (mailerdemaon terminoligy to sync mailboxes) email
to sync mail boxes in US and my local server.

4. some of the users still use US mail server. therefore email for
same domain (but users who are not present in local mailserver) shell
be sent to US office.

5. spam filter. virus scan.

6. backup and restore. i do have an option of backing up email by
backup the whole Virtual machine. however if i can find a utility
which can backup whole setting with out problem would be more helpful.


after my research i found out that what i am planning is possible.
here is the document but the problem is there howto is based on MySQL
but what i need is maildir setup.

http://workaround.org/ispmail/squeeze

Thanks,






>
>> http://pyropus.ca/software/getmail/
>>
>>
>>
>> config like i.e this
>>
>>
>> [retriever]
>> type = SimplePOP3Retriever
>
> P.S.: Getmail also supports TLS/SSL. :)

Robert Schetterer

unread,
Nov 13, 2012, 3:37:33 AM11/13/12
to
Am 13.11.2012 07:54, schrieb Muhammad Yousuf Khan:
> 1. Local storage of emails, so none of the emails go to internet or US
> mail serer for inside communication

thats a typical multi office inside mailserver

> 2. i need to provide imap facility to all the users for connecting
> from there smartphones and laptops.

not very much difference to normal mail clients if in imap mode

> 3. want to multipop (mailerdemaon terminoligy to sync mailboxes) email
> to sync mail boxes in US and my local server.

syncing is not always the best solution, that depends on many factors

>
> 4. some of the users still use US mail server. therefore email for
> same domain (but users who are not present in local mailserver) shell
> be sent to US office.
>

yeah ,but where is the question ?

> 5. spam filter. virus scan.

no real problem, thats state of the art

>
> 6. backup and restore. i do have an option of backing up email by
> backup the whole Virtual machine. however if i can find a utility
> which can backup whole setting with out problem would be more helpful.

virtual machines have lots of benefits, but its also an additional
bug layer, depends on your whole layout if you choose it
sometimes it makes not real sense with mail

mailbox backup with maildir is easy using i.e rsync snapshot
if you need copy from every mail configure a mail archive

i dont see any hard problems with what you want , but you should consult
some postfix/dovecot professional which design may best fit to your
needs in whole, cause there are too many ways you can go these days,
this is simply too much for advice on public lists

Mikael Bak

unread,
Nov 13, 2012, 12:09:15 PM11/13/12
to
On 11/12/2012 05:55 PM, John Hinton wrote:
> A really good use for POP is for more sensitive email situations, such
> as legal, medical or financial. Some of our users want it 'off' the
> server soonest. But yes, IMAP is more the standard these days. We allow
> either using Dovecot. POP is faster, after a mailbox gets large. POP
> reduces online storage use and is easier to back up. There are
> advantages for some users and all administrators. So, to me, long live
> POP but we do encourage our users to set up their accounts using IMAP.
>

If the information in an email is sensible, then it should be encrypted.
If sensible information is transfered unencrypted then stored for a
while unencrypted on a server storage, then you can't really know who
has had access to it, can you?

Cheers,
Mikael

0 new messages