SuSE Linux: Versions 6.3 to 7.3
Configuration:
The configuration is located in the directory /etc/mail
and in the file /etc/rc.config.d/sendmail.rc.config
.
Settings in /etc/rc.config
:
SMTP="yes"
FROM_HEADER="provider.com"
Settings in /etc/rc.config.d/sendmail.rc.config
:
SENDMAIL_SMARTHOST="mail.provider.com"
SENDMAIL_LOCALHOST="localhost your.computer.name"
SENDMAIL_RELAY=""
SENDMAIL_ARGS="-bd -om"
SENDMAIL_EXPENSIVE="yes"
SENDMAIL_NOCANONIFY="yes"
/etc/hosts
.
SENDMAIL_NODNS="no"
SENDMAIL_DIALUP="no"
sendmail -q
.
SENDMAIL_GENERICS_DOMAIN="your.host.name"
genericstable
.pine
and the genericstable
, you have to
insert your local host name here in order to make the address conversion work.
SENDMAIL_TYPE="yes"
MASQUERADE_DOMAINS="mydomain1 mydomain2"
/etc/rc.config.d/sendmail.rc.config
from Sendmail 8.11.0 on:SENDMAIL_LOCALHOST
) are usually masked with
FROM_HEADER
.
If your e-mail address with your provider is the same as in your local system, all necessary
settings are now complete.
Accordingly, after executing SuSEconfig
and restarting sendmail
,
you can send your e-mail messages through your provider with sendmail -q
:
rcsendmail reload
/etc/mail/genericstable
:
If you have different user names, you need to modify the file /etc/mail/genericstable
.
This file is responsible for rewriting e-mail addresses during the transmission.
The entry should look like this:
localusername mailaddress@provider.comAfter modifying this file, please execute
SuSEconfig
or the following command:makemap hash /etc/mail/genericstable.db < /etc/mail/genericstable
Some mail programs such as pine
offer the same functionalities as genericstable
.
However, the procedure with genericstable
provides a configuration that is independent from
the mail client.
Remarks:
If you want that your e-mail is always sent automatically, please create a file called
/etc/ppp/ip-up.local
with the following content:
#!/bin/sh /usr/sbin/sendmail -q &Then execute the command
chmod 700 /etc/ppp/ip-up.local
/etc/sendmail.cf