setup postfix as a dumb mail forwarder
Sunday, October 7th, 2007
In my Ubuntu box, I find it useful to run postfix in my computer and send my mail using localhost as SMTP instead of directly connecting to my ISP's SMTP servers. This way, large mail messages are rapidly delivered from Thunderbird to the local SMTP, and then the local SMTP relays the mail to the real SMTP (which takes longer but that's ok since I don't have to wait).
One easy way to do so is to install postfix as a Satellite System. The means that postfix will relay all outgoing mail to another SMTP server (usually provided by your ISP). First install postfix in your computer:
Eventually you will be presented a screen in which you have to configure postfix. First you will be asked to choose General type of mail configuration. Choose Satellite System.
Then you will be asked for System mail name. You may enter your ISP's domain name here, but since you are going to set up postfix for outgoing mail relay only, it is safe just to leave your host's name.
Next you will be asked to enter SMTP relay host. At this point you specify the host that all your outgoing mail will be relayed to. This is the SMTP server provided by your ISP. Make sure you don't misspell the host's name.
Once finished with the configuration of postfix, your local SMTP should be up and running and waiting for connections. Now go to your mail application (preferably Mozilla Thunderbird) and configure your mail account to use localhost as your outgoing mail server.
Please note that if you have been using secure connections (like TLS or SSL) between your computer and your ISP's SMTP server so far, you will have to do some extra work to establish secure connectivity between your local postfix and your ISP's SMTP server.
One easy way to do so is to install postfix as a Satellite System. The means that postfix will relay all outgoing mail to another SMTP server (usually provided by your ISP). First install postfix in your computer:
apt-get install postfixEventually you will be presented a screen in which you have to configure postfix. First you will be asked to choose General type of mail configuration. Choose Satellite System.
Then you will be asked for System mail name. You may enter your ISP's domain name here, but since you are going to set up postfix for outgoing mail relay only, it is safe just to leave your host's name.
Next you will be asked to enter SMTP relay host. At this point you specify the host that all your outgoing mail will be relayed to. This is the SMTP server provided by your ISP. Make sure you don't misspell the host's name.
Once finished with the configuration of postfix, your local SMTP should be up and running and waiting for connections. Now go to your mail application (preferably Mozilla Thunderbird) and configure your mail account to use localhost as your outgoing mail server.
Please note that if you have been using secure connections (like TLS or SSL) between your computer and your ISP's SMTP server so far, you will have to do some extra work to establish secure connectivity between your local postfix and your ISP's SMTP server.
