Operating System - HP-UX
1753576 Members
6588 Online
108796 Solutions
New Discussion юеВ

Sendmail configuration for hp-ux 11.31 without DNS

 
SOLVED
Go to solution
Turgay Cavdar
Honored Contributor

Sendmail configuration for hp-ux 11.31 without DNS

We dont have a setting for dns on our servers. For hp-ux 11.23(and also older versions) we can use sendmail without dns settings with this config:
1-)cp /usr/newconfig/etc/nsswitch.files /etc/nsswitch.conf
2-)set Dj$w. in sendmail.cf
3-)set DS in sendmail.cf
4-)start/stop sendmail

This doesnt work in hp-ux 11.31. Any ideas?
13 REPLIES 13
AwadheshPandey
Honored Contributor

Re: Sendmail configuration for hp-ux 11.31 without DNS

http://www.docs.hp.com/en/B2355-90685/ch04.html
It's kind of fun to do the impossible
Keith Johnson
Valued Contributor

Re: Sendmail configuration for hp-ux 11.31 without DNS

Double check your /etc/nsswitch.conf file to make sure that the files entry doesn't include DNS.
No matter where you go...there you are.
Turgay Cavdar
Honored Contributor

Re: Sendmail configuration for hp-ux 11.31 without DNS

i checked it:
passwd: files
group: files
hosts: files
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
Keith Johnson
Valued Contributor

Re: Sendmail configuration for hp-ux 11.31 without DNS

What reject message(s) appear in the /var/adm/syslog/mail.log file?
No matter where you go...there you are.
Turgay Cavdar
Honored Contributor

Re: Sendmail configuration for hp-ux 11.31 without DNS

Hi,
It gives the following error:

Aug 31 11:49:20 srv1 sm-mta[2222]: l7UJjM7k011562: to=, delay=13:03:55, mailer=relay, pri=2552153,
relay=mailserver, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
Keith Johnson
Valued Contributor

Re: Sendmail configuration for hp-ux 11.31 without DNS

The dsn reason definitely points to a DNS resolution. The link to the RFC which explains the codes is below:

http://www.faqs.org/rfcs/rfc3463.html

Is mailrelay defined in your /etc/hosts file?
No matter where you go...there you are.
Turgay Cavdar
Honored Contributor

Re: Sendmail configuration for hp-ux 11.31 without DNS

yes it is defined. I did this configuration many times in older versions but on 11.31 there must be some difference.
Tim Nelson
Honored Contributor

Re: Sendmail configuration for hp-ux 11.31 without DNS

Unless something has changed in sendmail you need to do the following in order to disable DNS lookups for MX records.

in /etc/mail/sendmail.cf
in the section listed below under
#####################################
### SMTP Mailer specification ###
#####################################
Insert a 0 (zero) after the F= for each Msmtp and Mesmtp.

Msmtp, P=[IPC], F=mDFMuX, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h
becomes
Msmtp, P=[IPC], F=0mDFMuX, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h

FYI, This is an older trick, should be able to google it for validation, if it does not work then change it back.
Tim Nelson
Honored Contributor

Re: Sendmail configuration for hp-ux 11.31 without DNS

Unless something has changed in sendmail you need to do the following in order to disable DNS lookups for MX records.

in /etc/mail/sendmail.cf
in the section listed below under
#####################################
### SMTP Mailer specification ###
#####################################
Insert a 0 (zero) after the F= for each Msmtp and Mesmtp.

Msmtp, P=[IPC], F=mDFMuX, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h
becomes

Msmtp, P=[IPC], F=0mDFMuX, S=11/31, R=21, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=IPC $h

FYI, This is an older trick, should be able to google it for validation, if it does not work then change it back.