Operating System - HP-UX
1834778 Members
3213 Online
110070 Solutions
New Discussion

sending mail from sendmail

 
ROSS HANSON
Regular Advisor

sending mail from sendmail

Hello,
We have sendmail setup on our HPUX machines.
When mail is sent it goes to a smtp server and then to the people the mail is meant for.

Problem: When the mail is sent it has in the "from" row the person's name and then the @ symbol then the name of the server and domain like this: Fred@.hp.com

the server's name should not be in this address
it is not part of the name of the domain which make the sending of the mail fail

Has anyone seen this before? If so is there a reason for it???

Thank you
Ross Hanson
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: sending mail from sendmail

When not set sendmail uses the system hostname to as the domain name.

root@system.your.net for example.

vi /etc/mail/sendmail.cf

Find the Dj directive.

Change it to

Djyour.net

Except make your.net your actual network.

Save the file

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


Run a test mail, it should be good.

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
Sanjay_6
Honored Contributor

Re: sending mail from sendmail

Hi Ross,

you can do site hiding. Just do a search on forum for sendmail and masquerade and you'll get lots of soutions,

Try this link from itrc on how to do domain hiding,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062907049

The itrc doc id is IVKBRC00006781

you can also use the -r reply_to_email_add to put a valid email address (with a valid domain)

Hope this helps.

regds
Stuart Abramson
Trusted Contributor

Re: sending mail from sendmail

3. Set site hiding:

a. Site hiding is the ability to send emails with no "hostname" in the
outgoing email address:

user@domain.com

rather than:

user@host.domain.com

b. Modify sendmail.cf
cd /etc/mail
cp sendmail.cf sendmail.cf.old
vi sendmail.cf

Set:
DMdomain.com
Unset:
CEroot


5. Stop/Start sendmail:

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

Sendmail pid is 6743
Killing sendmail...
Sendmail killed.
/etc/mail/aliases: 13 aliases, longest 35 bytes, 307 bytes total
sendmail

6. Clean out the old "mail.log":

o Mail log info goes in:

/var/adm/syslog/mail.log

o Clean it out:

cd /var/adm/syslog # move old logs
mv mail.log mail.log.old
mv syslog.log syslog.log.old
> syslog.log
> mail.log
cd /sbin/init.d # restart syslog daemon
./syslogd stop; ./syslogd start

7. Test emails:

# mailx stuart.abramson@alcoa.com

Subject: test after after
test
.
EOT
ROSS HANSON
Regular Advisor

Re: sending mail from sendmail

Folks,
I thank you for the information but can someone tell me why sendmails place the servername in with the domain name
Ross Hanson