Operating System - HP-UX
1753928 Members
9071 Online
108810 Solutions
New Discussion юеВ

sendmail config from 10.01 -> 10.20

 
Kelvin Newnham
Occasional Contributor

sendmail config from 10.01 -> 10.20

I have a system that relays all of its non-local mail to another system for delivery. It is a simple setup, has no dns running, simply the name of the relay in the hosts file. In 10.01 I changed a couple of lines in sendmail.cf. I now have to upgrade that unit to 10.20 (or 11.0). Obviously the steps are much more complex with sendmail 8.9 - can someone give the steps to achieving exactly the same effect.
5 REPLIES 5
Kofi ARTHIABAH
Honored Contributor

Re: sendmail config from 10.01 -> 10.20

Kevin: the basic configuration is not that significantly different. If you want to maintain the same set up:

1. make sure that you have your relay listed in /etc/hosts
2. make sure that in your /etc/nsswitch.conf you have the entry:
hosts: files [NOTFOUND=continue] dns
3. edit your /etc/mail/sendmail.cf and insert your relay with the DS macro.
4. make sure that the file /etc/mail/sendmail.cw contains only the localhost or the name of the server. (and NOT the domain name)
5. restart sendmail with
/sbin/init.d/sendmail stop ; /sbin/init.d/sendmail start.

viola!
nothing wrong with me that a few lines of code cannot fix!
Kelvin Newnham
Occasional Contributor

Re: sendmail config from 10.01 -> 10.20

I have followed the above: this is the head of a test message in the mqueue

V2
T969056361
K969056361
N1
P34330
I64/8/12831
Mhost map: lookup (usa.net): deferred
$_root@localhost

Is sendmail still looking for a nameserver?
Kofi ARTHIABAH
Honored Contributor

Re: sendmail config from 10.01 -> 10.20

Yes Kelvin, it is trying to contact the mailserver directly... please verify the following:

0. comment out the line with Mhost in your /etc/mail/sendmail.cf file
1. if you are not using dns, please remove the /etc/resolv.conf
2. in the /etc/hosts file, make sure that the entry for your mailrelay is listed eg.

10.10.2.25 mailrelay mailrelay.domain.com

3. then verify that you have in /etc/mail/sendmail.cf the following line:

DSmailrelay

4. restart sendmail if you have not already done so.

if the above does not work... can you try the following trouble shooting:

# sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter

> =M

and post what it comes up with...

good luck
nothing wrong with me that a few lines of code cannot fix!
Kelvin Newnham
Occasional Contributor

Re: sendmail config from 10.01 -> 10.20

There is no Mhost record in the file

sendmail -bt
=M
mailer 0 (prog): P=/usr/bin/sh S=10/30 R=20/40 M=0 U=0:0 F=9DFMeloqsu L=0 E=n T=X-Unix/rfc822/smtp A=sh -c $u
mailer 1 (*file*): P=[FILE] S=0/0 R=0/0 M=0 U=0:0 F=9DEFMPloqsu L=0 E=n T=DNS/RFC822/X-Unix A=FILE $u
mailer 2 (*include*): P=/dev/null S=0/0 R=0/0 M=0 U=0:0 F=su L=0 E=n T=// A=INCLUDE $u
mailer 3 (local): P=/usr/bin/rmail S=10/30 R=20/40 M=0 U=0:0 F=/59:@ADFMlmqsw| L=0 E=n T=DNS/RFC822/X-Unix A=rmail -d $u
mailer 4 (smtp): P=[IPC] S=11/31 R=21/21 M=0 U=0:0 F=DFMXmu L=990 E=rn T=DNS/RFC822/SMTP A=IPC $h
mailer 5 (esmtp): P=[IPC] S=11/31 R=21/21 M=0 U=0:0 F=DFMXamu L=990 E=rn T=DNS/RFC822/SMTP A=IPC $h
mailer 6 (smtp8): P=[IPC] S=11/31 R=21/21 M=0 U=0:0 F=8DFMXmu L=990 E=rn T=DNS/RFC822/SMTP A=IPC $h
mailer 7 (relay): P=[IPC] S=11/31 R=61/61 M=0 U=0:0 F=8DFMXamu L=2040 E=rn T=DNS/RFC822/SMTP A=IPC $h
mailer 8 (uucp): P=/usr/bin/uux S=12/12 R=22/42 M=100000 U=0:0 F=DFMUdhu L=0 E=n T=X-UUCP/X-UUCP/X-Unix A=uux - -r -a$g -gC $h!rmail ($u)
mailer 9 (uucp-old): P=/usr/bin/uux S=12/12 R=22/42 M=100000 U=0:0 F=DFMUdhu L=0 E=n T=X-UUCP/X-UUCP/X-Unix A=uux - -r -a$g -gC $h!rmail ($u)
mailer 10 (suucp): P=/usr/bin/uux S=12/12 R=22/42 M=100000 U=0:0 F=DFMUdhmu L=0 E=n T=X-UUCP/X-UUCP/X-Unix A=uux - -r -a$g -gC $h!rmail ($u)
mailer 11 (uucp-new): P=/usr/bin/uux S=12/12 R=22/42 M=100000 U=0:0 F=DFMUdhmu L=0 E=n T=X-UUCP/X-UUCP/X-Unix A=uux - -r -a$g -gC $h!rmail ($u)
mailer 12 (uucp-dom): P=/usr/bin/uux S=52/31 R=21/21 M=100000 U=0:0 F=DFMdhmu L=0 E=n T=X-UUCP/X-UUCP/X-Unix A=uux - -r -a$g -gC $h!rmail ($u)
mailer 13 (uucp-uudom): P=/usr/bin/uux S=72/31 R=21/21 M=100000 U=0:0 F=DFMdhmu L=0 E=n T=X-UUCP/X-UUCP/X-Unix A=uux - -r -a$g -gC $h!rmail ($u)
mailer 14 (x400): P=/opt/x400/lbin/x4mailer S=14/14 R=24/24 M=0 U=0:0 F=CDFMmn L=0 E=n T=// A=x4mailer -f $g $u
mailer 15 (openmail): P=/opt/openmail/bin/unix.in S=15/15 R=25/25 M=0 U=0:0 F=DFLMXmnu L=990 E=n T=// A=unix.in
mailer 16 (omxport): P=/opt/openmail/bin/xport.in S=0/0 R=0/0 M=0 U=0:0 F=LMn L=990 E=n T=// A=xport.in $u
>
Berlene Herren
Honored Contributor

Re: sendmail config from 10.01 -> 10.20

Sendmail is still looking for DNS. Check your nsswitch.conf under /etc. If there isn't one, in 11.0, #cp /usr/newconfig/etc/nsswitch.files /etc

if you are NOT using DNS for name resolution. Also ensure the only uncommented lines in /etc/mail/sendmail.cw are
localhost
yourhostname
anyaliases this box may be known by.

Berlene

http://www.mindspring.com/~bkherren/dobes/index.htm