Operating System - HP-UX
1819872 Members
2722 Online
109607 Solutions
New Discussion

domain name problems with sending mail with xmail

 
ALH
Occasional Advisor

domain name problems with sending mail with xmail

Hello,

On an existing config i first have changed the ip adres, hostname and domain. Therefore i changed the following files

/etc/rc.config.d/netconf
/etc/resolv.conf
/etc/hosts

i booted the system and everything looked fine and stil it is.

Second i have changed the relay server for the sendmail. I changed it from gateway.alh.nl too smtp003-almere.lpnl.aalh. The lpnl.aalh is the new domain name. When i now send an email to certain adresses i see something strange with the reciptients. I give here some samples:

...@test gives ...@test.alh.nl
...@alh.nl gives ...@alh.nl
...@test.lpnl gives ...@test.alh.nl
...@fake.fake2 gives ...@fake.fake2
...@test. gives ...@test
...@test.lpnl. gives ...@test.lpnl

In some reciptients i see my old domain name alh.nl. I can't find how the system do that. The trailing dot is something new to me too. I must mail to ...@test.lpnl and that i can only do whith a trailing dot after lpnl so the adres is ...@test.lpnl. (see above)

the output from an test with sendmail -v

# sendmail -v mail.ontvanger1@test.lpnl
this is a test
.
mail.ontvanger1@test.lpnl.... Connecting to smtp003-almere.lnpl.aalh. via relay...
220 smtp003.test.merlin ESMTP Service (Lotus Domino Release 5.0.9a) ready at Wed, 5 Mar 2003 13:36:40 +0100
>>> EHLO nllsp105.lpnl.aalh
250-smtp003.test.merlin Hello nllsp105.lpnl.aalh ([10.46.19.105]), pleased to meet you
250-HELP
250-SIZE
250 PIPELINING
>>> MAIL From: SIZE=29
250 ceeswiel@nllsp105.lpnl.aalh... Sender OK
>>> RCPT To:
250 mail.ontvanger1@test.alh.nl... Recipient OK
>>> DATA
354 Enter message, end with "." on a line by itself
>>> .
250 Message accepted for delivery
mail.ontvanger1@test.lpnl.... Sent (Message accepted for delivery)
Closing connection to smtp003-almere.lnpl.aalh.
>>> QUIT
221 smtp003.test.merlin SMTP Service closing transmission channel

Can anyone help me to explain this.

thank You
Cees Wielink
1 REPLY 1
Steven E. Protter
Exalted Contributor

Re: domain name problems with sending mail with xmail

There are two ways to hard code the domain name into your outbound mail.

1) Make the hostname of the system fully qualified to a name that resolves on the public internet. System name schmo becomes schmo.mydomain.net You change the hostname entry in /etc/rc.config.d/netconf

2) You can change the Dj directive in /etc/sendmail.cf

Change # Dj....

to

Djmydomain.net

save the file

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

This will probably solve your issue if I understand the post correctly.

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