On Tue, 23 Sep 2008 02:03:50 +0300 Andrei Popescu <[EMAIL PROTECTED]> wrote:
> On Mon, 22 Sep 2008 23:34:46 +0100 Jamie Griffin wrote: > > > > > > I am running a postfix smtp server. The school does not > > > > > object to mail coming in directly but want all ougoing mail > > > > > to go through the school mailserver. > > > > > > > > > > How do I configure to accomplish this? > > > > You need to set the variable > > > > 'relayhost = [nameofsmarthostserver.tld]' in you main.cf file. > > > > Then create the file /etc/postfix/sasl/sasl_passwd; so, > > > > `cd /etc/postfix/sasl` > > `touch sasl_passwd` > > > > > > inside that file specify the relayhost details again: > > > > [nameofsmarthostserver.tld] username:password > > > > obviously use your own login credentials for the remote server > > there. > > From what I recall it's also necessary to tell postfix to use SASL > and where to look for those credentials: > > in main.cf: > > smtp_sasl_auth_enable = yes > smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd > > and 'postmap /etc/postfix/sasl/sasl_passwd' But this is AFAIK only needed if you use a smarthost with login data. For open relays it's not needed (but I'm not sure whether a open relay is a good idea in general) Frank -- Frank Lanitz <[EMAIL PROTECTED]>
pgpicooZhfYM2.pgp
Description: PGP signature