Configuring POSTFIX to use mutiple email accounts

Gerard Seibert gerard-seibert at rcn.com
Thu Jan 6 03:57:14 PST 2005


On Thursday, January 06, 2005 5:52:25 AM Chuck Swiger <cswiger at mac.com> wrote:

|>Gerard Seibert wrote:
|>> I am trying to solicit some information on how to configure 'postfix'
|>> to accommodate multiple IP addresses.
|>
|>Postfix normally performs MX lookups via DNS to figure out where to send mail, 
|>although you can override that for specific cases via a transport table.
|>
|>> 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.
|>
|>-- 
|>-Chuck


********** Reply Separator **********
Thursday, January 06, 2005 6:51:02 AM

OK, I got this information from this URL:
http://www.ofb.biz/modules.php?name=News&file=article&sid=326

=============================================================

THE MTA: POSTFIX
We've already done a few things to make sure Postfix runs for us
internally, but not to make it work with the Internet. Here's where
Postfix shines as being simple to setup: you need to change only one
thing to make it work "out of the box."

It's been my experience that whatever configuration you get when you
install Postfix is ready to go, but it needs only to know the name of
your ISP's mail server. You see, Postfix is a mail server on your
machine, and it speaks the same language as almost every other mail
server out there on the Internet. Unless your ISP does really weird
things, it should quite willingly accept your outgoing mail just like
it came from within their own internal mail system in their office.

Login as root, and navigate to /usr/local/etc/postfix. Open the file
named main.cf with your favorite editor. A good editor will allow the
display of a line number for each line of text, either in the right
margin or somewhere in the display. Go down to about line 310, where
you should see this:

#relayhost = $mydomain
#relayhost = gateway.my.domain
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

These lines are examples that you can copy, but the hashmark (#) at the
front of each one prevents Postfix from reading those lines as
something it needs to use. The second one is your model for most dialup
connections. Your ISP should be able to tell you the specific name of
the computer that handles mail on their system. Most of them use
"mail.something.com" or a similar name. Recall from the installation
tutorial that this is the usual nomencalture for giving a computer an
identifiable name for the Internet. At any rate, whatever your ISP
tells you is what goes here. If they just give you an IP number, you
can use that, too, by using the last line as your model. Just replace
the letters with the digits. For now, all IP addresses are a series of
numbers divided into four sections by periods or dots.

It's probably a good idea for your own sake to simply add a new line
below these four, but without the hash mark. Save the file. Then close
it, and at the command line type:

postfix reload

=============================================================

Therefore, if I have several email addresses that are through different
ISP's, don't I have to configure POSTFIX fir each of them?

Thanks for your assistance. I am really new ( as if you could not guess )
at setting up a mail system.


More information about the freebsd-questions mailing list