<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sendmail.cf in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150121#M665941</link>
    <description>did you change your /etc/hosts and resolv.conf files accordingly?</description>
    <pubDate>Tue, 13 Jan 2009 10:38:22 GMT</pubDate>
    <dc:creator>Jeeshan</dc:creator>
    <dc:date>2009-01-13T10:38:22Z</dc:date>
    <item>
      <title>sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150120#M665940</link>
      <description>We have the following setting in our .cf file&lt;BR /&gt;&lt;BR /&gt;Dj$w.&lt;DOMAINNAME&gt;&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;The e-mails show they are coming from &lt;BR /&gt;'user id@hostname.domainname' and I get the following in the mail.log&lt;BR /&gt;Jan 13 09:19:57 hpfiscal sendmail[22044]: unable to qualify my own domain name (hpfiscal) -- using short name&lt;BR /&gt;Jan 13 09:19:57 hpfiscal sendmail[22044]:  be sure to set domain name in Dj macro in sendmail.cf&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would like it just to say&lt;BR /&gt;'user id@domainname'&lt;BR /&gt;I have tried removing the $w but had no joy. &lt;BR /&gt;&lt;BR /&gt;Can someone suggest how to remove the hostname from the 'from' address.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;George&lt;/DOMAINNAME&gt;</description>
      <pubDate>Tue, 13 Jan 2009 09:58:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150120#M665940</guid>
      <dc:creator>George O'Reilly</dc:creator>
      <dc:date>2009-01-13T09:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150121#M665941</link>
      <description>did you change your /etc/hosts and resolv.conf files accordingly?</description>
      <pubDate>Tue, 13 Jan 2009 10:38:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150121#M665941</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2009-01-13T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150122#M665942</link>
      <description>Ahsan,&lt;BR /&gt;&lt;BR /&gt;The nsswitch is set to files and then dns.&lt;BR /&gt;&lt;BR /&gt;I am not an expert on address resolution so do not know what should be in the /etc/hosts pertaining to sendmail.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thank you for the interest.&lt;BR /&gt;George</description>
      <pubDate>Tue, 13 Jan 2009 11:04:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150122#M665942</guid>
      <dc:creator>George O'Reilly</dc:creator>
      <dc:date>2009-01-13T11:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150123#M665943</link>
      <description>check the bellow links&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=956021" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=956021&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=83883" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=83883&lt;/A&gt;</description>
      <pubDate>Tue, 13 Jan 2009 11:47:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150123#M665943</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2009-01-13T11:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150124#M665944</link>
      <description>Ahsan,&lt;BR /&gt;&lt;BR /&gt;Those links are related and indeed one of them stopped the error messages on the mail.log&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Hope that makes sense.&lt;BR /&gt;Thanks&lt;BR /&gt;George</description>
      <pubDate>Tue, 13 Jan 2009 13:01:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150124#M665944</guid>
      <dc:creator>George O'Reilly</dc:creator>
      <dc:date>2009-01-13T13:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150125#M665945</link>
      <description>&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1039532" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1039532&lt;/A&gt;</description>
      <pubDate>Tue, 13 Jan 2009 15:01:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150125#M665945</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-01-13T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150126#M665946</link>
      <description>&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=87762" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=87762&lt;/A&gt;</description>
      <pubDate>Tue, 13 Jan 2009 15:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150126#M665946</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-01-13T15:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150127#M665947</link>
      <description>I've done this in our sendmail.cf:&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;#  envelope sender rewriting&lt;BR /&gt;#&lt;BR /&gt;S11&lt;BR /&gt;R$-         $@ $1@&lt;DOMAIN&gt;&lt;BR /&gt;R$- $+         $1&lt;BR /&gt;R$-         $@ $1@&lt;DOMAIN&gt;&lt;BR /&gt;&lt;BR /&gt;R$+         $: $&amp;gt;51 $1        sender/recipient common&lt;BR /&gt;R$* :; &amp;lt;@&amp;gt;     $@          list:; special case&lt;BR /&gt;R$*         $: $&amp;gt;61 $1        qualify unqual'ed names&lt;BR /&gt;R$+         $: $&amp;gt;94 $1        do masquerading&lt;BR /&gt;&lt;BR /&gt;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 &lt;DOMAIN&gt; by your domain)&lt;/DOMAIN&gt;&lt;/DOMAIN&gt;&lt;/DOMAIN&gt;</description>
      <pubDate>Wed, 14 Jan 2009 07:32:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150127#M665947</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2009-01-14T07:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150128#M665948</link>
      <description>Hi - here is the fix for the sendmail issue you are having..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dj - macro in sendmail.cf is for domainname, &lt;BR /&gt;&lt;BR /&gt;Djnodename.somedomain.com&lt;BR /&gt;&lt;BR /&gt;make sure you have the same entry in the /etc/hosts file also&lt;BR /&gt;&lt;BR /&gt;then do this test and see if the email can be delivered&lt;BR /&gt;&lt;BR /&gt;#/usr/sbin/sendmail -v userid@mailserver.com&lt;BR /&gt;&lt;BR /&gt;test mail&lt;BR /&gt;&lt;BR /&gt;. (terminate with a dot)&lt;BR /&gt;&lt;BR /&gt;let me know if this is working.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Pratyush</description>
      <pubDate>Wed, 14 Jan 2009 14:07:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150128#M665948</guid>
      <dc:creator>Pratyush Paul_1</dc:creator>
      <dc:date>2009-01-14T14:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150129#M665949</link>
      <description>Thank you all for your replies.&lt;BR /&gt;&lt;BR /&gt;Still not having much joy of removing the nodename from the 'from' address.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Just to clarify, When sending mail via sendmail I need to have&lt;BR /&gt;username@nodename.domainname to be dispalyed &lt;BR /&gt;username@domainname.&lt;BR /&gt;&lt;BR /&gt;I didn't realise it would be such a difficult thing to do but I do appreciate all the effort.&lt;BR /&gt;George</description>
      <pubDate>Thu, 15 Jan 2009 14:08:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150129#M665949</guid>
      <dc:creator>George O'Reilly</dc:creator>
      <dc:date>2009-01-15T14:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150130#M665950</link>
      <description>username@nodename.domainname to be dispalyed &lt;BR /&gt;username@domainname.&lt;BR /&gt;&lt;BR /&gt;can be doe by creating a alias:&lt;BR /&gt;this can be done by:&lt;BR /&gt;echo "username : username@domainname. " &amp;gt;&amp;gt; /etc/aliases&lt;BR /&gt;and than run&lt;BR /&gt; newaliases -v&lt;BR /&gt;&lt;BR /&gt;thats all...</description>
      <pubDate>Thu, 15 Jan 2009 15:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150130#M665950</guid>
      <dc:creator>F Verschuren</dc:creator>
      <dc:date>2009-01-15T15:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150131#M665951</link>
      <description>ps If you need all the users to be added you can use the following "script" &lt;BR /&gt;&lt;BR /&gt; cat /etc/passwd |awk -F:   '{print $1 }' |while read line&lt;BR /&gt; do&lt;BR /&gt; echo $line " : " $line ".domainame" &amp;gt;&amp;gt; /etc/aliases&lt;BR /&gt; done&lt;BR /&gt;&lt;BR /&gt;Kind regards Freek</description>
      <pubDate>Thu, 15 Jan 2009 16:02:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150131#M665951</guid>
      <dc:creator>F Verschuren</dc:creator>
      <dc:date>2009-01-15T16:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150132#M665952</link>
      <description>F,&lt;BR /&gt;&lt;BR /&gt;Thanks for the attempt.&lt;BR /&gt;&lt;BR /&gt;Can you expalin a bit more how the aliase works with sendmail.&lt;BR /&gt;I added the local entry &lt;BR /&gt;&lt;BR /&gt;# Local aliases&lt;BR /&gt;goreilly  : goreilly@domainname.co.uk&lt;BR /&gt;&lt;BR /&gt;I don't understand how that would solve my problem (which it didn't) so hard to troubleshoot.&lt;BR /&gt;&lt;BR /&gt;I am still getting username@hostname.domainname in the from address.&lt;BR /&gt;&lt;BR /&gt;Because I am getting no joy in no matter what I try I wonder is something somewhere overriding any changes I make, in &lt;BR /&gt;sendmail.cf for example?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;George&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jan 2009 13:49:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150132#M665952</guid>
      <dc:creator>George O'Reilly</dc:creator>
      <dc:date>2009-01-16T13:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150133#M665953</link>
      <description>If it's just the domain which needs to be rewritten, then that's hostname masquerading.  The simplest way to do this is with the DM setting in sendmail.cf - but check class E (CE setting) as by default the root user is excluded from masquerading.</description>
      <pubDate>Fri, 16 Jan 2009 14:16:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150133#M665953</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-01-16T14:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150134#M665954</link>
      <description>Avinash,&lt;BR /&gt;&lt;BR /&gt;Thanks a million, you're a star.&lt;BR /&gt;&lt;BR /&gt;Ths DM in sendmail.cf worked a treat. It was simple after all.&lt;BR /&gt;&lt;BR /&gt;All Sorted.&lt;BR /&gt;&lt;BR /&gt;George</description>
      <pubDate>Fri, 16 Jan 2009 15:37:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150134#M665954</guid>
      <dc:creator>George O'Reilly</dc:creator>
      <dc:date>2009-01-16T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail.cf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150135#M665955</link>
      <description>Sorry just closing the thread.&lt;BR /&gt;&lt;BR /&gt;Thank you to everyone.&lt;BR /&gt;George</description>
      <pubDate>Fri, 16 Jan 2009 15:40:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-cf/m-p/5150135#M665955</guid>
      <dc:creator>George O'Reilly</dc:creator>
      <dc:date>2009-01-16T15:40:49Z</dc:date>
    </item>
  </channel>
</rss>

