Configuring POSTFIX to use mutiple email accounts

Danny MacMillan flowers at users.sourceforge.net
Thu Jan 6 10:19:10 PST 2005


On Thu, Jan 06, 2005 at 06:57:15AM -0500, Gerard Seibert wrote:
> On Thursday, January 06, 2005 5:52:25 AM Chuck Swiger <cswiger at mac.com> wrote:
> |>Gerard Seibert wrote:
> |>>
> |>> [snip]
> |>>
> |>> I have several email accounts. I use them for newsgroups, forums, etc.
> |>> Most of the accounts use different 'SMTP' and 'POP' settings. However,
> |>> in two cases, they use the same 'SMTP' and 'POP' addresses. I have not
> |>> been able to find any definitive information on how to configure
> |>> 'postfix' to handle this.
> |>
> |>Postfix is an MTA, it doesn't have anything to do with POP.
> |>That's up to a mail client (MUA) like Mozilla or pine.
> 
> OK, I got this information from this URL:
> http://www.ofb.biz/modules.php?name=News&file=article&sid=326
> 
> [snip]
> 
> Therefore, if I have several email addresses that are through different
> ISP's, don't I have to configure POSTFIX fir each of them?

As others have replied, you usually do not need to do this.  The only
exception I can think of is the one I ran into:  If you use a third-
party email service provider (like mail.com, or maybe even your own
company's servers) and they have SPF records in place, you do need to
route outgoing mail for those accounts through the third party's
servers.  If you don't, your mail will probably be marked as spam.

If you use a comprehensive mail client, you can usually specify in the
client which SMTP servers to use for which accounts.  Postfix doesn't
enter the picture in that case.  If you use a mail client that insists
on sending mail through the local MTA (e.g. Postfix), like Mutt does,
you have to perform some hoop-jumpery.

/usr/ports/mail/esmtp will get this to work; there may be others.  It
routes mail to different SMTP servers based on the envelope From
address.  There may be other solutions, e.g. patches to one or another
MTA to allow it to perform this discriminatory routing, but I'm not
aware of any (although I know qmail has a patch to allow it to perform
SMTP authorization when required).

-- 
Danny


More information about the freebsd-questions mailing list