I have apache and php installed on a Suse linux machine and I need to make sendmail point to a different smtp server but I’m not sure how to. I tried looking for the file /etc/mail/sendmail.mc but couldn’t find there or anywhere on the filesystem. There’s a directory /etc/postfix and in there contain many files such as main.cf, master.cf, etc. Would those files be the file to edit to have sendmail point to a certain smtp server? Can someone give some input on how to do this?
Hi
Postfix is the default now, so main.cf is the one. I suggest though you
use YaST MTA to configure as this should (in theory) respect your
changes if there are updates to postfix. Else you will need to keep a
backup to restore on a postfix update.
–
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 1 day 15:00, 3 users, load average: 0.20, 0.08, 0.07
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18
If I edit the main.cf, which variable should I edit? Should I restart postfix after that? Also if I use YaST MTA, how do I do that? I haven’t use YaST MTA before.
However you should just be able to add the relayhost in main.cf. Here
is the comments in that section.
# INTERNET OR INTRANET
# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport
parameter.
–
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 1 day 15:42, 3 users, load average: 0.30, 0.18, 0.11
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18