- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sendmail.cf
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 01:58 AM
тАО01-13-2009 01:58 AM
Dj$w.
The problem is that if an e-mail is going external my Network adminstrator is telling me that e-mails are being stopped because the domainname is not valid.
The e-mails show they are coming from
'user id@hostname.domainname' and I get the following in the mail.log
Jan 13 09:19:57 hpfiscal sendmail[22044]: unable to qualify my own domain name (hpfiscal) -- using short name
Jan 13 09:19:57 hpfiscal sendmail[22044]: be sure to set domain name in Dj macro in sendmail.cf
I would like it just to say
'user id@domainname'
I have tried removing the $w but had no joy.
Can someone suggest how to remove the hostname from the 'from' address.
Thanks
George
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 02:38 AM
тАО01-13-2009 02:38 AM
Re: sendmail.cf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 03:04 AM
тАО01-13-2009 03:04 AM
Re: sendmail.cf
The nsswitch is set to files and then dns.
I am not an expert on address resolution so do not know what should be in the /etc/hosts pertaining to sendmail.
Sendmail seems to know the host and knows the domain but I just do not want it to dispaly both after the @ sign in the 'from' address.
Thank you for the interest.
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 03:47 AM
тАО01-13-2009 03:47 AM
Re: sendmail.cf
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=956021
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=83883
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 05:01 AM
тАО01-13-2009 05:01 AM
Re: sendmail.cf
Those links are related and indeed one of them stopped the error messages on the mail.log
However my initial problem remains. When the e-mail is sent out the 'from' address still says 'userid@hostname.domainname' and I would like it to say 'userid@domainname' only.
Hope that makes sense.
Thanks
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 07:01 AM
тАО01-13-2009 07:01 AM
Re: sendmail.cf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 07:08 AM
тАО01-13-2009 07:08 AM
Re: sendmail.cf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 11:32 PM
тАО01-13-2009 11:32 PM
Re: sendmail.cf
#
# envelope sender rewriting
#
S11
R$- $@ $1@
R$- $+ $1
R$- $@ $1@
R$+ $: $>51 $1 sender/recipient common
R$* :; <@> $@ list:; special case
R$* $: $>61 $1 qualify unqual'ed names
R$+ $: $>94 $1 do masquerading
I'm not sure anymore which lines I've added and which were already there, but this made it work exactly the way you want it too. (of course replace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 06:07 AM
тАО01-14-2009 06:07 AM
Re: sendmail.cf
Dj - macro in sendmail.cf is for domainname,
Djnodename.somedomain.com
make sure you have the same entry in the /etc/hosts file also
then do this test and see if the email can be delivered
#/usr/sbin/sendmail -v userid@mailserver.com
test mail
. (terminate with a dot)
let me know if this is working.
regards
Pratyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2009 06:08 AM
тАО01-15-2009 06:08 AM
Re: sendmail.cf
Still not having much joy of removing the nodename from the 'from' address.
Avinash, I followed your link and attempted the User Database route but it hasn't made a difference. I must be missing some step along the way.
Elmar, I must admit I didn't fancy changing my sendmail.cf with all that input you suggested especially as I had no understanding of what it is doing.
Pratyush, What you suggested is exactly what my current setup is. Djnodename.domainname and that's why I thought it was putting both in my 'from' address.
Just to clarify, When sending mail via sendmail I need to have
username@nodename.domainname to be dispalyed
username@domainname.
I didn't realise it would be such a difficult thing to do but I do appreciate all the effort.
George