Hi Marco,

try the following sendmail.mc:

include(`../m4/cf.m4')
VERSIONID(`linux for smtp-only(offline) setup')dnl
OSTYPE(linux)dnl
define(`confDEF_USER_ID', `daemon:daemon')dnl
define(`confTRUSTED_USERS', `uucp mdom wwwrun')dnl
define(`QUEUE_DIR', `/var/mqueue')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`confSERVICE_SWITCH_FILE',`/etc/mail/service.switch')dnl
define(`confUSERDB_SPEC',`/etc/mail/userdb.db')dnl
define(`confHOSTS_FILE',`/etc/hosts')dnl
define(`confSAFE_QUEUE',`True')dnl
define(`confCON_EXPENSIVE',`True')dnl
define(`SMTP_MAILER_FLAGS',`e')dnl
FEATURE(local_procmail)dnl
FEATURE(nocanonify)dnl
FEATURE(nouucp)dnl
FEATURE(nodns)dnl
FEATURE(always_add_domain)dnl
FEATURE(masquerade_envelope)dnl
MAILER(local)dnl
MAILER(procmail)dnl
MAILER(smtp)dnl

For sendmail 8.9.3 turn off dns resolving by adding the following lines to
your sendmail.mc  script:

FEATURE(`accept_unresolvable_domains`)dnl
FEATURE(`accept_unqualified_senders`)dnl

This should be used on a dialup workstation only!!

After compiling it with:

m4 < sendmail.cm > /etc/sendmail.cf (always make a backup of your old
sendmail.cf)

you have to create the file /etc/mail/service.switch:
hosts           files
aliases files

Use tabstops instead of blanks.


After that the /etc/mail/userdb
your.loginname:mailname [EMAIL PROTECTED]
[EMAIL PROTECTED]:maildrop        your.loginname

Again use tabstops.

Then issue the following command:
makemap btree /etc/mail/userdb.db < /etc/mail/userdb

After that get your smarthost into your /etc/sendmail.cf at the DM-point
(right at the place where you have yor smarthost at the moment
"DMyour.smarthost.com").

Start sendmail and test it:

/usr/sbin/sendmail -bv [EMAIL PROTECTED]

The output should be similar like this:

[EMAIL PROTECTED]      deliverable: mailer relay,
host your.smarthost.com, user [EMAIL PROTECTED]

If itīs okay try it with mailx:

uname -a | mailx -s "Testmail" [EMAIL PROTECTED]

After that you should find two files in your /var/spool/mqueue directory.
The one which starts with df contains the body (uname -a) the one starting
with qf the header.

The qf-file should contain the following lines:

$_your.loginname@localhost
Syour.loginname
RPFD:[EMAIL PROTECTED]
H?P?Return-Path: <[EMAIL PROTECTED]>
H?F?From: "your name" <[EMAIL PROTECTED]>
HTo: [EMAIL PROTECTED]


For sendmail8.9.3 you have to modify the following file, too.
Add all your email-adresses, hosts and domains to the file /etc/mail/access
like the following example:

[EMAIL PROTECTED]     OK
your.domain                             OK
your.host                               OK

and so on.

I hope this helps you a little bit.


Bye then,

Peter Hermanns

Reply via email to