![](https://seccdn.libravatar.org/avatar/4380f8af3f24b864248651cab2fea673.jpg?s=120&d=mm&r=g)
Hi, SuSEconfig is a nice and clean solution only if you are in SuSE. I think it's also good to know the "bad way" which can be used everywhere ;) Martin
* Martin Mielke;
on 12 Feb, 2004 wrote: Hi again,
It's set up to relay, I can do it from windows with netmailbot specifying -server 1.2.3.4 and it works, but can't work out how to tell Linux to use a specific server.
Pete.
Install a MTA such as Postfix and configure it to point to your SMTP server. The way to do it: edit /etc/postfix/main.cf and change/add 'relayhost = x.x.x.x' to the correct IP address or hostname (see comments on file).
I would suggest rather then blindly editing /etc/postfix.main.cf use what the system provides in /etc/sysconfig/postfix and then call SuSEconfig --module postfix
# Should we use a mailrelay? # NOTE: ALL mail that is not considered to be my destination # (POSTFIX_LOCALDOMAINS), will be sent to this host. # If this host is not your MX, then you have to use [square brackets] # around the hostname, e.g. [relay.suse.de] # You may also specify an alternate port number, e.g. # relay.suse.de:26 or [relay.suse.de:26] to prevent MX lookups. # POSTFIX_RELAYHOST=""
By the way any parameter you can add, change in /etc/postfix/main.cf is doable via /etc/sysconfig/postfix
--
Togan Muftuoglu | Unofficial SuSE FAQ Maintainer | Please reply to the list; http://susefaq.sf.net | Please don't put me in TO/CC.