1833914 Members
2178 Online
110063 Solutions
New Discussion

Re: configuring relay

 
Abdullatif M. Abdulla
Frequent Advisor

configuring relay

We have 10.20 server (clustered). and we have an NT mail server. We want to send mails from the hp server to external world through the mail server. So the the Nt server will be a relay.

How to do that and what configuration files are involved.

1- I have added the NT server in the HP /etc/hosts file as mailserver.
2- I have add the relay server name in the sendmail.cf file DSmailserver
3- Stoped and restarted the sendmail.

But no progress

Can any one urgent help me.
9 REPLIES 9
G. Vrijhoeven
Honored Contributor

Re: configuring relay

KapilRaj
Honored Contributor

Re: configuring relay

I do not know what is to be done on an NT node but if it was a nuix node you would really need to add your hp node name on the relay-domains on the relay server..

There should be some way to add the HP node to the NT machine's authorised list of relay-hosts ;

All the best

Regds,

Kaps
Nothing is impossible
Hoefnix
Honored Contributor

Re: configuring relay

Can the 10.20 server resolve external domain-names?

To test just put an external domain in the servers hosts file a fake IP will do:

1.1.1.1 testdomain.com

Just send another mail to the external mail acount and check if the mail is send and recieved.

Check if the HP server also resolves the relay server correct (nslookup)

Regards,

Peter
Marc Roger
Advisor

Re: configuring relay

Do you get any error on the "postmaster" mailbox or in /var/adm/syslog/mail.log (or wherever syslog sends mail.* messages) ?

Is it possible that the server refuses e-mail with incomplete or incorrect envelope "From" addresses ? Check with "sendmail -f".
Steven E. Protter
Exalted Contributor

Re: configuring relay

Diagnostic:

sendmail -v -d8.99 -d38.99 someone@somedomain.net

type some text

.


You will see detail and get the problem.

I am wondering if the NT mail server is configured to allow relay from your HP boxes IP address.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Abdullatif M. Abdulla
Frequent Advisor

Re: configuring relay

I have submitted the debugging command and got the following result:

t1:/etc/mail> sendmail -v -d8.99 -d38.99 abdullatif.abdulla@thuraya.com
seq_map_parse(aliases.files, )
map_init(sequence:aliases.files, NULL, 0)
sequence:aliases.files NULL: valid
map_init(implicit:Alias0, /etc/mail/aliases, 0)
impl_map_open(Alias0, /etc/mail/aliases, 0)
hash_map_open(Alias0, /etc/mail/aliases, 0)
impl_map_lookup(Alias0, @)
db_map_lookup(Alias0, @)
implicit:Alias0 /etc/mail/aliases: valid
map_init(host:host, NULL, 0)
host:host NULL: valid
map_init(switch:aliases, aliases, 0)
switch_map_open(aliases, aliases, 0)
switch_map_find => 1
files
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote NULL: valid
getcanonname(thuraya.com), trying files
text_getcanonname(thuraya.com)
getcanonname(thuraya.com), trying dns
dns_getcanonname(thuraya.com, trymx=1)
dns_getcanonname: trying thuraya.com. (ANY)
NO: errno=239, h_errno=2
getcanonname(thuraya.com), failed, stat=75
abdullatif.abdulla@thuraya.com... thuraya.com: Name server timeout
abdullatif.abdulla@thuraya.com... Transient parse error -- message queued for future delivery
where is the problem....
Hoefnix
Honored Contributor

Re: configuring relay

Did you try to put thuraya.com(can be a fake ip) in your /etc/hosts file, it looks like its failing on resolving the domain.
Check the /etc/nsswitch.conf for name resolving order.


Regards,

Peter
Marc Roger
Advisor

Re: configuring relay

I think the problem is that your host cannot resolve hostnames in the To: address, and, unless you can fix that, you need to rebuild a new sendmail.cf with the following in the macros:

FEATURE(`nocanonify')
FEATURE(`nullclient')
define(`MAIL_HUB', `relay.domain.')

and also possibly, depending if you use sendmail 8.9 and your host is a relay:

FEATURE(`accept_unresolvable_domains')

Please check the sendmail documentation and http://www.sendmail.org/ for details.
Marc Roger
Advisor

Re: configuring relay

This should be
define(`SMART_HOST', `relay.domain.')