Postfix configuration from the Mutt and the Fetchmail configurations

Hi all,

On my OpenSUSE 12.3 box I use Fetchmail to poll mail from my web-hotel, and the MUA I use is Mutt](http://www.mutt.org) which also sends my emails directly to the SMTP server at my ISP.

So how can I use configurations of those applications to configure a Postfix server to do the poll from my web-hotel and to process the outgoing mail?

I know there are a lot of how-tos and configuration examples at postfix.org and elsewhere but my technical English is poor and I am not sure I understand the technical terms correct. So I hope someone will post a “Convert from Fetchmail and Mutt to Postfix configuration for dummies”. That way I’ll get a solid start in learning Postfix.

Thanks,

Chris

On 2013-09-10 10:26, ChristianHunter wrote:
>
> Hi all,
>
>
> On my -OpenSUSE 12.3- box I use -Fetchmail- to poll mail from my
> web-hotel, and the MUA I use is ‘-Mutt-’ (http://www.mutt.org) which
> also sends my emails directly to the SMTP server at my ISP.
>
> So how can I use configurations of those applications to configure a
> -Postfix- server to do the poll from my web-hotel and to process the
> outgoing mail
?

Poll? Postfix sends email, does not do any “polling”, AFAIK. Can you
explain more what you need?

Normally you use fetchmail to “poll” for your email, and postfix to send
your new email.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Thanks a lot, Carlos, that explains great many things.

So always some other server, Fetchmail, or a MUA kind of sends the email to Postfix, at Postfix then redistributes the email? And therefore I still need Fetchmail?

So what I need is:

  • Fetchmail to poll from my web-hotel (as it does already).
  • Fetchmail to put these emails somewhere where Postfix will find them. And to notify Postfix?
  • Postfix redistributing each email according to the addresses to different users (mailboxes) at my OpenSUSE box and to different directories in those mailboxes. (The addresses might not be like user@thedomainethat.ismine and user will have more addresses at thedomainethat.ismine.)
  • Mutt to put outgoing email somewhere where Postfix will find it. And to notify Postfix?
  • Postfix to relay (is that the right expression) those emails to the SMTP server at my ISP.

Saludos,

Chris

On 2013-09-10 14:36, ChristianHunter wrote:
>
> Thanks a lot, Carlos, that explains great many things.
>
> So always some other server, Fetchmail, or a MUA kind of sends the email
> to Postfix, at Postfix then redistributes the email? And therefore I
> still need Fetchmail?

Yes, you need it - unless you setup a dedicated internet mail server,
with a fixed IP and a domain name. Not an easy task, many mails will be
rejected by other servers.

> So what I need is:
>
> - Fetchmail to poll from my web-hotel (as it does already).

Yes.

> - Fetchmail to put these emails somewhere where Postfix will find
> them. And to notify Postfix?

Actually, fetchmail “talks” with postfix to give it the email it just
retrieved.


poll internet.imap.or.pop.server proto imap, and tracepolls
user "somebody", with password "PASS", is localname here

This does it.

> - Postfix redistributing each email according to the addresses to
> different users (mailboxes) at my OpenSUSE box and to different
> directories in those mailboxes. (The addresses might not be like
> user@thedomainethat.ismine and user will have more addresses at
> thedomainethat.ismine.)

Er… postfix handles email according to its own rules and destination
and origin of the email. Being a local mail target, it just puts the
email in a single file under “/var/mail/localname” (an mbox file).

It can behave differently. It can use a maildir destination. Or it can
give the email to a local delivery agent (LDA), like procmail. Or to a
local IMAP server, like dovecot. These may have their own rules to put
email in different folders.

It can also add filtering, like antispam.

> - Mutt to put outgoing email somewhere where Postfix will find it. And
> to notify Postfix?

It “talks” with postfix to give it the email.

> - Postfix to relay (is that the right expression) those emails to the
> SMTP server at my ISP.

Right.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Thanks, Carlos, I’ll look into it and remember you in my evening prayer.

All the best,

Chris