[Techtalk] Mutt/Postfix/SMTP

Magni Onsoien magnio+lc-techtalk at pvv.ntnu.no
Tue Sep 23 09:42:41 EST 2003


On Tue, Sep 23, 2003 at 02:58:57AM -0400, Erinn said:

> I receive (and send) mail from two domains. One is through my hosting
> company, the other my ISP. As far as I can tell, there is no way to
> really set this up. I have fetchmail setup to receive mail from both
> domains (lets say mail.example1.com and mail.example2.com)
> 
> Is there any way I can specify that I'd like to send mail via both of
> these domains or should I just use Mutt to more or less forge the From:
> header so that it appears I sent mail from one address when it's
> actually going through a different server? Is that even possible?

There should be no need to use two servers for OUTGOING mail (unless
your ISP is clueless or has a very strict or loose policy on who can
send mail through their servers). I would (and actually do) use my ISP's
SMTP-server (SMTP-relay) for outgoing mail. Your ISP should accept mail
from your computer no matter what domain you are using as from-address,
as long as your IP-address is within the ISP's accepted range.

Receiving mail (i.e., INCOMING mail) is an entirely different matter,
and you don't have to use the same server or ISP for receiving mail as
for sending. You simply set up fetchmail to fetch mail from both servers (via
the POP3-protocol), and then set up postfix to send outgoing mail
through your ISP.

This may be confusing, but just differ between receiving and sending
mail, and you should be able to handle it. I would configure postfix to
only receive mail from localhost (fetchmail will deliver to localhost),
not from remote servers (to make sure you don't end up as a spam relay),
and deliver outgoing mail to your ISP's smtp relay (i.e. the regular
smtp server of the ISP).

Hope some of this was helpful!



Magni :)
-- 
sash is very good for you.


More information about the Techtalk mailing list