sendmail: Sending Mail (SMTP)

Support knowledgebase (stark_sendmail)
Applies to

SuSE Linux: Versions 6.3 to 7.3

Situation:

How can e-mail be forwarded to the provider's mail server by way of sendmail and the SMTP protocol?

Procedure:

Introductory Note:

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:

Settings in /etc/rc.config.d/sendmail.rc.config:

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.com
After 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

See also:
o sendmail: Creating your own /etc/sendmail.cf
o fetchmail: Collecting Mail from the Provider
o Modify sender address and/or domainname

Keywords: MAIL, SENDMAIL, SMTP, OFFLINE

Categories: Email

SDB-stark_sendmail, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 12. Dec 2001
SuSE Linux AG - Last generated: 05. Aug 2002 by ip (sdb_gen 1.40.0)